CN103164126B - A kind of method avoiding mouse maloperation in main interface and Expansion Interface - Google Patents
A kind of method avoiding mouse maloperation in main interface and Expansion Interface Download PDFInfo
- Publication number
- CN103164126B CN103164126B CN201310057905.8A CN201310057905A CN103164126B CN 103164126 B CN103164126 B CN 103164126B CN 201310057905 A CN201310057905 A CN 201310057905A CN 103164126 B CN103164126 B CN 103164126B
- Authority
- CN
- China
- Prior art keywords
- interface
- mouse pointer
- speed
- area
- main interface
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 13
- 230000007257 malfunction Effects 0.000 claims description 3
- 239000000203 mixture Substances 0.000 claims 1
- 239000002994 raw material Substances 0.000 claims 1
- 101100155204 Mus musculus Ubl5 gene Proteins 0.000 abstract 2
- 230000035945 sensitivity Effects 0.000 description 3
- 230000007547 defect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Landscapes
- Position Input By Displaying (AREA)
Abstract
The invention discloses a kind of method avoiding mouse maloperation in main interface and Expansion Interface, it comprises determines the position of mouse pointer in main interface or Expansion Interface; Detect mouse pointer whether in main interface, if in main interface, judge whether further outside the first area at main interface, if outside first area, then mouse beacon pointer is with First Speed V
1mobile; If in first area, then control this mouse pointer to be less than First Speed V
1second speed V
2mobile; If mouse pointer is in Expansion Interface, then judge it whether outside the second area of Expansion Interface, if outside second area, then mouse beacon pointer is with First Speed V
1mobile; If in second area, then control it to be less than First Speed V
1third speed V
3mobile; First area is the fringe region of contiguous Expansion Interface side in main interface, and second area is the fringe region of contiguous side, main interface in Expansion Interface.The present invention can effectively avoid the mistake of mouse pointer in main interface and Expansion Interface to switch.
Description
Technical Field
The invention relates to the field of computers, in particular to a method for avoiding misoperation of a mouse in a main interface and an extension interface.
Background
In a system with an extended desktop, a mouse pointer of a user often enters an extended operation screen serving as the extended desktop through misoperation, and at this time, the user needs to manually adjust, move the mouse pointer back to a main operation screen, and then perform subsequent operations. This seriously affects the working efficiency of the user.
Disclosure of Invention
The invention aims to overcome the defects in the prior art and provides a method for avoiding misoperation of a mouse in an extended desktop.
In order to achieve the above object, the method for avoiding mouse misoperation in a main interface and an extended interface is characterized by comprising,
the first step is as follows: determining the position of a mouse pointer in the main interface or the expansion interface;
the second step is as follows: detecting whether a mouse pointer is positioned in the main interface;
the third step: if the mouse pointer is positioned in the main interface, whether the mouse pointer is positioned outside a first area of the main interface is further judged, and if the mouse pointer is positioned outside the first area, the mouse pointer is controlled to rotate at a first speed V1Moving; if the mouse pointer is located in the first area, controlling the mouse pointer to be lower than a first speed V1Second speed ofDegree V2Moving;
the fourth step: if the mouse pointer is positioned in the expansion interface, whether the mouse pointer is positioned outside a second area of the expansion interface is further judged, and if the mouse pointer is positioned outside the second area, the mouse pointer is controlled to rotate at a first speed V1Moving; if the mouse pointer is located in the second area, controlling the mouse pointer to be lower than the first speed V1Third speed V3Moving; wherein,
the first region is an edge region of the main interface adjacent to one side of the expansion interface, and the second region is an edge region of the expansion interface adjacent to one side of the main interface.
Preferably, the main interface and the extended interface are placed left and right, the first region is a rectangular region with a right edge line of the main interface being 20 pixels to the left, and the second region is a rectangular region with a left edge line of the extended interface being 20 pixels to the right.
Preferably, the second speed V2Satisfies the following conditions: v2=X*V1/25+V1/5, the third speed V3Satisfies the following conditions: v3=X*V1/5+V1And 5, X is the abscissa of the mouse pointer on the main interface or the expansion interface, wherein the direction from the expansion interface to the main interface is set to be the positive direction of the X axis, and the abscissa of the right side edge line of the main interface or the left side edge line of the expansion interface is 0.
The method for avoiding the misoperation of the mouse in the main interface and the extended interface has the advantages that the position of the mouse pointer is detected, the buffer area is arranged at the edge of the main interface or the extended interface, and the sensitivity is lower as the mouse pointer is closer to the edge of the interface, so that the misoperation of a user can be avoided; has spring effect, and attracts users.
Drawings
FIG. 1 is a flow chart illustrating a method for avoiding mouse malfunction in a main interface and an extended interface according to the present invention.
FIG. 2 shows a layout of a main interface and an extended interface, and a layout of a first region in the main interface and a second region in the extended interface according to an embodiment of the invention.
Two types of positions of the mouse pointer in the main interface are shown in fig. 3, where fig. 3a is an area of the mouse pointer outside the first area in the main interface, and fig. 3b shows the mouse pointer inside the first area in the main interface.
Two types of positions of the mouse pointer in the extended interface are shown in fig. 4, wherein fig. 4a shows that the mouse pointer is in the second area of the extended interface, and fig. 4b shows that the mouse pointer is in the area outside the second area in the extended interface.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
Fig. 1 shows a flowchart of a method for avoiding mouse misoperation in a main interface 10 and an extended interface 20 according to the present invention, and as shown in fig. 1, the method for avoiding mouse misoperation in the main interface 10 and the extended interface 20 includes the following steps:
the first step is as follows: determining the position of the mouse pointer 30 in the main interface 10 or the extended interface 20;
the second step is as follows: detecting whether the mouse pointer 30 is located in the main interface 10;
the third step: if the mouse pointer 30 is located in the main interface 10, it is further determined whether the mouse pointer 30 is located outside the first area a1 of the main interface 10, and if the mouse pointer 30 is located outside the first area a1, the mouse pointer 30 is controlled to rotate at the first speed V1Moving; if the mouse pointer 30 is located in the first area A1, the mouse pointer 30 is controlled to be at a speed less than the first speedDegree V1Second speed V of2Moving;
the fourth step: if the mouse pointer 30 is located in the extended interface 20, it is further determined whether the mouse pointer 30 is located outside the second area a2 of the extended interface 20, and if the mouse pointer 30 is located outside the second area a2, the mouse pointer 30 is controlled to rotate at the first speed V1Moving; if the mouse pointer 30 is located in the second area A2, the mouse pointer 30 is controlled to be lower than the first speed V1Third speed V3And (4) moving.
The first region a1 is an edge region of the main interface 10 on the side adjacent to the expansion interface 20, and the second region a2 is an edge region of the expansion interface 20 on the side adjacent to the main interface 10.
In an embodiment of the invention, as shown in fig. 2 to 4, the main interface 10 and the extended interface 20 are arranged in left and right, the first area a1 is a rectangular area with 20 pixels to the left of the right edge line of the main interface 10, and the second area a2 is a rectangular area with 20 pixels to the right of the left edge line of the extended interface 20. In addition, the direction from the extended interface 20 to the main interface 10 is set to the positive X-axis direction, and the abscissa at the right edge line of the main interface 10 or the left edge line of the extended interface 20 is set to 0.
When the abscissa of the mouse pointer 30X satisfies X>At 20 pixels, i.e., when the mouse pointer 30 is outside the first area A1 in the main interface 10, the mouse pointer is controlled to have a first velocity V as shown in FIG. 3a1And (4) moving.
When the abscissa of the mouse pointer 30X satisfies 20>X>When the pixel 0, i.e. the mouse pointer 30 is located in the first area A1 in the main interface 10, as shown in FIG. 3b, the mouse pointer is controlled to have the second speed V2Moving at the second speed V2Satisfies the following conditions: v2=X*V1/25+V1/5, the second speed V can be judged2Less than the first speed V1And the moving speed of the mouse pointer 30 (i.e., the second speed V) is closer to the right edge line of the main interface 10 as the mouse pointer 30 gets closer2) The smaller the mouseThe lower the sensitivity of the pointer 30, the less likely the user will be to mistakenly move the mouse pointer 30 from the main interface 10 to the extended interface 20 with too much force.
When the abscissa of the mouse pointer 30X satisfies X>20 pixels, i.e. the mouse pointer 30 is located outside the second area A2 within the extended interface 20, the mouse pointer is controlled to have a first velocity V, as shown in FIG. 4b1And (4) moving.
When the abscissa of the mouse pointer 30X satisfies-20<X<When the mouse pointer 30 is located in the second area A2 of the extended interface 20, the mouse pointer is controlled to rotate at the third speed V as shown in FIG. 4b3Moving at the third speed V3Satisfies the following conditions: v3=X*V1/5+V15, the third speed V can be judged3Less than the first speed V1And the closer the mouse pointer 30 is to the left edge line of the extended interface 20, the moving speed of the mouse pointer 30 (i.e., the third speed V)3) The smaller the sensitivity of the mouse pointer 30, the less sensitive it is to avoid the user from erroneously moving the mouse pointer 30 from the expansion interface 20 into the main interface 10 with too much force.
In summary, the embodiments of the present invention are merely exemplary and should not be construed as limiting the scope of the invention. All equivalent changes and modifications made according to the content of the claims of the present invention should fall within the technical scope of the present invention.
Claims (3)
1. A method for avoiding misoperation of a mouse in a main interface and an extension interface is characterized in that: comprises the steps of (a) preparing a mixture of a plurality of raw materials,
the first step is as follows: determining the position of a mouse pointer in the main interface or the expansion interface;
the second step is as follows: detecting whether a mouse pointer is positioned in the main interface;
the third step: if the mouse pointer is positioned in the main interface, whether the mouse pointer is positioned outside a first area of the main interface is further judged, and if the mouse pointer is positioned outside the first area, the mouse pointer is controlled to rotate at a first speedDegree V1Moving; if the mouse pointer is located in the first area, controlling the mouse pointer to be lower than a first speed V1Second speed V of2Moving;
the fourth step: if the mouse pointer is positioned in the expansion interface, whether the mouse pointer is positioned outside a second area of the expansion interface is further judged, and if the mouse pointer is positioned outside the second area, the mouse pointer is controlled to rotate at a first speed V1Moving; if the mouse pointer is located in the second area, controlling the mouse pointer to be lower than the first speed V1Third speed V3Moving; wherein,
the first region is the edge region of the main interface adjacent to one side of the expansion interface, the second region is the edge region of the expansion interface adjacent to one side of the main interface, and the second speed V is2And a third speed V3For speed change, the mouse pointer gets closer to the edge line between the main interface and the extended interface, and the second speed V2Or third speed V3The smaller.
2. The method for avoiding mouse malfunction in a main interface and an extended interface according to claim 1, wherein: the main interface and the expansion interface are arranged in a left-right mode, the first area is a rectangular area with the right edge line of the main interface being 20 pixels to the left, and the second area is a rectangular area with the left edge line of the expansion interface being 20 pixels to the right.
3. The method for avoiding mouse malfunction in a main interface and an extended interface according to claim 2, wherein: the second speed V2Satisfies the following conditions: v2=X*V1/25+V1/5, the third speed V3Satisfies the following conditions: v3=X*V1/5+V1And 5, X is the abscissa of the mouse pointer on the main interface or the expansion interface, wherein the direction from the expansion interface to the main interface is set to be the positive direction of the X axis, and the abscissa of the right side edge line of the main interface or the left side edge line of the expansion interface is 0.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310057905.8A CN103164126B (en) | 2013-02-25 | 2013-02-25 | A kind of method avoiding mouse maloperation in main interface and Expansion Interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310057905.8A CN103164126B (en) | 2013-02-25 | 2013-02-25 | A kind of method avoiding mouse maloperation in main interface and Expansion Interface |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103164126A CN103164126A (en) | 2013-06-19 |
CN103164126B true CN103164126B (en) | 2016-03-30 |
Family
ID=48587260
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310057905.8A Active CN103164126B (en) | 2013-02-25 | 2013-02-25 | A kind of method avoiding mouse maloperation in main interface and Expansion Interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103164126B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103838498B (en) * | 2014-03-05 | 2017-08-25 | 深信服科技股份有限公司 | The method and apparatus for realizing windows exchange |
CN113311971A (en) * | 2021-06-01 | 2021-08-27 | 王明烨 | Method, system and device for mouse movement differentiation |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1782966A (en) * | 2004-08-23 | 2006-06-07 | 国际商业机器公司 | Multi-monitor system, multi-monitor method, and mark display program product |
CN101313273A (en) * | 2006-04-27 | 2008-11-26 | 埃派克森微电子有限公司 | Method for control cursor speed on user interface |
CN101821705A (en) * | 2007-10-05 | 2010-09-01 | 汤姆森特许公司 | Pointer controlling apparatus |
CN102473070A (en) * | 2009-08-10 | 2012-05-23 | 皇家飞利浦电子股份有限公司 | System and method for moving a cursor on a screen |
-
2013
- 2013-02-25 CN CN201310057905.8A patent/CN103164126B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1782966A (en) * | 2004-08-23 | 2006-06-07 | 国际商业机器公司 | Multi-monitor system, multi-monitor method, and mark display program product |
CN101313273A (en) * | 2006-04-27 | 2008-11-26 | 埃派克森微电子有限公司 | Method for control cursor speed on user interface |
CN101821705A (en) * | 2007-10-05 | 2010-09-01 | 汤姆森特许公司 | Pointer controlling apparatus |
CN102473070A (en) * | 2009-08-10 | 2012-05-23 | 皇家飞利浦电子股份有限公司 | System and method for moving a cursor on a screen |
Also Published As
Publication number | Publication date |
---|---|
CN103164126A (en) | 2013-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104090720B (en) | A kind of method and device shown based on gesture operation adjustment terminal window | |
CN103616970B (en) | Touch-control response method and device | |
JP6188288B2 (en) | Information processing apparatus and control method thereof | |
US8963846B2 (en) | Method for cursor motion control by a touchpad to move a cursor on a display screen | |
US20150242115A1 (en) | Systems and methods for improved signal to noise ratio in touch systems | |
TWI389014B (en) | Touchpad detection method | |
JP2012503223A5 (en) | ||
US9740397B2 (en) | System and method to control a touchscreen user interface | |
CN104049900A (en) | Floating window closing method and device | |
EP2752754A3 (en) | Remote mouse function method and terminals | |
US20150242053A1 (en) | Systems and methods for improved touch screen accuracy | |
KR20150091365A (en) | Multi-touch symbol recognition | |
CN104536643A (en) | Icon dragging method and terminal | |
CN104951213A (en) | Method for preventing false triggering of edge sliding gesture and gesture triggering method | |
CN103164126B (en) | A kind of method avoiding mouse maloperation in main interface and Expansion Interface | |
CN105320316B (en) | Method and device for removing jitter of touch screen and terminal | |
JP2017506393A (en) | System and method for reducing shadow effects in touch systems | |
CN104636068A (en) | Application icon operating method and touch terminal | |
US20190018503A1 (en) | Cursor control method and cursor control system | |
JP6772580B2 (en) | Electronic equipment, control program | |
CN103440098A (en) | Method for opening application program and mobile terminal thereof | |
CN105373292A (en) | Desktop editing method and device | |
CN105426087B (en) | Mobile terminal and its slip instruction generation method | |
CN104615342A (en) | Information processing method and electronic equipment | |
KR101468970B1 (en) | Method and apparatus for sliding objects across a touch-screen display |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |