Screen capture method and device, electronic equipment and storage medium

Through the method of double-clicking the screen with three fingers, the traditional screenshot method is solved, and the problem of cumbersome and easy to operate is easily solved, achieving efficient and convenient screenshot operations and improving user experience.

CN120010732APending Publication Date: 2025-05-16WEILAI MOBILE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311515499.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-14
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

Traditional screenshot methods are cumbersome and can easily lead to accidental touch and misoperation, affecting the user experience.

Method used

The screenshot function is realized by touching the screen at least three fingers and performing double-clicking under preset conditions. The specific steps include: receiving the user's first operation (at least three fingers touch) and displaying a still screen when the preset condition is met; receiving the user's second operation (at least three fingers touch again) and displaying the screenshot interface when the preset condition is met, and obtaining screenshots.

Benefits of technology

It improves the efficiency and convenience of screenshots, reduces the risk of misoperation, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120010732A_ABST
    Figure CN120010732A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of touch screens of electronic equipment, particularly provides a screen capture method and device, electronic equipment and a storage medium, and aims to solve the technical problems that an existing screen capture method is relatively low in efficiency and possibly causes mistaken touch. In order to achieve the purpose, the screen capture method comprises the steps that a click event of a user at any position of a screen of the electronic equipment is monitored; the electronic equipment receives a first operation of a user; if the first operation meets the first preset condition, the electronic equipment displays a static picture; the electronic equipment receives a second operation of the user; and if the second operation meets a second preset condition, the electronic equipment displays a screenshot interface and obtains a screenshot of the touch screen. Thus, the purpose of performing screenshot by double clicking the screen with three fingers is achieved, the screenshot efficiency is improved, meanwhile, the risk of misoperation is reduced, and the use experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic device touch screens, and specifically provides a screenshot method, device, electronic device, and storage medium. Background Art

[0002] Currently, mobile phone users often need to capture screen content in daily use for sharing, saving or editing.

[0003] Traditional screenshot methods usually require pressing multiple physical buttons or operating in the control center, which is cumbersome and inconvenient, especially in some situations (such as emergency situations or when one-handed operation is required). In addition, the existing method of touching the screen to take screenshots may cause accidental touch misoperation, causing unnecessary trouble to users and resulting in a poor user experience.

[0004] Accordingly, the art needs a new screenshot solution to solve the above problems. Summary of the invention

[0005] In order to overcome the above defects, the present application is proposed to provide a solution or at least partially solve the above technical problems. The present application provides a screenshot method, device, electronic device and storage medium.

[0006] In a first aspect, the present application provides a screenshot method, the method comprising: an electronic device receiving a first operation from a user, the first operation being at least three fingers of the user touching the touch screen of the electronic device; if the first operation satisfies a first preset condition, the electronic device displays a still picture; wherein the first preset condition is that the at least three fingers touch the touch screen, and a first rectangular area corresponding to the at least three fingers is within a first threshold area; the electronic device receives a second operation from the user, the second operation being at least three fingers of the user touching the touch screen again within a preset time threshold; if the second operation satisfies a second preset condition, the electronic device displays a screenshot interface and obtains a screenshot of the touch screen; wherein the second preset condition is that the at least three fingers touch the touch screen, and a second rectangular area corresponding to the at least three fingers is within a second threshold area.

[0007] In one embodiment, the second touch is a touch performed by the user after the first operation is completed and the at least three fingers are removed from the touch screen.

[0008] In one embodiment, the first rectangular area corresponding to the at least three fingers is determined by the following steps: obtaining the first coordinate, the second coordinate and the third coordinate corresponding to the at least three fingers respectively; determining the first side length based on the maximum horizontal coordinate and the minimum horizontal coordinate among the first coordinate, the second coordinate and the third coordinate; determining the second side length based on the maximum vertical coordinate and the minimum vertical coordinate among the first coordinate, the second coordinate and the third coordinate; determining the corner point based on the minimum horizontal coordinate and the minimum vertical coordinate; determining the first rectangular area based on the first side length, the second side length and the corner point.

[0009] In one embodiment, the method further includes: if the second operation does not satisfy a second preset condition, canceling display of the still picture.

[0010] In one embodiment, the first threshold area and / or the second threshold area is a square area, and the first threshold area and / or the second threshold area are obtained by the following steps: obtaining the width and height of the touch screen; based on the minimum value of the width and the height, obtaining the third side length according to a preset ratio; and using the third side length as the side length of the first threshold area and / or the second threshold area.

[0011] In one implementation, the preset ratio has a value range of [50%, 65%].

[0012] In one embodiment, the method further includes: after the electronic device displays the still picture, the electronic device sends a prompt message to the user.

[0013] In a second aspect, the present application provides a screen capture device, the device comprising:

[0014] A first receiving module, wherein the first receiving module is configured to receive a first operation of a user, wherein the first operation is that at least three fingers of the user touch the touch screen of the electronic device;

[0015] a display module, wherein the display module is configured to, if the first operation satisfies a first preset condition, cause the electronic device to display a still picture; wherein the first preset condition is that at least three fingers touch the touch screen, and a first rectangular area corresponding to the at least three fingers is within a first threshold area;

[0016] a second receiving module, the second receiving module being configured to receive a second operation of the user, where the second operation is that at least three fingers of the user touch the touch screen again within a preset time threshold;

[0017] A screenshot module, wherein the screenshot module is configured such that if the second operation satisfies a second preset condition, the electronic device displays a screenshot interface and obtains a screenshot of the touch screen; wherein the second preset condition is that at least three fingers touch the touch screen, and a second rectangular area corresponding to the at least three fingers is within a second threshold area.

[0018] In a third aspect, an electronic device is provided, which includes a processor, a memory and a touch screen, wherein the memory is suitable for storing computer program code, and the program code is suitable for being loaded by the processor and running the aforementioned screenshot method.

[0019] In a fourth aspect, a computer-readable storage medium is provided, wherein a plurality of program codes are stored in the computer-readable storage medium, wherein the program codes are suitable for being loaded and run by a processor to execute any of the aforementioned screenshot methods.

[0020] The above one or more technical solutions of the present application have at least one or more of the following beneficial effects:

[0021] The screenshot method provided by the present application includes: an electronic device receives a first operation of a user, wherein the first operation is that at least three fingers of the user touch the touch screen of the electronic device; if the first operation satisfies a first preset condition, the electronic device displays a still picture; wherein the first preset condition is that the at least three fingers touch the touch screen, and the first rectangular area corresponding to the at least three fingers is within a first threshold area; the electronic device receives a second operation of the user, wherein the second operation is that at least three fingers of the user touch the touch screen again within a preset time threshold; if the second operation satisfies a second preset condition, the electronic device displays a screenshot interface and obtains a screenshot of the touch screen; wherein the second preset condition is that the at least three fingers touch the touch screen, and the second rectangular area corresponding to the at least three fingers is within a second threshold area. In this way, the purpose of taking a screenshot by double-clicking the screen with three fingers is achieved, the efficiency of screenshot is improved, the risk of misoperation is reduced, and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The disclosure of the present application will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present application. In addition, similar numbers in the drawings are used to represent similar components, among which:

[0023] Figure 1 is a schematic diagram of the structure of a touch screen of an electronic device in one embodiment of the present application;

[0024] Figure 2 This is a flowchart of the main steps of a screenshot method according to an embodiment of the present application;

[0025] Figure 3 is a schematic diagram of a system architecture of an electronic device in an embodiment;

[0026] FIG4(a), FIG4(b), FIG4(c), FIG4(d), FIG4(e), and FIG4(f) are schematic diagrams of a rectangular area and a threshold area corresponding to a touch event in one embodiment;

[0027] FIG5(a), FIG5(b), and FIG5(c) are schematic diagrams of taking screenshots by double-clicking with three fingers in one embodiment;

[0028] Figure 6 is a flowchart of a screenshot method in an embodiment;

[0029] Figure 7 is a complete flowchart of a screenshot method in one embodiment;

[0030] Figure 8 is a schematic diagram of the main structural block diagram of a screen capture device in an embodiment;

[0031] Fig. 9 It is a schematic diagram of the structure of an electronic device in an embodiment. DETAILED DESCRIPTION

[0032] Some embodiments of the present application are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present application and are not intended to limit the protection scope of the present application.

[0033] In the description of the present application, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, memory, and may also include software parts, such as program code, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program code, such as a disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, etc. The term "A and / or B" means all possible combinations of A and B, such as only A, only B or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B" and may include only A, only B or A and B. The singular terms "one" and "the" may also include plural forms.

[0034] Currently, traditional screenshot methods are inefficient and may cause accidental touch misoperations, resulting in a poor user experience.

[0035] To this end, the present application proposes a screenshot method, device, electronic device and storage medium, the method comprising: the electronic device receives a first operation of the user, the first operation is that at least three fingers of the user touch the touch screen of the electronic device; if the first operation satisfies a first preset condition, the electronic device displays a still picture; wherein the first preset condition is that the at least three fingers touch the touch screen, and the first rectangular area corresponding to the at least three fingers is within a first threshold area; the electronic device receives a second operation of the user, the second operation is that at least three fingers of the user touch the touch screen again within a preset time threshold; if the second operation satisfies a second preset condition, the electronic device displays a screenshot interface and obtains a screenshot of the touch screen; wherein the second preset condition is that the at least three fingers touch the touch screen, and the second rectangular area corresponding to the at least three fingers is within a second threshold area. In this way, the purpose of three-finger double-clicking the screenshot is achieved, the screenshot efficiency is improved, the risk of misoperation is reduced, and the user experience is improved.

[0036] The electronic device in the present application may be a mobile phone, a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a smart watch, a netbook, a wearable electronic device, an augmented reality (AR) device, a virtual reality (VR) device, a vehicle-mounted device, a smart car, a smart speaker, a robot, etc. The present application does not impose any special restrictions on the specific form of the electronic device.

[0037] Take a smartphone as an example of an electronic device, such as Figure 1 The figure shows an example of a touch screen of a smart phone. The touch screen of the smart phone includes a touch screen body 1 of the smart phone, the touch screen body 1 includes a front panel, the front panel of the touch screen body 1 includes a black matrix (BM) area 2, the BM area 2 is set to prevent light leakage from the touch screen, and the touch screen of the smart phone also includes a top 3, a side 4 and another side 5 corresponding to the side 4.

[0038] See attached Figure 2 , Figure 2 It is a flowchart of the main steps of a screenshot method according to an embodiment of the present application.

[0039] like Figure 2 As shown, the screenshot method in the embodiment of the present application mainly includes the following steps S100 to S400.

[0040] Step S100: the electronic device receives a first operation of the user, where the first operation is at least three fingers of the user touching the touch screen of the electronic device.

[0041] Step S200: If the first operation satisfies a first preset condition, the electronic device displays a still picture; wherein the first preset condition is that at least three fingers touch the touch screen, and a first rectangular area corresponding to the at least three fingers is within a first threshold area.

[0042] A still picture refers to a static interface displayed on the touch screen of an electronic device, and the still picture is the content displayed on the touch screen when the electronic device determines that the first operation satisfies the first preset condition. For example, when the electronic device determines that the first operation satisfies the first preset condition at a certain moment, the touch screen continues to display the screen content at that moment. It can be understood that the touch screen can be determined to present a still picture at this time according to the clock on the status bar of the touch screen stopping moving.

[0043] In this step, at least three fingers should touch the touch screen simultaneously within a small time range (i.e., a preset time threshold with a smaller value). If at least three fingers touch the touch screen for a longer time (exceeding the small time range), it is determined that the first operation does not meet the first preset condition. The small time range can be a time threshold preset by the system, or can be adaptively adjusted by the user according to actual conditions, and there is no limitation on this. For example, 30ms, 40ms, 50ms, 60ms, 80ms, etc. can all be used as examples of the small time range.

[0044] Step S300: the electronic device receives a second operation of the user, where the second operation is that at least three fingers of the user touch the touch screen again within a preset time threshold.

[0045] In this step, at least three fingers should touch the touch screen simultaneously within a small time range. If at least three fingers touch the touch screen for a longer time (exceeding the small time range), it is determined that the second operation does not meet the second preset condition.

[0046] Step S400: If the second operation satisfies a second preset condition, the electronic device displays a screenshot interface and obtains a screenshot of the touch screen; wherein the second preset condition is that at least three fingers touch the touch screen, and a second rectangular area corresponding to the at least three fingers is within a second threshold area.

[0047] A touch screen is an input device for electronic devices that allows users to control electronic devices by touching icons, buttons, and menus on the screen. Touch screens can be operated using fingers or special styluses, and they usually consist of a transparent capacitive layer and sensors that can detect the user's touch position and gestures.

[0048] A user refers to a person who uses or operates an electronic device. In the embodiment of the present application, there is no limitation on whether two operations are performed by the same user.

[0049] Based on the above steps S100-S400, it specifically includes: the electronic device receives a first operation of the user, the first operation is that at least three fingers of the user touch the touch screen of the electronic device; if the first operation meets the first preset condition, the electronic device displays a still picture; wherein the first preset condition is that the at least three fingers touch the touch screen, and the first rectangular area corresponding to the at least three fingers is within the first threshold area; the electronic device receives a second operation of the user, the second operation is that at least three fingers of the user touch the touch screen again within a preset time threshold; if the second operation meets the second preset condition, the electronic device displays a screenshot interface and obtains a screenshot of the touch screen; wherein the second preset condition is that the at least three fingers touch the touch screen, and the second rectangular area corresponding to the at least three fingers is within the second threshold area. In this way, the purpose of three-finger double-clicking the screen screenshot is achieved, the screenshot efficiency is improved, the risk of misoperation is reduced, and the user experience is improved.

[0050] Figure 3 This is a schematic diagram of the system architecture of the electronic device of this application. Figure 3 As shown, the electronic device of the present application includes an application layer, a framework layer, a local service (Native) layer and a kernel layer.

[0051] The application layer includes clock, camera, photo album, music, Bluetooth, video, short message and other applications.

[0052] In some embodiments, the application may also include a screenshot application, such as SystemUI, which can be used to draw a screenshot preview, such as drawing a screenshot of the entire current screen, and cropping, synthesizing, modifying, etc. the screenshot to generate another screenshot that includes a portion of the application window in the current screen.

[0053] The framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0054] like Figure 3 As shown, the framework layer may include a window manager, a content provider, an input manager, a view system, a resource manager, a notification manager, and the like.

[0055] The window manager is used to manage window programs. The window manager can obtain the size of the touch screen, determine whether there is a status bar, lock the screen, capture the screen, etc. In addition, the window management module is also responsible for registering global monitoring events, which include at least click events or touch events of the touch screen. After registering the click event or touch event, the listener can monitor the click or touch event at any position of the touch screen to trigger the subsequent judgment logic.

[0056] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0057] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0058] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, etc.

[0059] The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and disappear automatically after a short stay without user interaction.

[0060] In the local service (Native) layer, SurfaceFlinger is responsible for display content synthesis rendering, and SystemUI will take screenshots through the interface of this service.

[0061] InputFl inger implements input event management, including receiving events reported from the touch screen driver and event processing and distribution, and finally notifying the input event listening unit registered in the framework layer.

[0062] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, touch screen (TP) driver, camera driver, audio driver, etc.

[0063] In the kernel layer, the display driver is responsible for the display of screen content. The touch screen driver is responsible for the touch screen driver, such as identifying input events and reporting events.

[0064] The above steps S200 to S400 are further explained below.

[0065] In step S200, when the first operation satisfies the first preset condition, the electronic device performs screen interception processing on the touch screen. At this time, the touch screen becomes the only processor of all input events. Specifically, the touch screen of the electronic device only responds to finger touch events. At this time, the electronic device presents a static picture.

[0066] In a specific embodiment, the first rectangular area corresponding to the at least three fingers is determined by the following steps: obtaining the first coordinate, the second coordinate and the third coordinate corresponding to the at least three fingers respectively; determining the first side length based on the maximum horizontal coordinate and the minimum horizontal coordinate among the first coordinate, the second coordinate and the third coordinate; determining the second side length based on the maximum vertical coordinate and the minimum vertical coordinate among the first coordinate, the second coordinate and the third coordinate; determining the corner point based on the minimum horizontal coordinate and the minimum vertical coordinate; determining the first rectangular area based on the first side length, the second side length and the corner point.

[0067] For the touch screen of an electronic device, a coordinate system can be established with the upper left corner of the screen as the coordinate origin, the width of the touch screen as the horizontal axis, and the height of the touch screen as the vertical axis. When a finger touches the screen, the electronic device can obtain the number of finger touch areas, thereby determining how many fingers the user has used to touch the screen. Since the finger touch area is circular or approximately circular when the finger touches the screen, the electronic device can also obtain the coordinates of the center of the circle formed when each finger touches the screen, including the horizontal coordinate and the vertical coordinate.

[0068] For example, the electronic device obtains the coordinates of three fingers as the first coordinate, the second coordinate and the third coordinate, and then determines the maximum horizontal coordinate, the minimum horizontal coordinate, the maximum vertical coordinate and the minimum vertical coordinate among the three coordinates, and takes the difference between the maximum horizontal coordinate and the minimum horizontal coordinate as the first side length, the difference between the maximum vertical coordinate and the minimum vertical coordinate as the second side length, and the point corresponding to the minimum horizontal coordinate and the minimum vertical coordinate as the corner point, and finally obtains the rectangular area (first rectangular area) according to the first side length, the second side length and the corner point.

[0069] In this way, through the above step S200, the rectangular area corresponding to at least three fingers is determined by the coordinates corresponding to the finger of the first operation, and then the rectangular area is compared with the first threshold area to determine whether the first preset condition is met. There is no need to pre-judge the placement angle or the horizontal or vertical screen state of the electronic device, and it is possible to accurately detect whether the first click operation meets the first preset condition. Compared with the prior art where it is necessary to first judge the placement angle or the horizontal or vertical screen state of the electronic device, the detection efficiency and detection rate of the click operation event are improved.

[0070] In a specific implementation, the method further includes: after the electronic device displays the still picture, the electronic device sends a prompt message to the user.

[0071] Specifically, after the electronic device displays a still picture, the electronic device can send a prompt message to the user. The prompt message can be a voice reminder, a vibration reminder, a message reminder, etc., or it can be a prompt formed by the electronic device displaying a certain shape or highlighting a certain area on the screen, but is not limited to this. In this way, the user can clearly know that the current electronic device has displayed a still picture, and can further perform subsequent touch operations, thereby improving the user experience.

[0072] In step S300, the electronic device receives at least three fingers of the user touching the touch screen again within a preset time threshold.

[0073] The preset time threshold is a time threshold determined in advance through experiments, which is used as a basis for judging whether two touch operations meet the time condition. Specifically, the preset time threshold can be determined according to actual conditions, or can be set by the user in the system settings of the electronic device, and there is no limitation on this. In one embodiment, 350ms, 400ms, 450ms, 500ms, 600ms, 700ms, 800ms, etc. can be used as examples of the preset time threshold.

[0074] In a specific implementation, the second touch is a touch performed by the user after the first operation is completed and the at least three fingers are removed from the touch screen.

[0075] Specifically, the second touch is a touch performed by the user after the first touch operation is completed and the finger is lifted, such as touching the touch screen of the electronic device again after removing at least three fingers from the touch screen. That is to say, the two touches in this embodiment are actually two consecutive click events.

[0076] In step S400, if the second operation meets the second preset condition, the electronic device displays a screenshot interface, which may be a picture displayed in a small frame at any corner of the touch screen, or may be a voice, vibration or text message prompt indicating that the screenshot interface is currently being displayed. Then, a screenshot of the touch screen is obtained.

[0077] The second preset condition in this embodiment is that at least three fingers touch the touch screen simultaneously within a small time range, and the second rectangular area corresponding to the at least three fingers is within the second threshold area. The method for determining the second rectangular area is similar to the method for determining the first rectangular area, which will not be repeated here.

[0078] In a specific embodiment, the first threshold area and / or the second threshold area is a square area, and the first threshold area and / or the second threshold area are obtained by the following steps: obtaining the width and height of the touch screen; based on the minimum value of the width and the height, obtaining the third side length according to a preset ratio; and using the third side length as the side length of the first threshold area and / or the second threshold area.

[0079] Specifically, regardless of whether the current electronic device is in landscape or portrait mode, first obtain the width and height of the touch screen, determine the minimum value of the width and height, and take the product of the minimum value and the preset ratio as the third side length. The third side length is the side length of the first threshold area and / or the second threshold area, so as to obtain a square area.

[0080] In one embodiment, the preset ratio ranges from [50% to 65%].

[0081] The preset ratio is a preset ratio coefficient, and the preset ratio can be determined according to actual conditions. In a preferred embodiment, the preset ratio can be a value selected from the range of [50%, 65%]. For example, 50%, 60% and 65% can all be used as examples of the preset ratio.

[0082] In addition, the area of ​​the touch screen can be determined first, and the product of the preset ratio and the area can be used as the first threshold area and / or the second threshold area, and the preset ratio here can be determined according to actual conditions. In one embodiment, the value range of the preset ratio can also be [50%, 65%].

[0083] In this way, based on the width and height of the touch screen, the first threshold area and / or the second threshold area is obtained by the minimum value of the two or the rectangular area determined by the two, which is applicable to any scenario and can effectively avoid accidental touch operations of the screen in some complex scenarios.

[0084] In a specific implementation, the method further includes: if the second operation does not satisfy a second preset condition, canceling display of the still picture.

[0085] Specifically, when it is detected that the second operation does not meet the second preset condition, the screen interception is canceled, the electronic device no longer displays the static picture, and it responds normally to the user input operation. The user can use this to determine that the process of this touch screenshot is terminated or ended. When the user wants to take a screenshot again based on the method described in the embodiment of the present application, the process of the first operation and the second operation can be repeated.

[0086] Exemplarily, as shown in FIG. 4(a), FIG. 4(b), FIG. 4(c), FIG. 4(d), FIG. 4(e), and FIG. 4(f), the square area is the first threshold area and / or the second threshold area. In FIG. 4(a), FIG. 4(b), and FIG. 4(c), the rectangular area formed by the three-finger touch is located within the square area, indicating that the touch condition is met at this time. In FIG. 4(d), FIG. 4(e), and FIG. 4(f), the rectangular area formed by the three-finger touch exceeds the square area, indicating that the touch condition is not met at this time.

[0087] Exemplarily, Figure 5(a) can be used as an example of a three-finger double-click on the screen. Specifically, Figure 5(b) can be used as an example of a three-finger double-click on the screen in the portrait mode, and Figure 5(c) can be used as an example of a three-finger double-click on the screen in the landscape mode.

[0088] Figure 6 This is a flowchart of the screenshot method. Figure 6 As shown, in this embodiment, the screenshot method can be specifically implemented through the following steps S1-S6.

[0089] S1: Register global input listener events.

[0090] S2: When a click event is recognized, determine whether the input event is a three-finger touch. If so, execute the following step S3, otherwise, end.

[0091] S3: Take the three coordinate points of the input event for comparison, calculate the difference between the smallest horizontal coordinate and the largest horizontal coordinate, and the difference between the smallest vertical coordinate and the largest vertical coordinate among all the coordinates of the current event, so as to form a rectangular area.

[0092] S4: Take the minimum value of the screen width and height, calculate the side length according to the preset ratio, determine the threshold area, and judge whether the rectangular area triggered by the finger exceeds the threshold area. This calculation method can adapt to the horizontal and vertical screens and screen resolution switching scenarios.

[0093] S5: When the three-finger operation is satisfied and the touch range is within the threshold area, the screen event is intercepted to avoid misoperation. At the same time, the time of the event is recorded and the next touch event is waited for.

[0094] S6: Repeat steps S2-S4. When the second click event also satisfies the conditions of three-finger operation and the touch range is within the threshold area, compare the time of the current event with the time of the first click event. If the time interval is within the preset time range, the screenshot action is triggered.

[0095] Figure 7 This is a complete flowchart of the screenshot method of this application. Figure 7As shown, when a finger triggers the screen, the gesture monitor is triggered. For the first click event, it is determined in turn whether the three fingers touch the screen at the same time and whether the rectangular area formed by the three fingers is within the preset range. If so, the screen is intercepted, the time of the first click event is recorded, and the next touch event is waited for; if not, the gesture state is determined to be failed and the operation ends. When the second click event occurs, it is determined that the three fingers touch the screen at the same time, the time interval is less than the preset threshold, and the rectangular area formed by the three fingers is within the preset range, and the screenshot operation is triggered.

[0096] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effect of the present application, different steps do not have to be executed in such an order. They can be executed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present application.

[0097] Furthermore, the present application also provides a screenshot device.

[0098] See attached Figure 8 , Figure 8 It is a main structural block diagram of a screenshot device according to an embodiment of the present application.

[0099] like Figure 8 As shown, the screenshot device in the embodiment of the present application mainly includes a first receiving module 81, a display module 82, a second receiving module 83, and a screenshot module 84. In some embodiments, one or more of the first receiving module 81, the display module 82, the second receiving module 83, and the screenshot module 84 can be combined into one module.

[0100] In some embodiments, the first receiving module 81 may be configured to receive a first operation of a user, where the first operation is touching the touch screen of the electronic device with at least three fingers.

[0101] The display module 82 can be configured to display a still picture on the electronic device if the first operation satisfies a first preset condition, wherein the first preset condition is that at least three fingers touch the touch screen simultaneously and a first rectangular area corresponding to the at least three fingers is within a first threshold area.

[0102] The second receiving module 83 may be configured to receive a second operation of the user, where the second operation is that the at least three fingers touch the touch screen again within a preset time.

[0103] The screenshot module 84 can be configured such that if the second operation satisfies a second preset condition, the electronic device displays a screenshot interface and obtains a screenshot of the touch screen, and the second preset condition is that at least three fingers touch the touch screen simultaneously, and the second rectangular area corresponding to the at least three fingers is within a second threshold area.

[0104] In one implementation, the description of the specific implementation functions can refer to steps S100-S400.

[0105] The above-mentioned screen capture device is used to execute Figure 2 The screenshot method embodiments shown in the figure are similar in their technical principles, technical problems solved and technical effects produced. Technical personnel in this technical field can clearly understand that for the convenience and conciseness of description, the specific working process and related instructions of the screenshot device can refer to the contents described in the screenshot method embodiments, and will not be repeated here.

[0106] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above-mentioned embodiment of the present application can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable storage medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.

[0107] Further, if Fig. 9 As shown, the present application also provides an electronic device. In an electronic device embodiment according to the present application, the electronic device includes at least one processor 91, at least one memory 92 and a touch screen 93, the memory 92 can be configured to store a program for executing the screenshot method of the above method embodiment, and the processor 91 can be configured to execute the program in the memory 92, which includes but is not limited to the program for executing the screenshot method of the above method embodiment. For ease of explanation, only the parts related to the embodiments of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of the present application.

[0108] In an embodiment of the present invention, the electronic device may be a control device device formed by various devices. In some possible implementations, the electronic device may include multiple memories and multiple processors. The program for executing the screenshot method of the above method embodiment may be divided into multiple subprograms, each of which may be loaded and run by a processor to execute different steps of the screenshot method of the above method embodiment. Specifically, each subprogram may be stored in different storage devices, respectively, and each processor may be configured to execute programs in one or more memories to jointly implement the screenshot method of the above method embodiment, that is, each processor executes different steps of the screenshot method of the above method embodiment, respectively, to jointly implement the screenshot method of the above method embodiment.

[0109] The above-mentioned multiple processors may be processors deployed on the same device. For example, the above-mentioned electronic device may be a high-performance device composed of multiple processors, and the above-mentioned multiple processors may be processors configured on the high-performance device. In addition, the above-mentioned multiple processors may also be processors deployed on different devices. For example, the above-mentioned electronic device may be a server cluster, and the above-mentioned multiple processors may be processors on different servers in the server cluster.

[0110] Furthermore, the present application also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present application, the computer-readable storage medium may be configured to store a program for executing the screenshot method of the above-mentioned method embodiment, and the program may be loaded and run by the processor to implement the above-mentioned screenshot method. For ease of explanation, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The computer-readable storage medium may be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present application is a non-temporary computer-readable storage medium.

[0111] So far, the technical solutions of the present application have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments. Without departing from the principles of the present application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present application.

Claims

1. A screenshot method, characterized in that: The method comprises: The electronic device receives a first operation of a user, where the first operation is at least three fingers of the user touching the touch screen of the electronic device; If the first operation satisfies a first preset condition, the electronic device displays a still picture; wherein the first preset condition is that at least three fingers touch the touch screen, and a first rectangular area corresponding to the at least three fingers is within a first threshold area; The electronic device receives a second operation of the user, where the second operation is that at least three fingers of the user touch the touch screen again within a preset time threshold; If the second operation satisfies a second preset condition, the electronic device displays a screenshot interface and obtains a screenshot of the touch screen; wherein the second preset condition is that at least three fingers touch the touch screen, and a second rectangular area corresponding to the at least three fingers is within a second threshold area.

2. The screenshot method according to claim 1, characterized in that: The second touch is a touch performed by the user after the first operation is completed and the at least three fingers are removed from the touch screen.

3. The screenshot method according to claim 1, characterized in that: The first rectangular area corresponding to the at least three fingers is determined by the following steps: Obtaining first coordinates, second coordinates, and third coordinates corresponding to the at least three fingers respectively; determining a first side length based on a maximum horizontal coordinate and a minimum horizontal coordinate among the first coordinate, the second coordinate, and the third coordinate; determining a second side length based on a maximum ordinate and a minimum ordinate among the first coordinate, the second coordinate, and the third coordinate; Determine a corner point based on the minimum abscissa and the minimum ordinate; The first rectangular area is determined based on the first side length, the second side length, and the corner point.

4. The screenshot method according to claim 1, characterized in that: The method further includes: if the second operation does not satisfy a second preset condition, canceling display of the still picture.

5. The screenshot method according to any one of claims 1 to 4, characterized in that: The first threshold area and / or the second threshold area are square areas, and the first threshold area and / or the second threshold area are obtained by the following steps: Get the width and height of the touch screen; Based on the minimum value of the width and the height, obtaining a third side length according to a preset ratio; The third side length is used as the side length of the first threshold area and / or the second threshold area.

6. The screenshot method according to claim 1, characterized in that: The value range of the preset ratio is [50%, 65%].

7. The screenshot method according to claim 1, characterized in that: The method further includes: after the electronic device displays the still picture, the electronic device sends prompt information to the user.

8. A screen capture device, characterized in that: The device comprises: A first receiving module, wherein the first receiving module is configured to receive a first operation of a user, wherein the first operation is that at least three fingers of the user touch the touch screen of the electronic device; a display module, wherein the display module is configured to, if the first operation satisfies a first preset condition, cause the electronic device to display a still picture; wherein the first preset condition is that at least three fingers touch the touch screen, and a first rectangular area corresponding to the at least three fingers is within a first threshold area; a second receiving module, the second receiving module being configured to receive a second operation of the user, where the second operation is that at least three fingers of the user touch the touch screen again within a preset time threshold; A screenshot module, wherein the screenshot module is configured such that if the second operation satisfies a second preset condition, the electronic device displays a screenshot interface and obtains a screenshot of the touch screen; wherein the second preset condition is that at least three fingers touch the touch screen, and a second rectangular area corresponding to the at least three fingers is within a second threshold area.

9. An electronic device, characterized in that: The method comprises a processor, a memory and a touch screen, wherein the memory is suitable for storing computer program codes, and wherein the program codes are suitable for being loaded and run by the processor to execute the screenshot method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The storage medium stores computer program code, and the program code is suitable for being loaded and run by a processor to execute the screenshot method according to any one of claims 1 to 7.