[background technology]
Window is a most important parts in the user interface.It is on the screen with a corresponding rectangular area of application program, be the visual interface between user and the application program that produces this window.When the user brought into operation an application program, application program was just created and is shown a window; When the object in user's action pane, program can be made respective reaction.The user stops the operation of a program through closing a window; Through selecting the corresponding application window to select corresponding application, Windows is controlled computing machine through these visual windows.
Windows can move a plurality of windows simultaneously; The user can realize that window switches through mouse or keyboard; With regard to Windows operating system, the two dimension of the mode that the window of the operating system of (comprising Windows XP) shows below the Windows XP when activating a window; This window is positioned at the top (certain window being placed the foremost forever except that being provided with) of other windows; Other windows become inactive state, in taskbar, can deposit the small icon of each window simultaneously, make things convenient for the user to carry out window and switch.When the user carries out the window switching; The general mode that adopts is: the cursor of mouse is moved on the window to be activated in the taskbar; A mouse click left button, this moment, window to be activated jumped back out to the foreground from the backstage, and the window that window to be activated becomes activation supplies the user in this window, to operate.Perhaps adopt the shortcut Alt+Tab of keyboard to switch, and when adopting the shortcut switch window, window switches and switches in order, speed is slower when selecting window.
Because the two-dimensional plane window does not have preview function when the shortcut Alt+Tab through keyboard switches; The icon of identical program is the same; Distinguishing the different windows of its same program can only confirm through title; When the window title was longer, the word content of some difference can not show that this can make troubles to switching.So the display mode of the operating system more than Windows XP (for example Windows Vista) window interface also is developed to three-dimensional stereo window from the two-dimensional plane window, let the user realize that with the mode of visual window preview window switches.Yet, when user's desire is sought one of them window from a lot of windows, invite and forgotten what these Macintoshs are; Then on switch window, can quite bother; And, when user's switch window, except the proficiency mouse beacon; Another head also will press Macintosh could accomplish the action that window switches, complex operation.
Name is called the Chinese invention patent of " computer input unit and utilize its control stereo window changing method ", and (number of patent application is: 200710105862.0; The applying date is on May 31st, 2007) a kind of method that adopts mouse combined key to call the window changeover program disclosed; Name be called " mouse and the changing method thereof that are used for switch window " Chinese invention patent (number of patent application is: 200710101990.8, the applying date is: on April 27th, 2007) disclose a kind of mouse roller that adopts and controlled between the window method of switching back and forth.The speed of controlling the window switching through mouse roller is obviously fast than the Macintosh control window switch speed of keyboard, and only uses mouse just can control, and it is also convenient to operate.
But; What in number of patent application is 200710101990.8 Chinese invention patent, adopt is the rolling vector that detects the mouse roller of mouse roller through the roll detection device, judges the number that window switches through the size of the vector that rolls, and the mouse roller lattice that roll are a vector of unit length usually; Window of a corresponding switching of vector of unit length; When a window switches to another one and this window and differs N window, need rolling N+1 lattice number, but because staff is difficult to accurately calculate the lattice number of rolling when rolling (particularly wear out at roll detection device and mouse roller; When degree of accuracy is not good); So window misses or the situation of no show in the time of staff usually can occurring and stop scroll wheel, can bring unnecessary trouble to the operator like this, also makes operation become loaded down with trivial details.
[summary of the invention]
In order to solve above-mentioned technical matters; The invention provides a kind of new method of passing through the switching of mouse control window, the number of times that promptly rolls through roll detection device detection mouse roller is judged the number that window switches, and the benefit of design is like this; The lattice number that does not need artificial computing mouse roller to roll; Simplified the mouse control process, convenient for users, even and aging at mouse roller and roll detection device; When degree of accuracy is not good, also can be very accurately and carry out the window blocked operation easily.
Further disperse, the said number of times that rolls through roll detection device detection mouse roller is judged the also replaceable number of judging the window switching for the number of times that moves through the position of touch pad detected touch point of number that window switches.Roll signal and touch point position movable signal that said mouse roller rolls can be referred to as displacement signal.
Concrete technical scheme of the present invention is following:
The present invention provides a kind of method of switching through a plurality of windows of mouse control computing machine, and this method comprises:
Obtain displacement signal;
Calculating finishes to the time interval of beginning next bit shifting signal from last displacement signal;
Obtain the described time interval and analysis;
Detect at every turn described interval greater than or equal certain threshold values after, send the instruction of switching a window to computing machine;
When detecting the described time interval, continue to calculate and detect last displacement signal and finish to the time interval of beginning next bit shifting signal less than certain threshold values.
This method further comprises:
Obtain the signal of pushing that triggers button, this is pushed the instruction that conversion of signals becomes to get into the window switch mode;
The instruction of this entering window switch mode is sent to computing machine.
Said displacement signal comprises the signal of roller rolling and the signal that move the position, touch point.
This method further comprises:
When described interval greater than or equal certain threshold values after, obtain the sense of displacement information that comprises in the said displacement signal, send the instruction of switching a window to computing machine, the order that said window switches is corresponding with said sense of displacement.
This method further comprises:
Obtain the signal of pushing of said triggering button once more, this is pushed the instruction that conversion of signals becomes to leave the window switch mode.
Said mouse comprises first roller and second roller, and the signal that said first roller rolls is said displacement signal, and first roller is positioned at the side of mouse.
The instruction of said entering window switch mode sends to computing machine through bluetooth module or 2.4G wireless module.
Said button comprises second roller that is positioned at the mouse front and the function selecting key that is positioned at the mouse side, and the said signal of pushing is the signal that second roller and function selecting key are pressed down and produce simultaneously.
Said button is included as the function selecting key of mouse side, and the said signal of pushing is the signal that said function selecting is pressed down and produces.
The threshold values in the said time interval is 0.1s~0.2s.
The mouse that the present invention also provides a kind of a plurality of windows that are used for control computer to switch, this mouse comprises:
The displacement signal detection module is used to obtain displacement signal;
Timing module is used to calculate from last displacement signal and finishes to the time interval of beginning next bit shifting signal;
Analysis and processing module is used to obtain the time interval information of timing module and analyze, and judges whether the said time interval is greater than or equal to certain threshold values;
Said analysis and processing module detect at every turn described interval greater than or equal certain threshold values after, produce the instruction of switching a window, the instruction that said instruction sending module will be switched a window sends to computing machine;
Said analysis and processing module detects the described time interval less than certain threshold values, continues to obtain the time interval and the analysis that said timing module sends.
This mouse also comprises:
Be positioned at the triggering button on the mouse;
Signal conversion module is used for said triggering button is pushed the instruction that conversion of signals becomes to get into the window switch mode;
Instruction sending module is used for the instruction of this entering window switch mode is sent to computing machine.
Said displacement signal comprises the signal of roller rolling and the signal that move the position, touch point.
Said mouse also comprises the sense of displacement detection module; Be used for obtaining the sense of displacement information that displacement signal comprises; When described interval greater than or equal certain threshold values after, said analysis and processing module generates the instruction with the window of switching of the corresponding order of this sense of displacement.
Said signal conversion module also be used for said triggering button once more push the instruction that conversion of signals becomes to leave the window switch mode.
Said mouse comprises first roller and second roller, and the signal that said first roller rolls is said displacement signal, and first roller is positioned at the side of mouse.
Said instruction sending module is bluetooth module or 2.4G wireless module.
Said button comprises second roller that is positioned at the mouse front and the function selecting key that is positioned at the mouse side, and the said signal of pushing is the signal that second roller and function selecting key are pressed down and produce simultaneously.
Said button is included as the function selecting key of mouse side, and the said signal of pushing is the signal that said function selecting is pressed down and produces.
The threshold values in the said time interval is 0.1s~0.2s.
Beneficial technical effects of the present invention is:
The present invention finishes to the time interval of beginning next bit shifting signal through calculating last displacement signal; Also promptly calculating and detect the roller last grid that rolled rolls time interval of pausing or calculate and the last displacement of detected touch point finishes time interval of beginning to pause to displacement next time to next grid of beginning; Whether analyze the said time interval more than or equal to certain threshold values; This interval greater than or equal certain threshold values after, send the instruction of switching a window to computing machine.And this time interval is set to 0.1s~0.2s; Thus; As long as the once perhaps every slip of every rolling once just switches a window, need not the vector that move motion vector that the accurate Calculation roller rolls or touch point, and no matter how many displacements roll how many motion vectors or the staff touch point of on touch pad, sliding of once rolling of staff moves; As long as staff one stops to roll or the slip on touch pad; Promptly thinking needs to switch a window, has made things convenient for the staff mouse beacon to carry out window like this and has switched, and has simplified the mouse control process.Even aging at mouse roller and roll detection device, when degree of accuracy is not good, also can be very accurately and carry out the window blocked operation easily.
[embodiment]
The present invention relates to a kind of method of switching through a plurality of windows of mouse control computing machine, this method comprises:
Obtain displacement signal;
Calculating finishes to the time interval of beginning next bit shifting signal from last displacement signal;
Obtain the described time interval and analysis;
Detect at every turn described interval greater than or equal certain threshold values after, send the instruction of switching a window to computing machine;
When detecting the described time interval, continue to calculate and detect last displacement signal and finish to the time interval of beginning next bit shifting signal less than certain threshold values.
And with this method is that the basis has proposed to be used for the mouse that a plurality of windows of control computer switch.
Below in conjunction with embodiment and Figure of description, the present invention is done further to set forth and explanation:
Embodiment 1
A kind of method of switching through a plurality of windows of mouse 10 control computer 20; As shown in Figure 1, said mouse 10 comprises that (be positioned at mouse inside, Fig. 1 does not show the bluetooth sending module; Down together); To said computing machine sending controling instruction, said computing machine comprises the bluetooth receiver module through the bluetooth sending module, and the bluetooth receiver module of this computing machine is used to receive said steering order.Said mouse 10 also comprises first roller 102 that is positioned at mouse side 101, second roller 105 that is positioned at the function selecting key 103 of mouse side 101 and is positioned at mouse positive 104; The both sides of this second roller 105 are respectively the left button 106 of mouse and the right button 107 of mouse; Staff is when holding mouse 10; Thumb can contact with function selecting key 103 with said first roller 102; Be used to stir first roller 102 and pressing function options button 103, forefinger can contact with said second roller 105, is used to stir and by depressing second roller 105.When a plurality of program windows of needs through the mouse control computing machine switch, adopt forefinger by depressing second roller 105, and then through thumb click function options button 103, clicks entering window switch mode behind certain number of times.
As shown in Figure 3, this method specifically comprises:
S1: obtain second roller 105 and push signal under being pressed simultaneously with function selecting key 103; This is pushed signal and is equal to the signal that Ctrl, WINDOWS key and TAB key on the keyboard are pressed down and are produced simultaneously, and this is pushed the instruction that conversion of signals becomes to get into the window switch mode;
S2: the instruction that will get into the window switch mode through the bluetooth sending module sends to computing machine 20;
S3: detect first roller 102 and whether roll;
S4: after first roller 102 begins to roll, calculate since first roller 102 and rolled a last grid to the time interval that next grid rolls and pauses, the threshold values in the described time interval is set to 0.1s;
S5: obtain the described time interval and analysis;
S6: judge whether the said time interval is greater than or equal to certain threshold values;
S7: at every turn when detect described interval greater than or equal certain threshold values after, prepare to send the instruction of switching a window to computing machine 20, the instruction of this window switching is equal to click directionkeys on keyboard ↑ or the signal of directionkeys ↓ generation;
S8: after step S7, obtain the rotating direction of the last grid of first roller, 102 rollings, send the instruction of switching a window to computing machine 20, the order that said window switches is corresponding with the direction that this first roller rolls;
S9:, continue to calculate and detect first roller 102 and rolled a last grid to beginning the time interval that next grid rolling pauses when detecting the described time interval less than certain threshold values;
S10: wait for that second roller 105 and function selecting key 103 are whether once more by simultaneously by depressing;
S11: obtain second roller 105 and function selecting key 103 signal of pushing down that is pressed simultaneously once more, this is pushed signal and adopts left mouse button click to be positioned at window foremost to choose and be positioned at the signal that window foremost withdraws from the generation of window switch mode simultaneously with being equal to.
So according to above-mentioned method, above-mentioned mouse 10 also comprises a control circuit 108, and is as shown in Figure 2, said control circuit 108 comprises:
Signal conversion module 1081 is used for second roller 105 and the instruction that conversion of signals becomes to get into the window switch mode of pushing under function selecting key 103 is pressed simultaneously;
Instruction sending module 1082 is used for the instruction of this entering window switch mode is sent to computing machine 20, and this instruction sending module 1082 is the bluetooth sending module;
Roller roll detection module 1083 is used to obtain the signal that first roller rolls;
Rotating direction detection module 1084 is used to obtain the roll rotating direction of a last grid of first roller;
Timing module 1085 is used for after first roller 102 begins to roll, and calculates first roller from having rolled the time interval of a last grid to next grid rolling pause of beginning;
Analysis and processing module 1085 is used to obtain the time interval of timing module and analyze, and judges whether the said time interval is greater than or equal to certain threshold values;
Analysis and processing module 1085 detect at every turn described interval greater than or equal certain threshold values after; Obtain the directional information of the roller rolling of rotating direction detection module 1084 transmissions simultaneously; Generate window instruction of switching with the corresponding order of these first roller, 102 rotating directions; The instruction that said instruction sending module 1082 will be switched a window sends to computing machine 20; Said analysis and processing module 1082 detects the described time interval less than certain threshold values, continues to obtain the time interval and the analysis that said timing module sends.
Said signal conversion module 1082 also is used for second roller 105 and function selecting key 103 once more by simultaneously by the instruction that conversion of signals becomes to leave the window switch mode of pushing of depressing.
The principle of work of this mouse is:
After second roller 105 of mouse is pressed down with function selecting key 103 simultaneously; The signal conversion module 1081 of mouse is with said instruction of pushing conversion of signals one-tenth entering window handover module; This computer-chronograph gets into multiprogrammable window switch mode; Wait for the further instruction of mouse; After first roller 102 of mouse was rolled, roller roll detection module 1083 was sent the instruction that picks up counting through analysis and processing module 1085 to timing module 1084 after detecting first roller, the 102 quilt rollings of mouse; After first roller 102 that roller roll detection module 1083 detects mouse began to roll, the rotating direction detection module constantly obtained the directional information that first roller rolls; Timing module 1084 calculates first roller 102 from having rolled the time interval of a last grid to next grid rolling pause of beginning; Timing module 1084 sends to analysis and processing module 1085 with the above-mentioned time interval and analyzes; Analysis and processing module 1085 is compared the above-mentioned time interval with stored threshold; As detect said interval greater than perhaps equaling this threshold values; Then obtain the directional information of the roller rolling of rotating direction detection module 1084 transmissions; Generate with window of switching of the corresponding order of these first roller, 102 rotating directions and instruct, this instruction sends in the computing machine 20 through instruction sending module, and a plurality of program windows of computing machine are accomplished a window and switched; If detect the said time interval less than described threshold values; Then can not generate window instruction of switching with the corresponding order of these first roller, 102 rotating directions; Continue to obtain timing module 1084 calculating first roller 102 and roll the time interval of pause to next grid of beginning, and analyze the time interval whether to be greater than or equal to described threshold values from the last grid that rolled.
If second roller 105 is not pushed with function selecting key 103 once more simultaneously; Then computing machine is in the handover module of a plurality of windows always; When if a plurality of windows of roller control computer switch to one of them window; Can choose this window through left mouse button 106 click, if second roller 105 and function selecting key 103 not once more by simultaneously by depressing, then mouse sends the instruction of leaving the window switch mode to computing machine; First roller is used for other operations of control computer, like page up/following one page.
Embodiment 2
Different with embodiment 1 is; The triggering button of above-mentioned entering window switch mode is the signal of pushing under second roller 105 is pressed with function selecting key 103 simultaneously; And the triggering button of present embodiment is said function selecting key 103; This function selecting key to push signal corresponding with the instruction that gets into the window switch mode; Promptly this is pushed signal and is equal to the signal that Ctrl, WINDOWS key and TAB key on the keyboard are pressed down and are produced simultaneously; It is corresponding with the instruction of leaving the window switch mode to press the signal that function selecting key 103 produced once more, promptly is equal to adopt left mouse button click to be positioned at foremost window to choose and be positioned at foremost that window withdraws from the signal that the window switch mode produces simultaneously.Said instruction sending module 1082 is the 2.4G wireless sending module, and said computing machine need comprise that also the 2.4G wireless receiving module could set up communication link with this mouse.
The threshold values in the said time interval is 0.2s.
Embodiment 3
Different with embodiment 1 and embodiment 2 is; Among embodiment 1 and the embodiment 2; Get into the window switch mode and need obtain and trigger pushing signal and just making computing machine get into the window switch mode of button, the roll signal of the roller of mouse just can be transformed into the window switching command simultaneously.In the present embodiment, get into the signal of pushing that the window switch mode need not trigger button, the roll signal of in mouse, setting a certain roller is specifically designed to and produces the window switching command.
In the present embodiment; The contour structures of said mouse is identical with embodiment 1, and promptly this mouse comprises: (be positioned at mouse inside, Fig. 1 does not show the bluetooth sending module; Down together); To said computing machine sending controling instruction, said computing machine comprises the bluetooth receiver module through the bluetooth sending module, and the bluetooth receiver module of this computing machine is used to receive said steering order.Said mouse 10 also comprises first roller 102 that is positioned at mouse side 101, second roller 105 that is positioned at the function selecting key 103 of mouse side 101 and is positioned at mouse positive 104; The both sides of this second roller 105 are respectively the left button 106 of mouse and the right button 107 of mouse; Staff is when holding mouse 10; Thumb can contact with function selecting key 103 with said first roller 102; Be used to stir first roller 102 and pressing function options button 103, forefinger can contact with said second roller 105, is used to stir and by depressing second roller 105.
Different with embodiment 1, the principle of work of this mouse is different with the principle of work of embodiment 1 mouse, the principle of work of this mouse:
After roller roll detection module 1083 detects first roller, the 102 quilt rollings of mouse; Send the instruction that picks up counting through analysis and processing module 1085 to timing module 1084; After first roller 102 that roller roll detection module 1083 detects mouse began to roll, the rotating direction detection module constantly obtained the directional information that first roller rolls; Timing module 1084 calculates first roller 102 from having rolled the time interval of a last grid to next grid rolling pause of beginning; Timing module 1084 sends to analysis and processing module 1085 with the above-mentioned time interval and analyzes; Analysis and processing module 1085 is compared the above-mentioned time interval with stored threshold; As detect said interval greater than perhaps equaling this threshold values; Then obtain the directional information of the roller rolling of rotating direction detection module 1084 transmissions; Generate with window of switching of the corresponding order of these first roller, 102 rotating directions and instruct, this instruction sends in the computing machine 20 through instruction sending module, and a plurality of program windows of computing machine are accomplished a window and switched; If detect the said time interval less than described threshold values; Then can not generate window instruction of switching with the corresponding order of these first roller, 102 rotating directions; Continue to obtain timing module 1084 calculating first roller 102 and roll the time interval of pause to next grid of beginning, and analyze the time interval whether to be greater than or equal to described threshold values from the last grid that rolled.
After said first roller 102 stops to roll; Said window switch operating stops; Perhaps it makes up the instruction that does not all produce entering window switch mode to the signal of pushing of pushing signal and roll signal or other buttons of said second roller 105, can choose this window when clicking through left mouse button 106, thereby finish the window switch mode; When rolling first roller 102 once more, promptly get into the window switch mode and produce the instruction that window switches.
In the present embodiment, as shown in Figure 4, the method that a plurality of windows through these mouse 10 control computer 20 switch comprises the steps:
S1: detect the signal that first roller 102 rolls;
S2: after first roller 102 begins to roll, calculate since first roller 102 and rolled a last grid to the time interval that next grid rolls and pauses, the threshold values in the described time interval is set to 0.1s;
S3: obtain the described time interval and analysis;
S4: judge whether the said time interval is greater than or equal to certain threshold values;
S5: at every turn when detect described interval greater than or equal certain threshold values after, prepare to send the instruction of switching a window to computing machine 20, the instruction of this window switching is equal to click directionkeys on keyboard ↑ or the signal of directionkeys ↓ generation;
S6: after step S7, obtain the rotating direction of the last grid of first roller, 102 rollings, send the instruction of switching a window to computing machine 20, the order that said window switches is corresponding with the direction that this first roller rolls;
S7:, continue to calculate and detect first roller 102 and rolled a last grid to beginning the time interval that next grid rolling pauses when detecting the described time interval less than certain threshold values;
S8: wait for the roll signal that obtains first roller 102.
At last; Need to prove that the above embodiments are the explanations to claims of the present invention, and unrestricted, those skilled in the art is according to principle of the present invention and design; Combine embodiments of the invention again, can be easy to the improvement of arriving other of association and the technical scheme of distortion.No matter how it improves and is out of shape, if with principle of the present invention with conceive identical, all should be within protection scope of the present invention.