CN101825960A - Method for realizing computer function control based on three-point state information of mouse - Google Patents
Method for realizing computer function control based on three-point state information of mouse Download PDFInfo
- Publication number
- CN101825960A CN101825960A CN201010154615A CN201010154615A CN101825960A CN 101825960 A CN101825960 A CN 101825960A CN 201010154615 A CN201010154615 A CN 201010154615A CN 201010154615 A CN201010154615 A CN 201010154615A CN 101825960 A CN101825960 A CN 101825960A
- Authority
- CN
- China
- Prior art keywords
- mouse
- value
- information
- absolute
- span
- 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.)
- Granted
Links
Images
Landscapes
- Position Input By Displaying (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention relates to a method for realizing computer function control based on three-point state information of a mouse. The method is also used for realizing computer function control by the trajectory of motion of the mouse by combining mouse clicks with the specific trajectory of motion of the mouse. The method comprises the following steps: firstly starting the mouse information capture program, starting recording the state information of the three points in sequence when the mouse button up information is captured and finally judging the recorded state information of the three points so as to effectively avoid misoperation brought about by hard distinguishing between the trajectory of motion of the mouse for functional control and other trajectories of motion of the mouse. The method of the invention conforms to the habits of most users and can greatly lift the efficiency of computer operation and ensure the operation to be further human, and the operation effect is as good as the right mouse button menu.
Description
Technical field
The present invention relates to a kind of 3 three-point state informations based on mouse and realize the method that computer function is controlled, also is to combine with the particular mouse motion track to realize the method for mouse motion track controlling computer function by click.
Background technology
In mobile phone, especially in the smart mobile phone, extensively exist to utilize and touch motion track realization function control technology, " Touch " operative technique of bringing as the iPhone mobile phone, because this control mode has convenient and swift and light comfortable operating characteristic, therefore be subjected to liking and generally being used of user.
Yet in computer, owing to the reason of following two aspects: 1) be difficult to distinguish the influence of other motion track of mouse function control motion track and mouse; 2) influence of mouse sampling characteristic, make adopt pure track relatively mode, certainly exist a large amount of maloperations.
Described mouse sampling characteristic is that finger mouse is under different translational speeds, there is significant difference for the same data that motion track collected, such as draw horizontal right angle, the perpendicular back of an elder generation with mouse, only when moving to the right angle turning point, mouse just in time collects these data, otherwise the data that collect can't show it is the right angle, and generally the mouse sampling rate is 100 times/second.
Therefore prior art fails to realize effectively carrying out based on the mouse moving track operation of function control all the time in computer, promptly can't utilize the mouse motion track to realize that the function control technology is to promote the efficient and the hommization degree of mouse action.
Summary of the invention
The purpose of this invention is to provide a kind of method that realizes computer function control based on 3 three-point state informations of mouse, it is by specific 3 three-point state informations of mouse, in computer, realize effectively carrying out function control, with the efficient of lifting computation and the hommization degree of operation based on the mouse moving track.
For achieving the above object, the present invention has adopted following technical scheme: a kind of 3 three-point state informations based on mouse are realized the method that computer function is controlled, and comprise the steps:
Step 1, startup mouse message prize procedure, described mouse message prize procedure is used to catch the click and the mobile message of mouse, and judges whether to conform to a predetermined condition according to catching the information that obtains, to carry out predefined computer function;
Step 2, described mouse message prize procedure are capturing the status information that begins to write down successively following 3 somes when mousebutton is upspring information:
The 1st dot information: the status information of the mouse pointer point when mousebutton is upspring;
The 2nd dot information: mousebutton is upspring the back in predefined time m, the Far Left of mouse motion track or the status information of rightmost mouse pointer point;
The 3rd dot information: after mousebutton is upspring, the status information of the mouse pointer point of the last moment in predefined time m;
Step 3, described mouse message prize procedure judge that to 3 three-point state informations of record in the step 2 if conform to a predetermined condition, then carry out predefined computer function, if do not meet predetermined condition, then repeating step 2,
When the 2nd dot information was the status information of the leftmost mouse pointer point of mouse motion track in the step 2, described predetermined condition was as follows:
1), the 1st the horizontal absolute coordinate of computer screen deducts resulting numerical value behind the 2nd the horizontal absolute coordinate of computer screen, also promptly the 1st X value deduct the 2nd the X value afterwards resulting numerical value greater than A, and less than B;
2), the absolute value of the 1st absolute value with the difference of the 2nd the vertical absolute coordinate of computer screen difference that is the Y value is less than C;
3), the 3rd the horizontal absolute coordinate of computer screen deducts resulting numerical value behind the 1st the horizontal absolute coordinate of computer screen, also promptly the 3rd X value deduct the 1st the X value afterwards resulting numerical value greater than D;
4), the absolute value of the 3rd absolute value with the difference of the 1st the vertical absolute coordinate of computer screen difference that is the Y value is less than C;
When the 2nd dot information was the status information of described rightmost mouse pointer point in the step 2, described predetermined condition was as follows:
1), the 2nd the horizontal absolute coordinate of computer screen deducts resulting numerical value behind the 1st the horizontal absolute coordinate of computer screen, also promptly the 2nd X value deduct the 1st the X value afterwards resulting numerical value greater than A, and less than B;
2), the absolute value of the 2nd absolute value with the difference of the 1st the vertical absolute coordinate of computer screen difference that is the Y value is less than C;
3), the 1st the horizontal absolute coordinate of computer screen deducts resulting numerical value behind the 3rd the horizontal absolute coordinate of computer screen, also promptly the 1st X value deduct the 3rd the X value afterwards resulting numerical value greater than D;
4), the absolute value of the 1st absolute value with the difference of the 3rd the vertical absolute coordinate of computer screen difference that is the Y value is less than C;
Wherein the span of A is 5~40 integer, and the span of B is the integer of (A+50)~1000, and the span of C is 30~500 integer, and the span of D is 1~200 integer, and the span of T was 400~1200 nanoseconds;
Mousebutton in described step 1~step 3 is left mouse button or right mouse button, and left mouse button or right mouse button can only be selected fixing a use in the mouse message prize procedure.
Described left mouse button or right mouse button can only be selected a fixing meaning of using and be meant in the mouse message prize procedure, in the mouse message prize procedure, can select to use left mouse button or right mouse button, and in case after making a choice, the right and left key of mouse can not switch again in the use of mouse message prize procedure, such as select left mouse button, then in the use of mouse message prize procedure, just can not switch to right mouse button again, also promptly in case select left mouse button, then in the use of mouse message prize procedure, can only fix and use left mouse button, above-mentioned steps 1, pressing and upspringing of mousebutton in 2 can only be fixed as pressing and upspringing of left mouse button.
Based on above technical scheme, the present invention has the following advantages:
1, the mode that combines by the specific motion track of click and mouse can prevent maloperation effectively, in i.e. a period of time after left mouse button is upspring, the specific motion track of mouse that afterwards moves left that afterwards moves right or move right earlier moving left is earlier controlled motion track as function, can effectively distinguish other motion track of mouse function control motion track and mouse, be difficult to distinguish and the maloperation that brings with other motion track of avoiding mouse function to control motion track and mouse;
2, in function control motion track, only select actual acquisition to the most left point of data or the rightest point (being the 2nd point of step 2), rearmost point (being the 3rd point of step 2) be valid data, the influence that mouse sampling characteristic is brought effectively reduces, with the maloperation of effectively avoiding mouse sampling characteristic to bring;
3, select from left to right or mouse motion track is from right to left controlled motion track as function, especially select mouse motion track from left to right to control motion track as function, make this control method meet most users' use habit, can promote the efficient of computation greatly, and make that operation is more humane, and operating effect is not second to the right mouse button menu.
Description of drawings
Fig. 1 is a FB(flow block) of the present invention;
Fig. 2 is the FB(flow block) of the present invention that records the 1st ' dot information.
Embodiment
Do and specify below in conjunction with Fig. 1,2 pairs of operating process of the present invention, need to prove, in the following embodiments, the mouse message prize procedure is selected the fixing left mouse button of using, select mouse motion track from left to right to control motion track simultaneously, to meet most users' use habit as function.
Embodiment 1
As shown in Figure 1, a kind of 3 three-point state informations based on mouse are realized the method that computer function is controlled, and its concrete enforcement may further comprise the steps:
Data such as step 102, mouse message prize procedure initialization 3 dot informations;
If step 104 mouse message prize procedure captures the left mouse button information of upspringing, then enter step 105, otherwise continue step 103;
Wherein the span of m was 400~1200 nanoseconds, and the preferred span of m was 500~1000 nanoseconds, more to help user's operation;
1)、A<x1-x2<B;
2)、|y1-y2|<C;
3)、x3-x1>D;
4)、|y3-y1|<C;
Wherein the span of A is 5~40 integer, and the preferred span of A is 8~20 integer, more to help user's operation;
The span of B is the integer of (A+50)~1000, and the preferred span of B is 100~200 integer, more to help user's operation;
The span of C is 30~500 integer, and the preferred span of C is 30~80 integer, more to help user's operation;
The span of D is 1~200 integer, and the preferred span of D is 5~20 integer, more to help user's operation;
When satisfying above-mentioned 4 conditions when the information of same of 3 points that write down, enter step 109, system carries out predefined function, as opens other application program; When the information of 3 points that write down can not satisfy 4 conditions simultaneously, then return step 102.
Embodiment 2
As shown in Figure 2, specifically may further comprise the steps:
Data such as step 102, mouse message prize procedure initialization 4 dot informations;
If step 104 mouse message prize procedure captures left mouse button and presses information, then enter step 105, otherwise continue step 103;
Wherein the span of m was 400~1200 nanoseconds, and the preferred span of m was 500~1000 nanoseconds, more to help user's operation;
The 2nd dot information of step 107, recording step 106 be (x2 y2), when system time is t2=t1+m, obtains the absolute coordinates information of the current position of mouse pointer, i.e. the 3rd dot information, be recorded as (x3, y3);
1)、A<x1-x2<B;
2)、|y1-y2|<C;
3)、x3-x1>D;
4)、|y3-y1|<C;
Wherein the span of A is 5~40 integer, and the preferred span of A is 8~20 integer, more to help user's operation;
The span of B is the integer of (A+50)~1000, and the preferred span of B is 100~200 integer, more to help user's operation;
The span of C is 30~500 integer, and the preferred span of C is 30~80 integer, more to help user's operation;
The span of D is 1~200 integer, and the preferred span of D is 5~20 integer, more to help user's operation;
When the information of same of 4 points that write down, satisfying above-mentioned 4 conditions, enter step 109, system carries out predefined function, as open other application program or the text chosen such as is handled at function, the record of the 1st ' dot information wherein, the text that more helps choosing such as handle at the expansion of function; When the information of 4 points that write down can not satisfy 4 conditions simultaneously, then return step 102.
Claims (4)
1. 3 three-point state informations based on mouse are realized the method that computer function is controlled, and comprise the steps:
Step 1, startup mouse message prize procedure, described mouse message prize procedure is used to catch the click and the mobile message of mouse, and judges whether to conform to a predetermined condition according to catching the information that obtains, to carry out predefined computer function;
Step 2, described mouse message prize procedure are capturing the status information that begins to write down successively following 3 somes when mousebutton is upspring information:
The 1st dot information: the status information of the mouse pointer point when mousebutton is upspring;
The 2nd dot information: mousebutton is upspring the back in predefined time m, the Far Left of mouse motion track or the status information of rightmost mouse pointer point;
The 3rd dot information: after mousebutton is upspring, the status information of the mouse pointer point of the last moment in predefined time m;
Step 3, described mouse message prize procedure judge that to 3 three-point state informations of record in the step 2 if conform to a predetermined condition, then carry out predefined computer function, if do not meet predetermined condition, then repeating step 2,
When the 2nd dot information was the status information of the leftmost mouse pointer point of mouse motion track in the step 2, described predetermined condition was as follows:
1), the 1st the horizontal absolute coordinate of computer screen deducts resulting numerical value behind the 2nd the horizontal absolute coordinate of computer screen, also promptly the 1st X value deduct the 2nd the X value afterwards resulting numerical value greater than A, and less than B;
2), the absolute value of the 1st absolute value with the difference of the 2nd the vertical absolute coordinate of computer screen difference that is the Y value is less than C;
3), the 3rd the horizontal absolute coordinate of computer screen deducts resulting numerical value behind the 1st the horizontal absolute coordinate of computer screen, also promptly the 3rd X value deduct the 1st the X value afterwards resulting numerical value greater than D;
4), the absolute value of the 3rd absolute value with the difference of the 1st the vertical absolute coordinate of computer screen difference that is the Y value is less than C;
When the 2nd dot information was the status information of described rightmost mouse pointer point in the step 2, described predetermined condition was as follows:
1), the 2nd the horizontal absolute coordinate of computer screen deducts resulting numerical value behind the 1st the horizontal absolute coordinate of computer screen, also promptly the 2nd X value deduct the 1st the X value afterwards resulting numerical value greater than A, and less than B;
2), the absolute value of the 2nd absolute value with the difference of the 1st the vertical absolute coordinate of computer screen difference that is the Y value is less than C;
3), the 1st the horizontal absolute coordinate of computer screen deducts resulting numerical value behind the 3rd the horizontal absolute coordinate of computer screen, also promptly the 1st X value deduct the 3rd the X value afterwards resulting numerical value greater than D;
4), the absolute value of the 1st absolute value with the difference of the 3rd the vertical absolute coordinate of computer screen difference that is the Y value is less than C;
Wherein the span of A is 5~40 integer, and the span of B is the integer of (A+50)~1000, and the span of C is 30~500 integer, and the span of D is 1~200 integer, and the span of T was 400~1200 nanoseconds;
Mousebutton in described step 1~step 3 is left mouse button or right mouse button, and left mouse button or right mouse button can only be selected fixing a use in the mouse message prize procedure.
2. the method that realizes computer function control based on 3 three-point state informations of mouse according to claim 1, it is characterized in that: before record the 1st dot information of step 2, the status information of the mouse pointer point when at first writing down mousebutton and pressing is designated as the 1st ' dot information.
3. 3 three-point state informations based on mouse according to claim 1 and 2 are realized the method that computer function is controlled, and it is characterized in that step 2 comprises following operation:
1), described mouse message prize procedure captures mousebutton when upspringing information, absolute coordinates information (the x1 of record mouse pointer position, y1), i.e. the 1st dot information, write down the current system time that is accurate to nanosecond simultaneously, pick up counting and at predefined time m IT mouse pointer mobile message;
2), described mouse message prize procedure is in predefined time m, constantly catch and write down the absolute coordinates information of mouse pointer position, and the absolute coordinates information of each position of the catch mouse pointer that obtains compared judgement, (x2 y2) is the 2nd dot information to the absolute coordinates information of the mouse pointer position when the horizontal absolute coordinate of power taking brain screen is the X value for minimum value;
3), when predefined time m finishes, (x3 y3), is the 3rd dot information to obtain the absolute coordinates information of the current position of mouse pointer.
4. the method that realizes computer function control based on 3 three-point state informations of mouse according to claim 1, the span that it is characterized in that A in the step 3 is 8~20 integer, the span of B is 100~200 integer, the span of C is 30~80 integer, the span of D is 5~20 integer, and the span of T was 500~1000 nanoseconds.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010101546151A CN101825960B (en) | 2010-04-23 | 2010-04-23 | Method for realizing computer function control based on three-point state information of mouse |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010101546151A CN101825960B (en) | 2010-04-23 | 2010-04-23 | Method for realizing computer function control based on three-point state information of mouse |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101825960A true CN101825960A (en) | 2010-09-08 |
CN101825960B CN101825960B (en) | 2012-07-18 |
Family
ID=42689902
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010101546151A Expired - Fee Related CN101825960B (en) | 2010-04-23 | 2010-04-23 | Method for realizing computer function control based on three-point state information of mouse |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101825960B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102650911A (en) * | 2012-05-25 | 2012-08-29 | 深圳市众进思创科技开发有限公司 | Gesture method used for mouse |
WO2014180065A1 (en) * | 2013-05-06 | 2014-11-13 | 江苏惠通集团有限责任公司 | Method of sending mouse data by space mouse, and method of controlling movement of mouse pointer |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5990893A (en) * | 1996-09-13 | 1999-11-23 | Kabushiki Kaisha Toshiba | Data input device and method |
CN1790262A (en) * | 2005-12-20 | 2006-06-21 | 无锡永中科技有限公司 | Method for controlling computer software running based on mouse track data |
CN101364160A (en) * | 2008-09-24 | 2009-02-11 | 广东威创视讯科技股份有限公司 | Error correcting method for touch screen |
CN101526861A (en) * | 2008-03-06 | 2009-09-09 | 郑国书 | Mouse with gesture operation function |
-
2010
- 2010-04-23 CN CN2010101546151A patent/CN101825960B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5990893A (en) * | 1996-09-13 | 1999-11-23 | Kabushiki Kaisha Toshiba | Data input device and method |
CN1790262A (en) * | 2005-12-20 | 2006-06-21 | 无锡永中科技有限公司 | Method for controlling computer software running based on mouse track data |
CN101526861A (en) * | 2008-03-06 | 2009-09-09 | 郑国书 | Mouse with gesture operation function |
CN101364160A (en) * | 2008-09-24 | 2009-02-11 | 广东威创视讯科技股份有限公司 | Error correcting method for touch screen |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102650911A (en) * | 2012-05-25 | 2012-08-29 | 深圳市众进思创科技开发有限公司 | Gesture method used for mouse |
CN102650911B (en) * | 2012-05-25 | 2014-12-10 | 深圳市众进思创科技开发有限公司 | Gesture method used for mouse |
WO2014180065A1 (en) * | 2013-05-06 | 2014-11-13 | 江苏惠通集团有限责任公司 | Method of sending mouse data by space mouse, and method of controlling movement of mouse pointer |
Also Published As
Publication number | Publication date |
---|---|
CN101825960B (en) | 2012-07-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102446032B (en) | Information input method and terminal based on camera | |
CN104679401B (en) | The touch control method and terminal of a kind of terminal | |
US10198421B2 (en) | Method for inserting or deleting cells, rows or columns in spreadsheet and a device therefor | |
CN102473060B (en) | Coordinate determination device, coordinate determining method | |
CN102193736B (en) | Input method and system supporting multimode automatic switching | |
CN105760102B (en) | Terminal interaction control method and device and application program interaction control method | |
EP2565760A1 (en) | Method and mobile terminal for automatically identifying rotary gesture | |
CN107396019A (en) | A kind of slow motion video method for recording and mobile terminal | |
CN108616712B (en) | Camera-based interface operation method, device, equipment and storage medium | |
EP2570901A1 (en) | Method and mobile terminal for automatically recognizing gesture | |
CN111787223B (en) | Video shooting method and device and electronic equipment | |
CN102939578A (en) | A method, a device and a system for receiving user input | |
CN104583906A (en) | Input method and apparatus of portable device | |
CN108156407A (en) | A kind of video clipping method and terminal | |
CN106293315A (en) | The method and apparatus that floating frame shows | |
CN102662525A (en) | Method and terminal for carrying out screenshot operation through touch screen | |
CN102402369A (en) | Electronic equipment and method for moving operation prompt identifier thereof | |
CN103034427A (en) | Touch screen page turning method and device and touch screen equipment | |
CN101866226A (en) | Mobile positioning operation device of portable electronic equipment and operation method | |
CN103019518A (en) | Method of automatically adjusting human-computer interaction interface | |
CN104657053A (en) | Method for realizing particular functions by multi-point gestures at touch screen terminal | |
CN101183284A (en) | Mobile terminal hand-written inputting method, device and mobile terminal | |
CN107124568A (en) | A kind of video recording method and electronic equipment | |
CN103440033A (en) | Method and device for achieving man-machine interaction based on bare hand and monocular camera | |
CN104954549A (en) | Electronic device and messaging method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C53 | Correction of patent for invention or patent application | ||
CB02 | Change of applicant information |
Address after: 230000 room 20, building 803, Rose Garden International, Huadu District, Hefei, Anhui Applicant after: Pan Tianhua Address before: 230088 Mount Huangshan road Anhui city Hefei province high tech Zone No. 616 Xunfei building Applicant before: Pan Tianhua |
|
COR | Change of bibliographic data |
Free format text: CORRECT: APPLICANT; FROM: |
|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120718 Termination date: 20160423 |