CN101825960B - 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 PDF

Info

Publication number
CN101825960B
CN101825960B CN2010101546151A CN201010154615A CN101825960B CN 101825960 B CN101825960 B CN 101825960B CN 2010101546151 A CN2010101546151 A CN 2010101546151A CN 201010154615 A CN201010154615 A CN 201010154615A CN 101825960 B CN101825960 B CN 101825960B
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.)
Expired - Fee Related
Application number
CN2010101546151A
Other languages
Chinese (zh)
Other versions
CN101825960A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN2010101546151A priority Critical patent/CN101825960B/en
Publication of CN101825960A publication Critical patent/CN101825960A/en
Application granted granted Critical
Publication of CN101825960B publication Critical patent/CN101825960B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Realize the method for computer function control based on 3 three-point state informations of mouse
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 through 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 like the iPhone mobile phone because this control mode has convenient and swift and light comfortable operating characteristic, therefore receives 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 in the data that motion track collected for same; Such as draw horizontal right angle, the perpendicular back of an elder generation with mouse; Only when mouse moves to the right angle turning point, just in time collect these data, otherwise the data that collect can't show it is the right angle, generally the mouse sampling rate is 100 times/second.
Therefore prior art fails in computer, to realize effectively carrying out based on the mouse moving track operation of function control all the time, 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 through 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 realizing above-mentioned purpose, 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;
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 status information of the Far Left of mouse motion track or 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 following:
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 following:
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 m 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, pressing and upspringing of the mousebutton in the above-mentioned steps 1,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 through 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; Control motion track moving left the specific motion track of mouse that afterwards moves left that afterwards moves right or move right earlier earlier 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 left side point or the rightest point (being the 2nd point of step 2), the rearmost point (being the 3rd point of step 2) of data 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; Among the embodiment below; The mouse message prize procedure is selected the fixing left mouse button of using, and selects mouse motion track from left to right to control motion track as function simultaneously, to meet most users' use habit.
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 practical implementation may further comprise the steps:
Step 101, startup mouse message prize procedure;
Data such as step 102, mouse message prize procedure initialization 3 dot informations;
Step 103, get into the upspring state of information of captured in real time left mouse button;
If step 104 mouse message prize procedure captures the left mouse button information of upspringing, then get into step 105, otherwise continue step 103;
Step 105, mouse message prize procedure capture left mouse button when upspringing information, and (absolute coordinates all is the screen absolute coordinates like no specified otherwise to the screen absolute coordinates of mouse pointer position; The screen absolute coordinates is meant in the Windows of the Microsoft operating system that the upper left corner of computer screen is origin (0,0); Laterally be the X axle that increases from left to right, vertically is the coordinate of the coordinate system of the Y axle of increase from top to down) information, i.e. the 1st dot information; Be recorded as (x1; Y1), and write down the current system time t1 that is accurate to nanosecond, get into step 106;
Step 106, pick up counting, and catch the mobile data information of mouse pointer;
Step 107, mouse message prize procedure are in the predefined time, and supposing to set duration is m nanosecond, promptly at m that the described t1 by step 105 picks up counting constantly in nanosecond; Constantly obtain the absolute coordinates information of mouse pointer position, and the minimum point of abscissa value of choosing absolute coordinates wherein is the 2nd point, and writes down its information and be (x2; Y2); When system time is t2=t1+m, obtain the absolute coordinates information of the current position of mouse pointer, i.e. the 3rd dot information; Be recorded as (x3, y3);
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;
Step 108, judge that the mouse message prize procedure checks the information of 3 points that write down and whether satisfy following 4 conditions simultaneously:
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 3 points that write down, satisfying above-mentioned 4 conditions, get into 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:
Step 101, startup mouse message prize procedure;
Data such as step 102, mouse message prize procedure initialization 4 dot informations;
Step 103, entering captured in real time left mouse button are pressed the state of information;
If step 104 mouse message prize procedure captures left mouse button and presses information, then get into step 105, otherwise continue step 103;
When step 105, mouse message prize procedure record left mouse button was pressed, (absolute coordinates all was the screen absolute coordinates like no specified otherwise to the screen absolute coordinates of mouse pointer position; The screen absolute coordinates is meant in the Windows of the Microsoft operating system that the upper left corner of computer screen is origin (0,0); Laterally be the X axle that increases from left to right, vertically is the coordinate of the coordinate system of the Y axle of increase from top to down) information, i.e. the 1st ' dot information; Be recorded as (x1 ', y1 '), when the mouse message prize procedure captures left mouse button and upsprings information; The absolute coordinates information of record mouse pointer position, promptly the 1st dot information is recorded as (x1; Y1), and write down the current system time t1 that is accurate to nanosecond, pick up counting and catch the mobile message of mouse pointer;
Step 106, mouse message prize procedure are m nanosecond such as setting duration in the predefined time, promptly in nanosecond, constantly obtain the absolute coordinates information of mouse pointer position at the m that is picked up counting by t1; Suppose absolute coordinates that mouse moves continuously 3 points for (a1, b1), (a2, b2) with (a3, b3); Wherein (a3 b3) is current mouse pointer absolute coordinates information, then when the situation of a2<a1 and while a2<a3 occurring; Absolute coordinates (a2, b2) information is the 2nd dot information, if fail to obtain the 2nd dot information at m in time nanosecond; Then repeating step 102, if obtain the success of the 2nd dot information, then get into step 107;
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);
Step 108, judge that the mouse message prize procedure checks the information of 4 points that write down and whether satisfy following 4 conditions simultaneously:
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; Get into step 109; System carries out predefined function; As open other application program or function such as handle to the text chosen, 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;
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 status information of the Far Left of mouse motion track or rightmost mouse pointer point;
The 3rd dot information: after mousebutton is upspring, the state 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 following:
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 following:
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 m 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); Promptly the 1st dot information writes down the current system time that is accurate to nanosecond simultaneously, picks 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, and the span of D is 5~20 integer, and the span of T was 500~1000 nanoseconds.
CN2010101546151A 2010-04-23 2010-04-23 Method for realizing computer function control based on three-point state information of mouse Expired - Fee Related CN101825960B (en)

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 CN101825960A (en) 2010-09-08
CN101825960B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102650911B (en) * 2012-05-25 2014-12-10 深圳市众进思创科技开发有限公司 Gesture method used for mouse
CN103257710B (en) * 2013-05-06 2017-03-15 江苏惠通集团有限责任公司 Space mouse sends the method for mouse data, the method for control mouse pointer movement

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN101825960A (en) 2010-09-08

Similar Documents

Publication Publication Date Title
CN102446032B (en) Information input method and terminal based on camera
CN101853133B (en) Method and mobile terminal for automatically recognizing gestures
CN104679401B (en) The touch control method and terminal of a kind of terminal
CN102473060B (en) Coordinate determination device, coordinate determining method
CN107918563A (en) A kind of method, data processing equipment and user equipment replicated and paste
CN108616712B (en) Camera-based interface operation method, device, equipment and storage medium
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
CN103440033B (en) A kind of method and apparatus realizing man-machine interaction based on free-hand and monocular cam
CN108156407A (en) A kind of video clipping method and terminal
CN106415476A (en) Input device and user interface interactions
CN102939578A (en) A method, a device and a system for receiving user input
CN103150018B (en) Gesture identification method and device
CN201570011U (en) Terminal control device and terminal
CN102609093A (en) Method and device for controlling video playing by using gestures
CN102662525A (en) Method and terminal for carrying out screenshot operation through touch screen
CN102193736A (en) Input method and system supporting multimode automatic switching
CN102654821B (en) A kind of localization of text light target method and device
CN101866226A (en) Mobile positioning operation device of portable electronic equipment and operation method
CN102929549A (en) Camera self-photographing method and mobile terminal thereof
CN103092334B (en) Virtual mouse driving device and virtual mouse simulation method
CN107124568A (en) A kind of video recording method and electronic equipment
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
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