CN111443980B - Operation processing method, device, equipment and computer readable storage medium - Google Patents

Operation processing method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111443980B
CN111443980B CN202010313046.4A CN202010313046A CN111443980B CN 111443980 B CN111443980 B CN 111443980B CN 202010313046 A CN202010313046 A CN 202010313046A CN 111443980 B CN111443980 B CN 111443980B
Authority
CN
China
Prior art keywords
window
displacement
mouse pointer
shielding
timing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010313046.4A
Other languages
Chinese (zh)
Other versions
CN111443980A (en
Inventor
钟杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Timestamp Information Technology Co ltd
Original Assignee
Hangzhou Timestamp Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Timestamp Information Technology Co ltd filed Critical Hangzhou Timestamp Information Technology Co ltd
Priority to CN202010313046.4A priority Critical patent/CN111443980B/en
Publication of CN111443980A publication Critical patent/CN111443980A/en
Application granted granted Critical
Publication of CN111443980B publication Critical patent/CN111443980B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to an operation processing method, which comprises the following steps: in response to detecting that a mouse pointer moves from a first window in an activated state to an operation area of a closing option of a second window, generating an operation shielding component for the operation area; the operation shielding component is used for shielding the selection operation of the user on the closing option of the second window; determining the displacement of the mouse pointer from leaving the first window to reaching the operation area; after the operation shielding component is generated, judging whether the displacement is greater than or equal to a preset displacement threshold value; deleting the operational masking component in response to determining that the displacement is greater than or equal to the displacement threshold. The operation processing method provided by the application is beneficial to reducing the probability that the user closes the window by mistake. The application also provides an operation processing device, equipment and a computer readable storage medium.

Description

Operation processing method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an operation processing method, an operation processing apparatus, a device, and a computer-readable storage medium.
Background
When an application is running on a computer, the desktop may present a window of the application. In order to use services provided by different application service providers, users often open multiple applications, and switch different windows of the same application or different windows of different applications as needed.
However, in the course of implementing the present invention, the inventor finds that in the case where the current window is not maximally displayed, the user may erroneously close the underlying window. Illustratively, as shown in fig. 1, a first window V1 activated on the desktop is in a non-maximized display state, and a user is liable to mistakenly close a second window V2 during operation.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an operation processing method, device, apparatus and computer-readable storage medium that are beneficial to reducing the probability of a user closing a window by mistake.
A method of operation processing, the method comprising:
in response to detecting that a mouse pointer moves from a first window in an activated state to an operation area of a closing option of a second window, generating an operation shielding component for the operation area; the operation shielding component is used for shielding the selection operation of the user on the closing option of the second window;
determining the displacement of the mouse pointer from leaving the first window to reaching the operation area;
after the operation shielding component is generated, judging whether the displacement is greater than or equal to a preset displacement threshold value;
deleting the operational masking component in response to determining that the displacement is greater than or equal to the displacement threshold.
An operation processing device comprises a shielding layer generating module, a displacement determining module, a displacement judging module and a first shielding layer deleting module;
the shielding layer generating module is used for responding to the detection that a mouse pointer moves from a first window in an activated state to an operation area of a closing option of a second window, and generating an operation shielding component for the operation area; the operation shielding component is used for shielding the selection operation of the user on the closing option of the second window;
the displacement determination module is used for determining the displacement of the mouse pointer from leaving the first window to reaching the operation area;
the displacement judging module is used for judging whether the displacement is greater than or equal to a preset displacement threshold value after the operation shielding component is generated;
the first shield layer deletion module is to delete the operational shield component in response to determining that the displacement is greater than or equal to the displacement threshold.
An apparatus comprising a memory storing a computer program and a processor implementing the following steps when the computer program is executed:
in response to detecting that a mouse pointer moves from a first window in an activated state to an operation area of a closing option of a second window, generating an operation shielding component for the operation area; the operation shielding component is used for shielding the selection operation of the user on the closing option of the second window;
determining the displacement of the mouse pointer from leaving the first window to reaching the operation area;
after the operation shielding component is generated, judging whether the displacement is greater than or equal to a preset displacement threshold value;
deleting the operational masking component in response to determining that the displacement is greater than or equal to the displacement threshold.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
in response to detecting that a mouse pointer moves from a first window in an activated state to an operation area of a closing option of a second window, generating an operation shielding component for the operation area; the operation shielding component is used for shielding the selection operation of the user on the closing option of the second window;
determining the displacement of the mouse pointer from leaving the first window to reaching the operation area;
after the operation shielding component is generated, judging whether the displacement is greater than or equal to a preset displacement threshold value;
deleting the operational masking component in response to determining that the displacement is greater than or equal to the displacement threshold.
According to the operation processing method, the operation processing device, the operation processing equipment and the computer readable storage medium, the operation shielding component is generated for the operation area by responding to the detection that the mouse pointer moves from the first window in the activated state to the operation area of the closing option of the second window, so that the selection operation of the user on the closing option of the second window is shielded in time, and the probability that the user closes the window by mistake is reduced; and determining whether the second window is a window which is easy to be operated by mistake by judging whether the displacement of the mouse pointer from the position away from the first window to the position reaching the operation area of the closing option of the second window is larger than or equal to a preset displacement threshold value, and deleting the operation shielding component when the displacement of the mouse pointer is judged to be larger than or equal to the displacement threshold value after the operation shielding component is generated, so that a user can conveniently continue to execute the closing operation of the second window, and the user experience is improved.
Drawings
FIG. 1 is a schematic diagram of a desktop of one embodiment;
FIG. 2 is a flow diagram of a method of operation processing in one embodiment;
FIG. 3 is a schematic diagram of a desktop in yet another embodiment;
FIG. 4 is a schematic diagram of a desktop in yet another embodiment;
FIG. 5 is a flowchart of an operation processing method in still another embodiment;
FIG. 6 is a flowchart of an operation processing method in still another embodiment;
FIG. 7 is a block diagram showing the configuration of an operation processing device in one embodiment;
fig. 8 is an internal structural diagram of the apparatus in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
The terms "first," "second," and the like in the description and claims of the embodiments of the application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The operation processing method provided by the embodiment of the application can be applied to the terminal. The terminal may be, but is not limited to, various personal computers, notebook computers, and the like.
In one embodiment, as shown in fig. 2, there is provided an operation processing method including steps S202 to S208:
step S202, in response to detecting that the mouse pointer moves from the first window in the activated state to the operation area of the closing option of the second window, generating an operation shielding component for the operation area of the closing option of the second window.
The mouse pointer is used for identifying a mouse position on the graphical interface, and when a user moves the mouse, the mouse pointer on the desktop moves along with the movement of the mouse.
The operation shielding component is used for shielding the user from selecting the closing option of the second window. Wherein the close option may also be referred to as an exit option.
The first window and the second window may be windows of the same application or windows of different applications.
The application corresponding to the window in the activated state runs in the foreground and can receive the information input by the user. Typically, an operating system allows multiple windows to be open at the same time, but only one of the windows is active, i.e., only one application is running in the foreground, while the remaining applications are running in the background. In the prior art, when a user clicks a closing option of a second window in an inactive state through a mouse, the second window is usually switched from the inactive state to an active state, so as to perform a selection operation on the closing option of the second window; the first window is switched from the active state to the inactive state, and then the first window is restored to the active state after the second window is closed.
In general, a window on a desktop can include a minimized display state, a maximized display state, and an intermediate state between the minimized display state and the maximized display state. In the present invention, the first window is in an intermediate state.
There may be multiple windows on the desktop that are in non-minimized display states, i.e., some windows may be in maximized display states and some windows may be in intermediate states. When two windows overlap, one window may or may not completely cover the other window. The windows opened on the desktop may include multiple windows that overlap, with the overlapping windows forming a layer relationship.
Specifically, an operational masking component is generated for the operational area at an upper layer of the second window. The upper layer of the second window means a layer closer to the front of the table with respect to the second window, or may be understood as a layer closer to the user. After the operation shielding component is generated, if a user performs a selection operation on the closing option of the second window, the operation is shielded, the operation shielding component is activated, and the first window is switched from an activated state to an inactivated state.
In particular, the operational masking component can implement its functionality by employing existing components, such as a window component, an icon component, and the like. If the window component is adopted, the window can be carried by the system, and when the operation shielding component is generated, the new window is loaded at the position.
The operational mask component may be sized to cover only the closed option or may be sized to cover the entire desktop.
Alternatively, the operational masking component may not necessarily be fully displayed, for example, if the operational masking component is sized to overlap the first window, only the portion that does not overlap the first window may be displayed.
Further, the transparency of the operation shielding component is greater than 0, so that the existence of the operation shielding component is convenient to be emphasized to a user, the user is reminded of distinguishing the first window from the second window, and the probability that the user closes the windows by mistake can be further reduced.
Further, the transparency of the operational shield assembly may be set to be greater than the transparency of the second window.
In addition, the shape of the operation shielding assembly is not limited, and may be a regular shape such as a square, a rectangle, a circle, etc., or may be an irregular shape or a custom shape.
In one embodiment, generating an operation shielding component for an operation area of a closing option of a second window at an upper layer of the second window comprises:
determining the shape and size of a selection area of a closing option of the second window;
and generating an operation shielding component on the upper layer of the second window in the operation area of the closing option of the second window according to the shape and the size of the selection area.
In one embodiment, if the operating system has permission to change the transparency of the application window, the transparency of the first window is adjusted to be lower than the transparency of the second window when the operation masking component is generated.
In step S204, the displacement of the mouse pointer from leaving the first window to reaching the operation region is determined.
The term "displacement" as used herein refers to the magnitude of the displacement.
In one embodiment, as shown in FIG. 3, the mouse pointer P is located in the active first window W1. Referring to fig. 4, the mouse pointer P is located in the operation area a21 of the close option of the second window W2, and the operation shielding component Z1 is located at the upper layer of the second window W2, and in order to illustrate the position relationship between the operation shielding component Z1 and the second window W2, the transparency of the operation shielding component Z1 is set to be greater than 0 and less than 50% in this embodiment. In fig. 4, the shape of the operation area a21 is represented by a square, and the shape of the operation shielding assembly Z1 is represented by a circle, so as to show the difference between the operation area a21 and the operation shielding assembly Z1, which is only an exemplary illustration, and the shapes of the two are not limited in the present invention.
Specifically, step S204 includes:
when the mouse pointer is detected to leave the first window, acquiring the position information of the mouse pointer as first position information;
when detecting that a mouse pointer reaches the operation area, acquiring position information of the mouse pointer as second position information;
and calculating the displacement of the mouse pointer according to the first position information and the second position information, wherein the displacement is taken as the displacement of the mouse pointer from leaving the first window to reaching the operation area.
In particular, the first location information and the second location information may be cached.
Specifically, the position information may be pixel coordinates of the mouse pointer, or may be coordinates of the mouse pointer on a preset grid. If the first position information is L1 and the second position information is L2, the displacement of the mouse pointer is | L2L1|.
In step S206, after the operation shielding component is generated, it is determined whether the displacement is greater than or equal to a preset displacement threshold.
The magnitude of the displacement threshold may be set automatically by the machine or may be set by the user. The displacement threshold may be a fixed value, e.g., 1 centimeter, 2 centimeters, etc.; the displacement threshold may also be less than 0.1 times the diagonal dimension of the tabletop, e.g., less than 1.4 inches if the tabletop diagonal dimension is 14 inches.
In step S208, in response to determining that the displacement is greater than or equal to the displacement threshold, the operation masking component is deleted.
In one embodiment, the method further comprises: and after the mouse pointer reaches the operation area from the first window, when the mouse pointer is detected to return to the first window again, clearing the cached first position information and second position information.
In one embodiment, the method further comprises: and after the mouse pointer leaves from the first window in the activated state, if the first window is detected to be switched from the activated state to the inactivated state, clearing the cached first position information and second position information.
In one embodiment, the method further comprises: and after the operation shielding layer is deleted, the cached first position information and the second position information are cleared.
In one embodiment, if the operating system has the right to change the transparency of the application window, the transparency of the first window is adjusted to be higher than the transparency of the second window when the operation masking component is deleted.
By the operation processing method provided by the embodiment, in response to detection that the mouse pointer moves from the first window in the activated state to the operation area of the closing option of the second window, the operation shielding component is generated for the operation area of the closing option of the second window on the upper layer of the second window, so that the selection operation of the user on the closing option of the second window is shielded in time, and the probability of occurrence of mistakenly closing the window by the user is reduced; determining whether the second window is a window which is easy to be operated by mistake by judging whether the displacement of the mouse pointer from the position away from the first window to the position reaching the operation area of the closing option of the second window is larger than or equal to a preset displacement threshold value; after the operation shielding component is generated, when the displacement of the mouse pointer is judged to be larger than or equal to the displacement threshold, the second window is regarded as a window which is not easy to be operated by mistake, and the operation shielding component is deleted, so that a user can conveniently continue to execute the closing operation of the second window, and the user experience is improved.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. Unless explicitly stated herein, the steps are not strictly limited in order of execution, and may be performed in other orders, e.g., step S202 and step S204 may be performed in parallel. . Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In still another embodiment, as shown in fig. 5, there is provided an operation processing method including steps S402 to S418:
step S402, when detecting that the mouse pointer leaves the first window in the activated state, starting timing, and acquiring the position information of the mouse pointer as first position information.
Step S404, in response to detecting that the mouse pointer moves from the first window to the operation area of the closing option of the second window, generating an operation shielding component for the operation area of the closing option of the second window.
The operation shielding component is used for shielding the user from selecting the closing option of the second window.
In step S406, when it is detected that the mouse pointer reaches the operation region, position information of the mouse pointer is acquired as second position information.
In particular, the first location information and the second location information may be cached.
Step S408, calculating the displacement of the mouse pointer according to the first position information and the second position information, and taking the displacement as the displacement of the mouse pointer from leaving the first window to reaching the operation area.
In step S410, after the operation shielding component is generated, it is determined whether the displacement is greater than or equal to a preset displacement threshold.
In step S412, in response to determining that the displacement is greater than or equal to the displacement threshold, the operation masking component is deleted.
In step S414, in response to determining that the displacement is smaller than the displacement threshold, it is determined whether the current timing duration is greater than or equal to a preset timing threshold.
The size of the timing threshold may be set automatically by the machine or by the user. Specifically, the timing threshold is less than 2 seconds.
In particular, the timing duration may be cached.
In step S416, in response to determining that the current timing duration is smaller than the timing threshold, the current transparency of the operation shielding component is adjusted according to the current timing duration and the preset mapping relationship between the transparency of the operation shielding component and the timing duration.
Specifically, the preset mapping relationship between the transparency of the operation shielding component and the timing duration may adopt a preset
A set formula is expressed; the mapping relationship may also be represented by a numerical mapping relationship pre-stored in a table, for example, the corresponding transparency is C1 for the time duration of the interval T1 to T2, and the corresponding transparency is C2 for the time duration of the interval T2 to T3. The transparency and the timing duration may be positively or negatively correlated, preferably negatively correlated. It should be noted that the mapping relationship between the transparency and the timing duration can be set empirically.
In step S418, in response to determining that the current timing duration is greater than or equal to the preset timing threshold, the operation shielding layer is deleted.
In one embodiment, the method further comprises: and after the mouse pointer reaches the operation area from the first window, when the mouse pointer is detected to return to the first window again, clearing the cached first position information and second position information, stopping timing, and clearing the timing duration.
In one embodiment, the method further comprises: and after the mouse pointer leaves from the first window in the activated state, if the first window is detected to be switched from the activated state to the inactivated state, clearing the cached first position information and second position information, stopping timing, and clearing the timing duration.
When the first window is switched from the active state to the inactive state, the first position information and the second position information which are cached are cleared, and the timing is stopped, so that the consumption of processing resources can be reduced.
In one embodiment, the method further comprises: and after the operation shielding layer is deleted, clearing the cached first position information and the cached second position information, and clearing the timing duration.
By the operation processing method provided by the embodiment, in response to detection that the mouse pointer moves from the first window in the activated state to the operation area of the closing option of the second window, the operation shielding component is generated for the operation area of the closing option of the second window on the upper layer of the second window, so that the selection operation of the user on the closing option of the second window is shielded in time, and the probability of occurrence of mistakenly closing the window by the user is reduced; and determining whether the second window is a window which is easy to be misoperated or not by judging whether the displacement of the mouse pointer from the position away from the first window to the position reaching the operation area of the closing option of the second window is larger than or equal to a preset displacement threshold value or not, and deleting the operation shielding component after generating the operation shielding component when judging that the displacement of the mouse pointer is larger than or equal to the displacement threshold value, so that a user can conveniently continue to execute the closing operation of the second window, and the user experience is improved.
In the embodiment, timing is started when the mouse pointer is detected to leave the first window in the activated state, when the displacement of the mouse pointer is judged to be smaller than the displacement threshold, whether the timing duration is larger than or equal to the preset timing threshold or not is judged, and the operation shielding component is deleted when the timing duration is larger than or equal to the preset timing threshold, so that a user can conveniently continue to execute the closing operation of the second window, and the improvement of user experience is facilitated.
In addition, in the embodiment, in response to the determination that the timing duration is smaller than the timing threshold, the current transparency of the operation shielding component is adjusted according to the current timing duration and the preset mapping relationship between the transparency of the operation shielding component and the timing duration, so that a user can estimate the timing duration through the current transparency; particularly, when the mapping relation between the transparency and the timing duration is negative, the user can estimate whether the timing duration reaches the timing threshold through the transparency, so that the second window is required to be closed when the timing threshold is reached, and the user experience is further improved.
It should be understood that, although the steps in the flowchart of fig. 5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. Unless explicitly stated herein, the steps are not performed in a strict order, and may be performed in other orders, for example, step S404 and step S406 may be performed in parallel. Moreover, at least a portion of the steps in fig. 5 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In still another embodiment, as shown in fig. 6, there is provided an operation processing method including steps S602 to S612:
step S602, when it is detected that the mouse pointer leaves the first window in the activated state from the operation area of the close option of the first window, acquiring position information of the mouse pointer as first position information.
Step S604, in response to detecting that the mouse pointer moves from the operation area of the closing option of the first window to the operation area of the closing option of the second window, generating an operation shielding component for the operation area of the closing option of the second window.
The operation shielding component is used for shielding the user from selecting the closing option of the second window.
Step S606, when it is detected that the mouse pointer reaches the operation area of the close option of the second window, acquiring position information of the mouse pointer as second position information.
Step S608, calculating a displacement of the mouse pointer according to the first position information and the second position information, as a displacement of the mouse pointer from an operation area away from the close option of the first window to an operation area reaching the close option of the second window.
In step S610, after the operation shielding component is generated, it is determined whether the displacement is greater than or equal to a preset displacement threshold.
In step S612, in response to determining that the displacement is greater than or equal to the displacement threshold, the operation masking component is deleted.
In the embodiment, in response to detecting that the mouse pointer moves from the operation area of the closing option of the first window to the operation area of the closing option of the second window, an operation shielding component is generated for the operation area of the closing option of the second window on the upper layer of the second window, so as to timely shield the selection operation of the user on the closing option of the second window, thereby reducing the probability of the user mistakenly closing the window, the user is often prone to mistakenly close the second window when the first window in an activated state needs to be closed, in the embodiment, for the condition that the user needs to close the first window, the mouse pointer is detected to leave from the first window, the detection of the mouse pointer leaving from the operation area of the closing option of the first window is optimized, and the consumption of processing resources can be further reduced; and determining whether the second window is a window which is easy to be misoperated or not by judging whether the displacement of the mouse pointer from the operation area of the closing option away from the first window to the operation area of the closing option reaching the second window is larger than or equal to a preset displacement threshold or not, and after the operation shielding component is generated, when the displacement of the mouse pointer is judged to be larger than or equal to the displacement threshold, equivalently regarding the second window as the window which is difficult to be misoperated, deleting the operation shielding component, so that a user can conveniently continue to execute the closing operation of the second window, and the user experience is improved.
It should be understood that, although the steps in the flowchart of fig. 6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. Unless explicitly stated herein, the steps are not strictly limited in order of execution, and may be performed in other orders, e.g., step S604 and step S606 may be performed in parallel. Moreover, at least a portion of the steps in fig. 6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 7, an operation processing apparatus 1 is provided, and the system includes a mask layer generation module 101, a displacement determination module 103, a displacement determination module 105, and a first mask layer deletion module 107.
The shielding layer generating module 101 is configured to generate an operation shielding component for an operation area at an upper layer of the second window in response to detecting that the mouse pointer moves from the first window in the activated state to the operation area of the close option of the second window.
The operation shielding component is used for shielding the selection operation of the user on the closing option of the second window;
the displacement determining module 103 is used for determining the displacement of the mouse pointer from leaving the first window to reaching the operation area;
the displacement judging module 105 is configured to judge whether the displacement is greater than or equal to a preset displacement threshold after the operation shielding component is generated;
the first mask layer deletion module 107 is operable to delete the operational mask component in response to determining that the displacement is greater than or equal to the displacement threshold.
In one embodiment, the apparatus further comprises:
the timing module is used for starting timing when the mouse pointer is detected to leave the first window;
the timing judgment module is used for responding to the judgment that the displacement is smaller than the displacement threshold value and judging whether the current timing duration is larger than or equal to a preset timing threshold value or not;
and the second shielding layer deleting module is used for deleting the operation shielding layer in response to the judgment that the current timing duration is greater than or equal to the preset timing threshold.
In one embodiment, the apparatus further comprises:
and the transparency adjusting module is used for responding to the judgment that the timing duration is less than the timing threshold value and adjusting the current transparency of the operation shielding assembly according to the current timing duration and the preset mapping relation between the transparency of the operation shielding assembly and the timing duration.
In one embodiment, the displacement determination module 103 includes:
a first position information acquisition unit configured to acquire position information of a mouse pointer as first position information when it is detected that the mouse pointer leaves the first window from an operation area of a close option of the first window;
a second position information acquisition unit configured to acquire position information of the mouse pointer as second position information when it is detected that the mouse pointer reaches an operation area of a close option of the second window;
and the displacement calculation unit is used for calculating the displacement of the mouse pointer according to the first position information and the second position information, and the displacement is taken as the displacement of the mouse pointer from the operation area away from the closing option of the first window to the operation area reaching the closing option of the second window.
In one embodiment, the timing threshold is less than 2 seconds.
In one embodiment, the displacement threshold is less than 0.1 times the diagonal dimension of the desktop.
In one embodiment, the transparency of the operational shielding assembly is greater than 0.
For specific limitations of the operation processing device, reference may be made to the above limitations of the operation processing method, which is not described herein again. The respective modules in the operation processing apparatus 1 described above may be entirely or partially implemented by software, hardware, and a combination thereof. The modules may be embedded in hardware or may be independent of a processor in the device, or may be stored in a memory in the device in software, so that the processor calls and executes operations corresponding to the modules.
In one embodiment, a device is provided, the internal structure of which may be as shown in FIG. 8. The device includes a processor, a memory, a network interface, and a database connected by a device bus. Wherein the processor of the device is configured to provide computing and control capabilities. The memory of the device includes a medium and an internal memory. The medium is a computer readable storage medium. In particular, the computer-readable storage medium is a non-volatile computer-readable storage medium. The non-transitory computer-readable storage medium stores an operating device, a computer program, and a database. The internal memory provides an environment for the operation device and execution of the computer program in the non-volatile computer-readable storage medium. The database of the device is used to store data. The network interface of the device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an operation processing method.
It will be appreciated by those skilled in the art that the configuration shown in fig. 8 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the devices to which the present application may be applied, and that a particular device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided an apparatus comprising a memory having a computer program stored therein and a processor that when executing the computer program performs the steps of:
in response to detecting that a mouse pointer moves from a first window in an activated state to an operation area of a closing option of a second window, generating an operation shielding component for the operation area at an upper layer of the second window; the operation shielding component is used for shielding the selection operation of the user on the closing option of the second window;
determining the displacement of the mouse pointer from leaving the first window to reaching the operation area;
after the operation shielding component is generated, judging whether the displacement is greater than or equal to a preset displacement threshold value;
deleting the operational masking component in response to determining that the displacement is greater than or equal to the displacement threshold.
In one embodiment, the processor, when executing the computer program, performs the steps of:
starting timing when the mouse pointer is detected to leave the first window;
responding to the judgment that the displacement is smaller than the displacement threshold, and judging whether the current timing duration is larger than or equal to a preset timing threshold or not;
and deleting the operation shielding layer in response to the judgment that the current timing duration is greater than or equal to the preset timing threshold.
In one embodiment, the processor, when executing the computer program, performs the steps of: and responding to the judgment that the timing duration is smaller than the timing threshold, and adjusting the current transparency of the operation shielding component according to the current timing duration and the preset mapping relation between the transparency of the operation shielding component and the timing duration.
In one embodiment, the processor when executing the computer program implements the steps of: the determining the displacement of the mouse pointer from leaving the first window to reaching the operation region comprises:
when detecting that a mouse pointer leaves a first window from an operation area of a closing option of the first window, acquiring position information of the mouse pointer as first position information;
when the mouse pointer is detected to reach an operation area of a closing option of the second window, acquiring position information of the mouse pointer as second position information;
and calculating the displacement of the mouse pointer according to the first position information and the second position information, wherein the displacement is taken as the displacement of the mouse pointer from the operation area away from the closing option of the first window to the operation area reaching the closing option of the second window.
In one embodiment, the processor, when executing the computer program, performs the steps of: the timing threshold is less than 2 seconds.
In one embodiment, the processor, when executing the computer program, performs the steps of: the displacement threshold is less than 0.1 times the diagonal dimension of the desktop.
In one embodiment, the processor when executing the computer program implements the steps of: the operational shield assembly has a transparency greater than 0.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
in response to detecting that a mouse pointer moves from a first window in an activated state to an operation area of a closing option of a second window, generating an operation shielding component for the operation area at an upper layer of the second window; the operation shielding component is used for shielding the selection operation of the user on the closing option of the second window;
determining the displacement of the mouse pointer from leaving the first window to reaching the operation area;
after the operation shielding component is generated, judging whether the displacement is greater than or equal to a preset displacement threshold value;
deleting the operational masking component in response to determining that the displacement is greater than or equal to the displacement threshold.
In one embodiment, the computer program when executed by the processor performs the steps of:
starting timing when the mouse pointer is detected to leave the first window;
responding to the judgment that the displacement is smaller than the displacement threshold value, and judging whether the current timing duration is larger than or equal to a preset timing threshold value;
and deleting the operation shielding layer in response to the judgment that the current timing duration is greater than or equal to the preset timing threshold.
In one embodiment, the computer program when executed by the processor performs the steps of:
and in response to the fact that the timing duration is smaller than the timing threshold, adjusting the current transparency of the operation shielding component according to the current timing duration and the preset mapping relation between the transparency of the operation shielding component and the timing duration.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the determining the displacement of the mouse pointer from leaving the first window to reaching the operation region comprises:
when detecting that a mouse pointer leaves a first window from an operation area of a closing option of the first window, acquiring position information of the mouse pointer as first position information;
when the mouse pointer is detected to reach an operation area of a closing option of the second window, acquiring position information of the mouse pointer as second position information;
and calculating the displacement of the mouse pointer according to the first position information and the second position information, wherein the displacement is taken as the displacement of the mouse pointer from the operation area away from the closing option of the first window to the operation area reaching the closing option of the second window.
In one embodiment, the timing threshold is less than 2 seconds.
In one embodiment, the displacement threshold is less than 0.1 times the diagonal dimension of the desktop.
In one embodiment, the operational shield assembly has a transparency greater than 0.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct Rambus Dynamic RAM (DRDRAM), and Rambus Dynamic RAM (RDRAM), among others.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. An operation processing method, comprising:
in response to detecting that a mouse pointer moves from a first window in an activated state to an operation area of a closing option of a second window, generating an operation shielding component for the operation area; the operation shielding component is used for shielding the selection operation of the user on the closing option of the second window;
determining the displacement of the mouse pointer from leaving the first window to reaching the operation area;
after the operation shielding component is generated, judging whether the displacement is greater than or equal to a preset displacement threshold value; in response to determining that the displacement is greater than or equal to the displacement threshold, deleting the operational masking component;
the method further comprises the following steps: starting timing when the mouse pointer is detected to leave the first window;
responding to the judgment that the displacement is smaller than the displacement threshold value, and judging whether the current timing duration is larger than or equal to a preset timing threshold value; deleting the operational masking component in response to determining that the current timed length is greater than or equal to the timing threshold.
2. The method of claim 1, further comprising:
and in response to the fact that the current timing duration is smaller than the timing threshold, adjusting the current transparency of the operation shielding component according to the current timing duration and a preset mapping relation between the transparency of the operation shielding component and the timing duration.
3. The method of claim 2, wherein the determining the displacement of the mouse pointer from exiting the first window to reaching the operating region comprises:
when detecting that a mouse pointer leaves a first window from an operation area of a closing option of the first window, acquiring position information of the mouse pointer as first position information;
when the mouse pointer is detected to reach an operation area of a closing option of the second window, acquiring position information of the mouse pointer as second position information;
and calculating the displacement of the mouse pointer according to the first position information and the second position information, wherein the displacement is taken as the displacement of the mouse pointer from the operation area away from the closing option of the first window to the operation area reaching the closing option of the second window.
4. The method of claim 1 or 2, wherein the timing threshold is less than 2 seconds.
5. The method of claim 1, wherein the displacement threshold is less than 0.1 times a diagonal dimension of the tabletop.
6. The method of claim 1 or 2, wherein the operational shielding assembly has a transparency greater than 0.
7. An operation processing apparatus characterized by comprising:
the shielding layer generating module is used for responding to the detection that the mouse pointer moves from the first window in the activated state to the operation area of the closing option of the second window, and generating an operation shielding component for the operation area; the operation shielding component is used for shielding the selection operation of the user on the closing option of the second window;
the displacement determining module is used for determining the displacement of the mouse pointer from leaving the first window to reaching the operation area;
the displacement judging module is used for judging whether the displacement is greater than or equal to a preset displacement threshold value after the operation shielding assembly is generated;
the first shielding layer deleting module is used for responding to the judgment that the displacement is larger than or equal to the displacement threshold value and deleting the operation shielding assembly;
the device further comprises: the timing module is used for starting timing when the mouse pointer is detected to leave the first window; the timing judgment module is used for responding to the judgment that the displacement is smaller than the displacement threshold value and judging whether the current timing duration is larger than or equal to a preset timing threshold value or not; and the second shielding layer deleting module is used for deleting the operation shielding assembly in response to the judgment that the current timing duration is greater than or equal to the preset timing threshold.
8. An apparatus, characterized by comprising a memory storing a computer program and a processor implementing the steps of the operation processing method of any one of claims 1 to 6 when the processor executes the computer program.
9. A computer-readable storage medium on which a computer program is stored, the computer program being characterized by the steps of implementing the operation processing method of any one of claims 1 to 6 when executed by a processor.
CN202010313046.4A 2020-04-20 2020-04-20 Operation processing method, device, equipment and computer readable storage medium Active CN111443980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010313046.4A CN111443980B (en) 2020-04-20 2020-04-20 Operation processing method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010313046.4A CN111443980B (en) 2020-04-20 2020-04-20 Operation processing method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111443980A CN111443980A (en) 2020-07-24
CN111443980B true CN111443980B (en) 2022-10-04

Family

ID=71654283

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010313046.4A Active CN111443980B (en) 2020-04-20 2020-04-20 Operation processing method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111443980B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092601A (en) * 2011-11-03 2013-05-08 国际商业机器公司 Smart window creation method and system in graphical user interface
CN104808825A (en) * 2014-01-28 2015-07-29 联发科技(新加坡)私人有限公司 Touch event isolation method and device
CN105204865A (en) * 2015-10-14 2015-12-30 网易(杭州)网络有限公司 Method and device for achieving closing of current window, mobile terminal and computer terminal
CN106990908A (en) * 2017-04-06 2017-07-28 广州视源电子科技股份有限公司 A kind of local touch screen method, device, system, equipment and storage medium
CN107450916A (en) * 2017-07-19 2017-12-08 北京云知声信息技术有限公司 A kind of window control method and device
CN110286819A (en) * 2019-06-25 2019-09-27 武汉深之度科技有限公司 A kind of window management method and calculate equipment
CN110647268A (en) * 2019-09-26 2020-01-03 网易(杭州)网络有限公司 Control method and control device for display window in game

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060010397A1 (en) * 2004-07-08 2006-01-12 International Business Machines Corporation System for locking the closure of windows
US8015509B2 (en) * 2007-11-14 2011-09-06 International Business Machines Corporation Selectively locking GUI controls to prevent accidental operations in a computing environment
US20090193357A1 (en) * 2008-01-26 2009-07-30 Panico Michael W Method and System to Prevent Unintended Graphical Cursor Input
US8762883B2 (en) * 2009-01-30 2014-06-24 Oracle International Corporation Manipulation of window controls in a popup window

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092601A (en) * 2011-11-03 2013-05-08 国际商业机器公司 Smart window creation method and system in graphical user interface
CN104808825A (en) * 2014-01-28 2015-07-29 联发科技(新加坡)私人有限公司 Touch event isolation method and device
CN105204865A (en) * 2015-10-14 2015-12-30 网易(杭州)网络有限公司 Method and device for achieving closing of current window, mobile terminal and computer terminal
CN106990908A (en) * 2017-04-06 2017-07-28 广州视源电子科技股份有限公司 A kind of local touch screen method, device, system, equipment and storage medium
CN107450916A (en) * 2017-07-19 2017-12-08 北京云知声信息技术有限公司 A kind of window control method and device
CN110286819A (en) * 2019-06-25 2019-09-27 武汉深之度科技有限公司 A kind of window management method and calculate equipment
CN110647268A (en) * 2019-09-26 2020-01-03 网易(杭州)网络有限公司 Control method and control device for display window in game

Also Published As

Publication number Publication date
CN111443980A (en) 2020-07-24

Similar Documents

Publication Publication Date Title
US11231959B2 (en) Foreground and background switching entry generation and display following quit operations
CN104571693B (en) Information processing method and electronic equipment
EP3128409A1 (en) Touch point recognition method and device
CN108196930A (en) Applied program processing method, device, storage medium and computer equipment
CN107609199B (en) Method, equipment and storage medium for processing and recovering page
CN109803005B (en) Service breakpoint processing method and device, computer equipment and storage medium
CN108848142B (en) Message pushing method and device, computer equipment and storage medium
CN112882625B (en) Element pickup method, element pickup device, computer equipment and storage medium
CN102750477B (en) Method and system for controlling closing of terminal
CN111176543A (en) Method, device, computer equipment and storage medium for realizing electronic signature
CN110753154A (en) Control method and device of mobile terminal, electronic equipment and storage medium
CN104731491A (en) Method for achieving mass operation under terminal and touch screen
CN113253889B (en) Page display processing method and device based on special-shaped screen and computer equipment
CN111443980B (en) Operation processing method, device, equipment and computer readable storage medium
CN113467862A (en) Desktop shortcut generation method and device, mobile terminal and storage medium
US20170115866A1 (en) Method, device and terminal apparatus for recognizing multi-finger sliding gesture
CN103440098B (en) Open method and the mobile terminal thereof of application program
CN111259374B (en) Authority abnormity detection method and device, computer equipment and storage medium
WO2019019672A1 (en) Application program data recovery method and apparatus, computer device and storage medium
US20200081597A1 (en) Application program management method and apparatus
CN104571812B (en) Information processing method and electronic equipment
CN113488002B (en) Abnormal screen brightness adjusting method and device, electronic equipment and medium
CN110780831A (en) View switching method and device, computer equipment and storage medium
CN107562260B (en) A kind of method and device of touch control
CN104778039A (en) Terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant