A method and device for repeated screenshotting

By starting the screenshot program and obtaining the coordinate information of the screenshot area, screenshot operations are performed on the screenshot area based on the repeatedly received screenshot instructions, solving the problem of low efficiency in repeating screenshots at the same position in the screen in the prior art, and achieving fast and efficient repeating screenshots.

CN113190158BActive Publication Date: 2025-07-01INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110576770.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-26
Publication Date
2025-07-01
Estimated Expiration
2041-05-26

AI Technical Summary

Technical Problem

It is difficult for the prior art to efficiently perform repeated screenshots at the same location on the screen, and the selection, screenshot and storage operation procedures of screenshot areas are cumbersome.

Method used

A method and device for repeating screenshots are provided. By starting the screenshot program, the coordinate information of the screenshot area is obtained, and the screenshot area is performed according to the repeatedly received screenshot instructions to realize repeated screenshots of the same position.

Benefits of technology

Improve the efficiency of screenshots of pictures of the same size, simplify the operation process, and realize quick repeat screenshots of the same location.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113190158B_ABST
    Figure CN113190158B_ABST
Patent Text Reader

Abstract

The present invention provides a method and apparatus for repeated screenshot, which can be used in the financial field or other technical fields. The method includes: starting a screenshot program and obtaining coordinate information of a screenshot area; performing a screenshot operation on the screenshot area according to repeatedly received screenshot instructions; wherein, each screenshot operation takes a screenshot of the current window according to the coordinate information of the screenshot area and saves it. The apparatus is used to execute the above method. The method and apparatus for repeated screenshot provided by the embodiments of the present invention improve the screenshot efficiency of capturing pictures of the same size.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and particularly to a method and device for repeated screenshotting. Background Art

[0002] Currently, the screenshot function is a very practical function. The Windows system comes with a function key for full-screen screenshot, and some software provides screenshot and editing functions for screenshots.

[0003] In the prior art, the Print Screen key of the Windows system only provides full-screen screenshot, and cannot select the area of the screenshot. After taking the screenshot, cropping is still required. For the screenshot functions provided by some software, the area to be screenshot can be selected, and several operation processes such as screenshot position selection, screenshot, and saving to disk are required to complete one screenshot. However, for repeated screenshots of the same size at the same position on the screen, it is an urgent problem to be solved in the industry. Summary of the Invention

[0004] In view of the problems in the prior art, embodiments of the present invention provide a method and device for repeated screenshotting, which can at least partially solve the problems existing in the prior art.

[0005] On the one hand, the present invention proposes a method for repeated screenshotting, including:

[0006] Starting a screenshot program and obtaining coordinate information of the screenshot area;

[0007] Performing a screenshot operation on the screenshot area according to repeatedly received screenshot instructions; wherein, each screenshot operation takes a screenshot of the current window according to the coordinate information of the screenshot area and saves it.

[0008] On the other hand, the present invention provides a device for repeated screenshotting, including:

[0009] A startup module for starting a screenshot program and obtaining coordinate information of the screenshot area;

[0010] A screenshot module for performing a screenshot operation on the screenshot area according to repeatedly received screenshot instructions; wherein, each screenshot operation takes a screenshot of the current window according to the coordinate information of the screenshot area and saves it.

[0011] On yet another aspect, the present invention provides a computer program stored on a memory and executable on a processor. When the processor executes the program, the steps of the method for repeated screenshotting according to any one of the above embodiments are implemented.

[0012] The repeated screenshot method and device provided by the embodiments of the present invention can start a screenshot program and obtain coordinate information of a screenshot area, perform a screenshot operation on the screenshot area according to repeatedly received screenshot instructions, obtain screenshots of the same size, and improve the screenshot efficiency of capturing images of the same size. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0014] Figure 1 It is a flowchart of a repeated screenshot method provided by an embodiment of the present invention.

[0015] Figure 2 It is a flowchart of a repeated screenshot method provided by another embodiment of the present invention.

[0016] Figure 3 It is a flowchart of a repeated screenshot method provided by another embodiment of the present invention.

[0017] Figure 4 It is a structural schematic diagram of a repeated screenshot device provided by an embodiment of the present invention.

[0018] Figure 5 It is a schematic structural diagram of a repeated screenshot device provided in another embodiment of the present invention.

[0019] Figure 6 It is a structural schematic diagram of a repeated screenshot device provided in another embodiment of the present invention.

[0020] Figure 7 It is a schematic structural diagram of a repeated screenshot device provided in yet another embodiment of the present invention.

[0021] Figure 8 It is a structural schematic diagram of a repeated screenshot device provided in another embodiment of the present invention.

[0022] Figure 9 It is a schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0023] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer and more understandable, the following further elaborates on the embodiments of the present invention with reference to the accompanying drawings. Herein, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but not to limit the present invention. It should be noted that, without conflict, the embodiments in this application and the features in the embodiments can be combined arbitrarily with each other.

[0024] To facilitate the understanding of the technical solutions provided in this application, the following briefly describes the research background of the technical solutions in this application. During daily electronic office work, the need for screenshotting often arises. Sometimes, it is necessary to take screenshots of the same position repeatedly to obtain screenshot images of the same size. Therefore, the embodiments of the present invention propose a method for repeated screenshotting to improve the efficiency of repeatedly taking screenshots of the same position.

[0025] The following takes a computer as the execution entity as an example to illustrate the implementation process of the repeated screenshotting method provided by the embodiments of the present invention. It can be understood that the execution entities of the repeated screenshotting method provided by the embodiments of the present invention include, but are not limited to, computers.

[0026] Figure 1 is a schematic flowchart of the repeated screenshotting method provided by an embodiment of the present invention. As Figure 1 shown, the repeated screenshotting method provided by the embodiments of the present invention includes:

[0027] S101. Start the screenshot program and obtain the coordinate information of the screenshot area;

[0028] Specifically, the user can input a start command or click on the start icon corresponding to the screenshot program. The computer starts the screenshot program by executing the above start command or detecting the click operation on the start icon. The user can activate the window that needs to be screenshot and select an area in the activated window. The computer can detect the area selected by the user and obtain the coordinate information of the selected area as the coordinate information of the screenshot area. Among them, to prevent errors in the coordinate information of the screenshot area, the coordinate information can be provided to the user for confirmation. After the user confirms, the computer takes the coordinate information of the selected area as the coordinate information of the screenshot area.

[0029] For example, user A takes a screenshot through his desktop computer B, which is installed with the Windows operating system. User A enters "python jietu.py" in the CMD window to start the screenshot program named jietu.py, which is written in Python. After the jietu.py screenshot program is started, Python's Pynput, PIL, sys, win32gui, win32ui, win32api, win32con and other modules are loaded, and the event monitor is called to monitor keyboard and mouse operations. User A opens a browser on the desktop computer, visits the target web page, and opens the window of the target web page, which is the window to be screenshotted. User A uses the mouse to select the area to be screenshotted in the window of the target webpage, and can click once in the upper left corner and the lower right corner of the area to be screenshotted. Desktop B can capture the click operation in the upper left corner and the click operation in the lower right corner through the event monitor, and display the obtained coordinate information on the CMD window. User A checks the coordinate information displayed in the CMD window and can enter "Python jietu.py coordinate information picture save path information" in the CMD window to confirm the coordinate information of the screenshot area. Desktop B can obtain the above coordinate information as the coordinate information of the screenshot area.

[0030] S102, performing a screenshot operation on the screenshot area according to the repeatedly received screenshot instructions; wherein each screenshot operation takes a screenshot of the current window according to the coordinate information of the screenshot area and saves the screenshot.

[0031] Specifically, the user can input a screenshot instruction or operate a screenshot shortcut key to trigger the screenshot instruction. After the computer receives the screenshot instruction, it will perform a screenshot operation on the screenshot area, that is, take a screenshot of the current window according to the coordinate information of the screenshot area, and then save the screenshot. After the last screenshot, the user can change the current window and re-trigger the screenshot instruction. After the computer receives the screenshot instruction, it will re-perform a screenshot operation on the screenshot area. The user can continuously change the current window and re-trigger the screenshot instruction so that the computer repeats the screenshot operation to achieve screenshots of the same area of ​​different windows, and all screenshots have the same size. After completing the screenshot, the user can input an exit screenshot instruction or operate an exit screenshot shortcut key to trigger an exit screenshot instruction. After receiving the screenshot instruction, the computer will exit the screenshot program.

[0032] The repeated screenshot method provided by the embodiment of the present invention can start the screenshot program and obtain the coordinate information of the screenshot area, perform a screenshot operation on the screenshot area according to the repeatedly received screenshot instructions, obtain screenshots with the same size, and improve the screenshot efficiency of capturing pictures of the same size.

[0033] Figure 2 It is a schematic flowchart of the repeated screenshot method provided by another embodiment of the present invention. As Figure 2 shown, on the basis of the above embodiments, further, the taking and saving a screenshot of the current window according to the coordinate information of the screenshot area includes:

[0034] S201. Obtain the device context of the current window, and obtain the corresponding device description table according to the device context of the current window;

[0035] Specifically, after receiving the screenshot instruction, the computer can obtain the device context (Device Context, abbreviated as DC) of the current window, and then obtain the device description table (MFCDC) corresponding to the DC of the current window according to the DC of the current window.

[0036] S202. Create a compatible device context according to the device description table;

[0037] Specifically, after obtaining the relevant memory DC, the computer can create a compatible DC according to the MFCDC. The compatible DC is a virtual DC, which is used to load a bitmap object to save the picture later. Among them, the compatible DC is created by the CreateCompatibleDC() function.

[0038] S203. Copy the pixel array of the screenshot area into the bitmap object loaded in the compatible device context according to the coordinate information of the screenshot area;

[0039] Specifically, the computer copies the pixel array of the screenshot area into the bitmap object loaded in the compatible DC according to the coordinate information of the screenshot area.

[0040] Specifically, the BitBlt function can be called to copy the pixel array of the screenshot area into the bitmap object loaded in the compatible DC.

[0041] S204. Save the pixel array of the screenshot area in the compatible device context as a picture file.

[0042] Specifically, the computer obtains the pixel array of the screenshot area from the compatible DC and saves it as a picture file. Among them, the file name of the picture file can be determined according to the current date and time string.

[0043] On the basis of the above embodiments, further, the repeated screenshot method provided by the embodiment of the present invention further includes:

[0044] Save the picture file according to a preset storage directory.

[0045] Specifically, a storage directory for saving picture files can be preset in advance. When saving the picture files, save the picture files to the preset storage directory.

[0046] For example, using the Python language, the statement def capturer(savehere = "d:\\") can be used to set the picture files to be saved to the root directory of the D drive.

[0047] Based on the above embodiments, further, the picture file is a bitmap file.

[0048] Specifically, the SaveBitmapFile function of the bitmap object can be called to save the pixel array of the screenshot area in the compatible DC as a bitmap file.

[0049] Figure 3 is a schematic flowchart of the repeated screenshot method provided by another embodiment of the present invention. As Figure 3 shown, based on the above embodiments, further, starting the screenshot program and obtaining the coordinate information of the screenshot area includes:

[0050] S301. Start the screenshot program and call the event monitor;

[0051] Specifically, after the computer starts the screenshot program, an event monitor will be created. Among them, the event monitor includes a monitor for keyboard pressing and lifting actions, and a monitor for mouse operations. The mouse operations include but are not limited to clicking, moving, scrolling, etc.

[0052] For example, after the computer starts the screenshot program, it will create a keyboard monitor through keyboard.listener(on_press = on_press, on_release = on_release), and create a mouse monitor through mouse.listener(on_click = on_click,...). The monitoring of keyboard and mouse operations is realized by writing business code in callback functions such as on_press, on_release, and on_click.

[0053] S302. Obtain the coordinate information of the screenshot area according to the detected first click operation and second click operation.

[0054] Specifically, the user activates the window to be screenshot, then designates the upper left corner of the screenshot area in the activated window through a first click operation, and designates the lower right corner of the screenshot area in the activated window through a second click operation. The rectangular area determined by the first point and the second point is the screenshot area. The computer can obtain the coordinates of the first point and the second point as the coordinate information of the screenshot area. Among them, the first click operation and the second click operation are set according to actual needs, and are not limited in the embodiments of the present invention.

[0055] For example, both the first click operation and the second click operation are to click the left mouse button three times continuously. When the computer detects that the user clicks the left mouse button three times continuously on the activated window for the first time, it will record the clicked position coordinates as the coordinates of the first point. When it detects that the user clicks the left mouse button three times continuously on the activated window for the second time, it will record the clicked position coordinates as the coordinates of the second point, so as to obtain the coordinate information of the screenshot area.

[0056] For example, the first click operation is to click the left mouse button three times continuously, and the second click operation is to click the right mouse button twice continuously. When the computer detects that the user clicks the left mouse button three times continuously on the activated window, it will record the clicked position coordinates as the coordinates of the first point. When it detects that the user clicks the right mouse button twice continuously on the activated window, it will record the clicked position coordinates as the coordinates of the second point, so as to obtain the coordinate information of the screenshot area.

[0057] On the basis of the above embodiments, further, the screenshot instruction is triggered by a shortcut key. Triggering the screenshot instruction by a shortcut key can facilitate the user's operation and improve the efficiency of taking screenshots.

[0058] For example, the combination key Ctrl+i is set as the shortcut key for triggering the screenshot instruction.

[0059] On the basis of the above embodiments, further, the repeated screenshot method provided by the embodiments of the present invention further includes:

[0060] If a screenshot exit instruction is received, the screenshot program is exited.

[0061] Specifically, the user can input a screenshot exit instruction or operate the screenshot exit shortcut key to trigger the screenshot exit instruction. After the computer receives the screenshot instruction, it will exit the screenshot program.

[0062] For example, the ESC key can be set as the shortcut key for the screenshot exit instruction.

[0063] The repeated screenshot method provided by the embodiment of the present invention can be implemented by programming in the Python language. By loading the Pynput, PIL, sys, win32gui, win32ui, win32api, and win32con modules and calling the relevant functional functions in the modules, a quick screenshot process from capturing a specified area of the screen to saving it to a specified path can be achieved. For example, in the screenshot program, a capturer function is defined as def capturer(argw = 0, argh = 0, argtopleft=(0, 0), savehere = "d:\\\"). The parameter argw represents the width of the screenshot area, the parameter argh represents the height of the screenshot area, the parameter argtopleft represents the coordinates of the upper left endpoint of the screenshot area, and savehere indicates the location where the picture is saved. It is understandable that if the program is implemented in the Python language, a Python interpretation system needs to be installed in advance.

[0064] Figure 4 is a schematic structural diagram of a repeated screenshot device provided by an embodiment of the present invention, as Figure 4 shown, the repeated screenshot device provided by the embodiment of the present invention includes a start module 401 and a screenshot module 402, where:

[0065] The start module 401 is used to start the screenshot program and obtain the coordinate information of the screenshot area; the screenshot module 402 is used to perform a screenshot operation on the screenshot area according to the repeatedly received screenshot instruction; wherein, each screenshot operation takes a screenshot of the current window according to the coordinate information of the screenshot area and saves it.

[0066] Specifically, the user can input a start command or click the start icon corresponding to the screenshot program. The start module 401 starts the screenshot program by executing the above start command or detecting the click operation on the start icon. The user can activate the window to be screenshot and select an area in the activated window. The start module 401 can detect the area selected by the user and obtain the coordinate information of the selected area as the coordinate information of the screenshot area. Among them, in order to prevent errors in the coordinate information of the screenshot area, the coordinate information can be provided to the user for confirmation. After the user confirms, the computer takes the coordinate information of the selected area as the coordinate information of the screenshot area.

[0067] The user can input a screenshot instruction or operate the screenshot shortcut key to trigger the screenshot instruction. After the screenshot module 402 receives the screenshot instruction, it will perform a screenshot operation on the screenshot area, that is, take a screenshot of the current window according to the coordinate information of the screenshot area, and then save the screenshot. After the previous screenshot, the user can change the current window and re-trigger the screenshot instruction. After the screenshot module 402 receives the screenshot instruction, it will re-perform a screenshot operation on the screenshot area. The user can continuously change the current window and re-trigger the screenshot instruction to make the screenshot module 402 repeatedly perform the screenshot operation, so as to take screenshots of the same area of different windows, and all the screenshots have the same size. After completing the screenshot, the user can input an exit screenshot instruction or operate the exit screenshot shortcut key to trigger the exit screenshot instruction. After the screenshot module 402 receives the screenshot instruction, it will exit the screenshot program.

[0068] The repeated screenshot device provided by the embodiment of the present invention can start the screenshot program, obtain the coordinate information of the screenshot area, perform a screenshot operation on the screenshot area according to the repeatedly received screenshot instruction, and obtain screenshots with the same size, improving the screenshot efficiency of capturing pictures with the same size.

[0069] Figure 5 It is a structural schematic diagram of the repeated screenshot device provided by another embodiment of the present invention. As Figure 5 shown, on the basis of the above embodiments, further, the screenshot module 402 includes an acquisition unit 4021, a creation unit 4022, a copy unit 4023, and a saving unit 4024, where:

[0070] The acquisition unit 4021 is used to acquire the device context of the current window and obtain the corresponding device description table according to the device context of the current window; the creation unit 4022 creates a compatible device context according to the device description table; the copy unit 4023 copies the pixel array of the screenshot area into the bitmap object loaded in the compatible device context according to the coordinate information of the screenshot area; the saving unit 4024 saves the pixel array of the screenshot area in the compatible device context as a picture file.

[0071] Specifically, after receiving the screenshot instruction, the acquisition unit 4021 can acquire the device context (abbreviated as DC) of the current window, and then obtain the device description table (MFCDC) corresponding to the DC of the current window according to the DC of the current window.

[0072] After obtaining the relevant memory DC, the creation unit 4022 can create a compatible DC according to the MFCDC. The compatible DC is a virtual DC used to save pictures subsequently. The compatible DC is created by the CreateCompatibleDC() function.

[0073] The copying unit 4023 copies the pixel array of the screenshot area into the bitmap object loaded in the compatible DC according to the coordinate information of the screenshot area.

[0074] The saving unit 4024 obtains the pixel array of the screenshot area from the compatible DC and saves it as a picture file. The file name of the picture file can be determined according to the current date and time string.

[0075] Figure 6 It is a schematic structural diagram of the repeated screenshot device provided by another embodiment of the present invention. As Figure 6 shown, the repeated screenshot device provided by the embodiment of the present invention further includes a storage module 403, where:

[0076] The storage module 403 is used to save the picture file according to the preset storage directory.

[0077] On the basis of the above embodiments, further, the picture file is a bitmap file.

[0078] Figure 7 It is a schematic structural diagram of the repeated screenshot device provided by still another embodiment of the present invention. As Figure 7 shown, on the basis of the above embodiments, further, the startup module 401 includes a startup unit 4011 and an obtaining unit 4012, where:

[0079] The startup unit 4011 starts the screenshot program to call the event monitor; the obtaining unit 4012 obtains the coordinate information of the screenshot area according to the detected first click operation and second click operation on the active window.

[0080] Specifically, after the startup unit 4011 starts the screenshot program, it will call the event monitor. The event monitor includes a monitor for keyboard pressing and lifting actions and a monitor for mouse operations. The mouse operations include but are not limited to clicking, moving, scrolling, etc.

[0081] The user activates the window that requires a screenshot, then designates the first point of the screenshot area in the activated window through a first click operation, and designates the second point of the screenshot area in the activated window through a second click operation. The rectangular area determined by the first point and the second point is the screenshot area. The obtaining unit 4012 can obtain the coordinates of the first point and the coordinates of the second point as the coordinate information of the screenshot area. Among them, the first click operation and the second click operation are set according to actual needs, and are not limited in the embodiments of the present invention.

[0082] Based on the above embodiments, further, the screenshot instruction is triggered by a shortcut key.

[0083] Figure 8 is a schematic structural diagram of a repeated screenshot device provided by another embodiment of the present invention. As Figure 8 shown, based on the above embodiments, further, the repeated screenshot device provided by the embodiments of the present invention further includes an exit module 404, where:

[0084] The exit module 404 is used to exit the screenshot program after receiving an exit screenshot instruction.

[0085] Specifically, the user can input an exit screenshot instruction or operate an exit screenshot shortcut key to trigger the exit screenshot instruction. After the exit module 404 receives the screenshot instruction, it will exit the screenshot program.

[0086] The embodiments of the device provided by the embodiments of the present invention can specifically be used to execute the processing procedures of the above method embodiments, and its functions will not be elaborated here. Reference can be made to the detailed descriptions of the above method embodiments.

[0087] It should be noted that the repeated screenshot method and device provided by the embodiments of the present invention can be used in the financial field, and can also be used in any technical field other than the financial field. The embodiments of the present invention do not limit the application fields of the repeated screenshot method and device.

[0088] Figure 9 is a schematic physical structure diagram of an electronic device provided by an embodiment of the present invention. As Figure 9As shown in the figure, the electronic device may include: a processor 901, a communications interface 902, a memory 903, and a communication bus 904. Among them, the processor 901, the communications interface 902, and the memory 903 communicate with each other through the communication bus 904. The processor 901 may call the logical instructions in the memory 903 to execute the following method: start the screenshot program and obtain the coordinate information of the screenshot area; perform a screenshot operation on the screenshot area according to the repeatedly received screenshot instruction; wherein, each screenshot operation takes a screenshot of the current window according to the coordinate information of the screenshot area and saves it.

[0089] In addition, when the logical instructions in the above-mentioned memory 903 can be implemented in the form of a software functional unit and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.

[0090] This embodiment discloses a computer program product. The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided in the above method embodiments, for example, including: starting the screenshot program and obtaining the coordinate information of the screenshot area; performing a screenshot operation on the screenshot area according to the repeatedly received screenshot instruction; wherein, each screenshot operation takes a screenshot of the current window according to the coordinate information of the screenshot area and saves it.

[0091] This embodiment provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. The computer program causes the computer to execute the methods provided in the above method embodiments, for example, including: starting the screenshot program and obtaining the coordinate information of the screenshot area; performing a screenshot operation on the screenshot area according to the repeatedly received screenshot instruction; wherein, each screenshot operation takes a screenshot of the current window according to the coordinate information of the screenshot area and saves it.

[0092] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) that contain computer-usable program code.

[0093] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one or more of the flows Figure 1 or blocks or the combination of flows and / or blocks.

[0094] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means that implement the functions specified in Figure 1 one or more of the flows Figure 1 or blocks or the combination of flows and / or blocks.

[0095] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one or more of the flows Figure 1 or blocks or the combination of flows and / or blocks.

[0096] In the description of this specification, the descriptions referring to terms such as "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples", etc., mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples.

[0097] The specific embodiments described above further elaborate on the purpose, technical solutions, and beneficial effects of the present invention. It should be understood that the above are only specific embodiments of the present invention and are not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for repeated screenshot, characterized in that, Including: Start the screenshot program and obtain the coordinate information of the screenshot area; Perform a screenshot operation on the screenshot area according to the repeatedly received screenshot instruction to obtain screenshot pictures of the same size; wherein, each screenshot operation takes a screenshot of the current window according to the coordinate information of the screenshot area and saves it; Among them, starting the screenshot program and obtaining the coordinate information of the screenshot area includes: Start the screenshot program to call the event monitor; Obtain the coordinate information of the screenshot area according to the detected first click operation and second click operation on the active window; the first click operation is different from the second click operation; Among them, both the first click operation and the second click operation are three consecutive left mouse clicks; when it is detected that the user makes three consecutive left mouse clicks on the active window for the first time, the clicked position coordinates will be recorded as the coordinates of the first point, and when it is detected that the user makes three consecutive left mouse clicks on the active window for the second time, the clicked position coordinates will be recorded as the coordinates of the second point, so as to obtain the coordinate information of the screenshot area.

2. The method according to claim 1, characterized in that, Taking a screenshot of the current window according to the coordinate information of the screenshot area and saving it includes: Obtain the device context of the current active window, and obtain the corresponding device description table according to the device context of the current active window; Create a compatible device context according to the device description table; Copy the pixel array of the screenshot area into the bitmap object loaded in the compatible device context according to the coordinate information of the screenshot area; Save the bitmap object in the compatible device context as a picture file.

3. The method according to claim 2, characterized in that, It also includes: Save the picture file according to the preset storage directory.

4. The method according to claim 2, characterized in that The picture file is a bitmap file.

5. The method according to claim 1, wherein The screenshot instruction is triggered by a shortcut key.

6. The method according to any one of claims 1 to 5, characterized in that, It also includes: If a screenshot exit instruction is received, exit the screenshot program.

7. A repeated screenshot device, characterized in that, Including: A start module for starting the screenshot program and obtaining the coordinate information of the screenshot area; A screenshot module for performing a screenshot operation on the screenshot area according to the repeatedly received screenshot instruction to obtain screenshot pictures of the same size; wherein, each screenshot operation takes a screenshot of the current window according to the coordinate information of the screenshot area and saves it; Among them, the start module includes a start unit and an obtaining unit, the start unit is used to start the screenshot program to call the event monitor; the obtaining unit is used to obtain the coordinate information of the screenshot area according to the detected first click operation and second click operation on the active window; the first click operation is different from the second click operation; Among them, both the first click operation and the second click operation are three consecutive left mouse clicks; the obtaining unit is specifically used to record the clicked position coordinates as the coordinates of the first point when it is detected that the user makes three consecutive left mouse clicks on the active window for the first time, and record the clicked position coordinates as the coordinates of the second point when it is detected that the user makes three consecutive left mouse clicks on the active window for the second time, so as to obtain the coordinate information of the screenshot area.

8. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.