CN103838498B - The method and apparatus for realizing windows exchange - Google Patents
The method and apparatus for realizing windows exchange Download PDFInfo
- Publication number
- CN103838498B CN103838498B CN201410079175.6A CN201410079175A CN103838498B CN 103838498 B CN103838498 B CN 103838498B CN 201410079175 A CN201410079175 A CN 201410079175A CN 103838498 B CN103838498 B CN 103838498B
- Authority
- CN
- China
- Prior art keywords
- window
- virtual desktop
- mouse pointer
- desktop window
- behavior event
- 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
Landscapes
- User Interface Of Digital Computer (AREA)
- Digital Computer Display Output (AREA)
Abstract
The invention provides a kind of method and apparatus for realizing windows exchange.This method includes:The behavior event that capture mouse pointer is triggered in virtual desktop window;According to mouse pointer the behavior event of virtual desktop window judge whether adsorb virtual desktop window in mouse pointer, if it has not, then by mouse pointer remove virtual desktop window, by the window currently shown by virtual desktop windows exchange be local system desktop.The device includes:Mouse behavior trapping module, for capturing the behavior event that mouse pointer is triggered in virtual desktop window;Judge module is adsorbed, for the mouse pointer according to mouse pointer in the behavior event of virtual desktop window judges whether to adsorb virtual desktop window, if it is not, then notification window control module;Window controlling module by mouse pointer remove virtual desktop window, by the window currently shown by virtual desktop windows exchange be local system desktop.Operation bidirectional is avoided that using the present invention, simplifies the handoff procedure of window.
Description
Technical field
The present invention relates to Computer Applied Technology, more particularly to a kind of method and apparatus for realizing windows exchange.
Background technology
Under normal circumstances, in the operation interface that computer is provided, mouse pointer can same desktop different window
Moved freely between mouthful, still, because window present in operation interface further comprises virtual desktop window, for example, this is virtual
Desktop window can be virtual machine window, and wherein virtual machine window interior contains virtual machine desktop, therefore virtual machine window again
Border be border between desktop, mouse pointer can not be freely moved into and remove on desktop border.
To realize mouse pointer automatically moving using quickly by virtual desktop windows exchange as local system between desktop
Desktop, being required for user to trigger extra operation greatly can realize.
For example, it is necessary to user pins the button in keyboard when mouse pointer is moved into virtual desktop window edge, e.g.,
Ctrl+atl buttons, to generate Keyboard Message, virtual desktop window will allow mouse pointer after this Keyboard Message is received
Remove, to switch to local system desktop.
In addition, can also by providing menu interface in mouse pointer virtual desktop window edge, to eject prompting, according to
The current true intention of user is known in operation of the user in menu interface, and then is local system by virtual desktop windows exchange
Desktop.
However, due to needing user to trigger extra operation, and then make it that the switching of window is very cumbersome, it is very not simple
It is clean.
The content of the invention
Based on this, it is necessary to provide one kind and be avoided that operation bidirectional, the handoff procedure for simplifying window realizes windows exchange
Method.
In addition, there is a need to offer one kind is avoided that operation bidirectional, the handoff procedure for simplifying window realizes windows exchange
Device.
A kind of method for realizing windows exchange, comprises the following steps:
The behavior event that capture mouse pointer is triggered in virtual desktop window, to track the mouse pointer in virtual table
Behavior in face-port mouthful;
Judged whether according to behavior event of the mouse pointer in virtual desktop window in absorption virtual desktop window
Mouse pointer, if it has not, then
The mouse pointer is removed into the virtual desktop window, and the window currently shown is cut by virtual desktop window
It is changed to local system desktop.
In one of the embodiments, the step for the behavior event that the capture mouse pointer is triggered in virtual desktop window
Suddenly include:
Intercept the behavior thing that mouse pointer is triggered in the movement of virtual desktop window, click, dragging, shock window edge
Part, and receive the behavior event currently triggered.
In one of the embodiments, the behavior event according to the mouse pointer in virtual desktop window judges
The step of whether adsorbing the mouse pointer in virtual desktop window includes:
Obtain the corresponding time span of the behavior event and mouse pointer position;
Mouse pointer is obtained in virtual desktop window according to the mouse pointer position and corresponding time span computing
The rate feature at mouth edge;
Judge whether the rate feature that the computing is obtained is less than default boundary value, if it has not, then entering described by institute
State mouse pointer and remove the virtual desktop window, and be local system by virtual desktop windows exchange by the window currently shown
The step of desktop.
In one of the embodiments, the behavior event according to the mouse pointer in virtual desktop window judges
The step of whether inhaling the mouse pointer in virtual desktop window includes:
According to the movement of the mouse pointer, click on, pull, the behavior event for hitting window edge is counted, with
Knocking number of times of the mouse pointer to virtual desktop window edge in the unit interval;
Judge whether the knocking number of times is less than pre-set limit, if it has not, then the mouse pointer is removed into described
The virtual desktop window, and by the window currently shown by virtual desktop windows exchange be local system desktop the step of.
In one of the embodiments, the behavior event according to the mouse pointer in virtual desktop window judges
The step of whether adsorbing the mouse pointer in virtual desktop window includes:
Corresponding motion track is obtained according to behavior event of the mouse pointer in virtual desktop window;
Judge whether to adsorb the mouse pointer in presently described virtual desktop according to the motion track and default curve,
If it has not, then
Into described by the mouse pointer removal virtual desktop window, and by the window currently shown by virtual table
The step of face-port mouthful switches to local system desktop;
The default curve is to trigger current window by curve that virtual desktop windows exchange is local system desktop.
A kind of device for realizing windows exchange, including:
Behavior trapping module, for capturing the behavior event that mouse pointer is triggered in virtual desktop window, to track mouse
Mark behavior of the pointer in virtual desktop window;
Judge module is adsorbed, for judging whether to inhale according to behavior event of the mouse pointer in virtual desktop window
Mouse pointer in attached virtual desktop window, if it has not, then notification window control module;
The window controlling module is used to the mouse pointer removing the virtual desktop window, and will currently show
Window is local system desktop by virtual desktop windows exchange.
In one of the embodiments, the behavior event capturing module is additionally operable to intercept mouse pointer in virtual desktop window
Mouth is mobile, clicks on, pull, hit the behavior event triggered during window edge, and the behavior event that reception is currently triggered.
In one of the embodiments, the absorption judge module includes:
Mouse behavior acquiring unit, it is in place for obtaining the corresponding time span of the behavior event and mouse pointer institute
Put;
Characteristic operation unit, for obtaining mouse according to the mouse pointer position and corresponding time span computing
Rate feature of the pointer in virtual desktop window edge;
Feature judging unit, for judging whether the translational speed that the computing is obtained is less than default boundary value, if
It is no, then notify the window controlling module.
In one of the embodiments, the absorption judge module includes:
Statistic unit, for the movement according to the mouse pointer, click, dragging, the behavior event for hitting window edge
Counted, to obtain knocking number of times of the mouse pointer to virtual desktop window edge in the unit interval;
Frequency judging unit, for judging whether the knocking number of times is less than pre-set limit, if it has not, then notifying the window
Mouth control module.
In one of the embodiments, the absorption judge module includes:
Track acquiring unit, for being moved accordingly according to behavior event of the mouse pointer in virtual desktop window
Track
Curve judging unit, for judging whether to adsorb presently described void according to the motion track and default curve
Intend the mouse pointer in desktop, if it has not, then notifying the window controlling module;
The default curve is to trigger current window by curve that virtual desktop windows exchange is local system desktop.
The above-mentioned method and apparatus for realizing windows exchange, with movement of the mouse pointer in virtual desktop window, are clicked on,
Pull etc. operation, will capture mouse pointer behavior event, using behavior event of the mouse pointer in virtual desktop window as according to
According to, judge whether virtual desktop window adsorbs the mouse pointer in virtual desktop window, if it has not, then cause virtual desktop window
In mouse pointer remove so that the window that currently show by virtual desktop windows exchange is local system desktop, it is not necessary to
User triggers extra operation, the greatly simplified handoff procedure of window.
Brief description of the drawings
Fig. 1 is to realize the method flow diagram of windows exchange in one embodiment;
Fig. 2 is to judge whether that absorption is empty according to behavior event of the mouse pointer in virtual desktop window in one embodiment
Intend the method flow diagram of the mouse pointer in desktop window;
Fig. 3 be another embodiment according to behavior event of the mouse pointer in virtual desktop window judge whether absorption
The method flow diagram of mouse pointer in virtual desktop window;
Fig. 4 be another embodiment according to behavior event of the mouse pointer in virtual desktop window judge whether absorption
The method flow diagram of mouse pointer in virtual desktop window;
Fig. 5 be one embodiment in be nested in local system desktop virtual desktop window interface schematic diagram;
Fig. 6 is the interface schematic diagram for the virtual desktop window being displayed in full screen in one embodiment;
Fig. 7 is quickly moved out the interface schematic diagram of virtual desktop window for mouse pointer in one embodiment;
Fig. 8 is the interface schematic diagram of mouse pointer knocking virtual desktop window edge in one embodiment;
Fig. 9 is the interface schematic diagram of switching virtual desktop window in one embodiment;
Figure 10 passes through the interface display figure that mouse pointer draws assignment curve for user in one embodiment;
Figure 11 is to realize the structural representation of windows exchange device in one embodiment;
Figure 12 is the structural representation of absorption judge module in one embodiment;
Figure 13 is the structural representation of absorption judge module in another embodiment;
Figure 14 is the structural representation of absorption judge module in another embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Element and component in the description of specific distinct unless the context otherwise, the present invention, quantity both can be with single shape
Formula is present, and form that can also be multiple is present, and the present invention is defined not to this.Although the step in the present invention is entered with label
Arrangement is gone, but is not used to limit the precedence of step, unless expressly stated the order of step or holding for certain step
Row is needed based on other steps, and otherwise the relative rank of step is adjustable.It is appreciated that used herein
Term "and/or" is related to and covers one of associated Listed Items or one or more of any and all possible group
Close.
As shown in figure 1, in one embodiment, a kind of method for realizing windows exchange comprises the following steps:
Step S110, the behavior event that capture mouse pointer is triggered in virtual desktop window, is existed with tracking mouse pointer
Behavior in virtual desktop window.
In the present embodiment, virtual desktop window will be region that local system desktop is different from screen, contain difference
In another desktop of local system desktop, for example, virtual desktop window can be virtual machine window, the virtual machine window is contained
The desktop of virtual machine;Can also contain remote desktop in remote desktop window, remote desktop window.
As mouse pointer is in the movement of virtual desktop window, the behavior event of mouse pointer will be produced, to pass through behavior
Behavior operation of the event accurate tracking mouse pointer in virtual desktop window, in order to perceive user view.
In one embodiment, above-mentioned steps S110 detailed process is:Mouse pointer is intercepted to move in virtual desktop window
The behavior event triggered when dynamic, click, dragging, shock window edge, and receive the behavior event currently triggered.
In the present embodiment, intercept whether user triggers virtual desktop window, it is triggered listening to virtual desktop window
Afterwards, the behavior thing that the operations such as movement, click, dragging, shock window edge of the mouse pointer by currently triggering are produced will be received
Part, is that would know that current mouse pointer position and motion track according to the behavior event of mouse pointer, and then accurately sentence
Determine the intention of user.
Step S130, judges whether to adsorb virtual desktop window according to behavior event of the mouse pointer in virtual desktop window
Mouse pointer in mouthful, if it has not, then entering step S150, if it has, then terminating.
In the present embodiment, due to virtual desktop window and local system the desktop desktop that to be two different, accordingly, it would be desirable to root
Judge whether user is expected mouse pointer by virtual desktop window according to behavior event of the mouse pointer in virtual desktop window
Local system desktop is moved to, if it is not, then mouse pointer is adsorbed in virtual desktop window so that mouse pointer can only be in void
Intend moving in desktop window, and can not remove.
It is that would know that user view according to the state in mouse pointer moving process in virtual desktop window.Specifically, by
The motion track of mouse pointer obtains the state of mouse pointer in moving process in virtual desktop window, wherein, mouse pointer exists
The state of virtual desktop window may include mouse pointer in the rate feature of virtual desktop window edge, mouse pointer to virtual table
Curve corresponding to the knocking number of times and mouse pointer motion track of face window edge etc., so according to any of which state or
Person judges user view according at least one state therein so that mouse pointer is anticipated in the removal of virtual desktop window with user
Figure is mutually pressed close to, and drastically increases the operational convenience of user.
Step S150, virtual desktop window is removed by mouse pointer, and by the window currently shown by virtual desktop window
Switch to local system desktop.
In the present embodiment, if determining the mouse currently triggered according to behavior event of the mouse pointer in virtual desktop window
Mark pointer movement to expect to remove virtual desktop window, then control the movement of mouse pointer so that it is moved in local system desktop,
And then realize the switching between virtual desktop window and local system desktop.
As shown in Fig. 2 in one embodiment, above-mentioned steps S130 includes:
Step S131a, obtains the corresponding time span of behavior event and mouse pointer position.
In the present embodiment, acquired time span is that mouse pointer completes mobile required in virtual desktop window
The time of consuming.Specifically, the time as initial time corresponding to the behavior event produced when mouse pointer is moved, mouse
The time corresponding to behavior event that mark pointer is produced when stopping mobile is the termination time, now, when terminating time and starting
Between between difference be corresponding time span.
Current location can be obtained by the behavior event of mouse pointer, the mouse when position is current generation behavior event
Pointer position.
Step S133a, mouse pointer is obtained virtual according to mouse pointer position and corresponding time span computing
The rate feature at desktop window edge.
In the present embodiment, rate feature can be speed, speed or the acceleration corresponding to motion track, if for example,
Rate feature is the speed corresponding to motion track, then can be by formula
Calculating is obtained, and wherein v is the speed corresponding to motion track, and μ is correction value, and P is coordinate, TnTo terminate time, T1During for starting
Between;If rate feature is the speed corresponding to motion track, can be by formulaCalculating is obtained;If rate feature
, then can be by formula for accelerationCalculating is obtained.
Step S135a, judges whether the rate feature that computing is obtained is less than default boundary value, if it has not, then entering step
Rapid S150, if it has, then terminating.
In the present embodiment, when the rate feature obtained by determining computing is more than or equal to default boundary value, say
Understand that current mouse pointer there occurs very fast movement, very fast movement still carried out in virtual desktop window edge mouse pointer,
Therefore, virtual desktop window edge is not outside the final position that user carries out mouse pointer movement, virtual desktop window
A certain position on local system desktop is only the final position that user carries out mouse pointer movement, now, will enter step
In S150, by mouse pointer remove virtual desktop window, by current window by virtual desktop windows exchange be local system table
Face.
If the rate feature obtained by determining computing is less than default boundary value, illustrate the mouse that user is triggered
Pointer moves and need not remove virtual desktop window, therefore, then terminates process as above, makes mouse pointer in virtual desktop window
Arbitrarily moved in mouthful, without removing virtual desktop window.
As shown in figure 3, in another embodiment, above-mentioned steps S130 includes:
Step S131b, is united according to the behavior event of the movement of mouse pointer, click, dragging, shock window edge
Meter, to obtain knocking number of times of the mouse pointer to virtual desktop window edge in the unit interval.
In the present embodiment, in virtual desktop window edge, virtual desktop window edge can also be carried out by mouse pointer
Knocking number of times in unit interval corresponding to knocking is counted, to pass through the knocking time in the unit interval obtained by statistics
Number perceives user view.
Specifically, can be according to the movement in virtual desktop window of mouse pointer, click, dragging, shock window edge
Mouse pointer position corresponding to this behavior event is obtained with virtual desktop window edge in list Deng behavior event statistics
The number of intersections produced in the time of position, the number of intersections is the knocking number of times in the unit interval.
Step S133b, judges whether knocking number of times is less than pre-set limit, if it has not, then enter step S150, if it is,
Then terminate.
In the present embodiment, if determining knocking number of times less than pre-set limit, illustrate mouse pointer to virtual desktop window
Knocking be user's inadvertent free, therefore, mouse pointer is limited in virtual desktop window;If it is big to determine knocking number of times
In or equal to pre-set limit, then illustrate that user expects mouse pointer removing virtual desktop window.
As shown in figure 4, in another embodiment, above-mentioned steps S130 includes:
Step S131c, corresponding motion track is obtained according to behavior event of the mouse pointer in virtual desktop window.
In the present embodiment, with several behavior things corresponding to lasting movement of the mouse pointer in virtual desktop window
Part obtains the corresponding mouse pointer position of each behavior event, and then obtains mouse pointer shifting by mouse pointer position
Motion track during dynamic.
Step S133c, judges whether to adsorb in presently described virtual desktop according to motion track and default curve
Mouse pointer, if it has not, then entering step S150, if it has, then terminating.
In the present embodiment, it is local system desktop that can also pre-set triggering current window by virtual desktop windows exchange
Curve, wherein, the curve is to trigger current window by the curve that virtual desktop windows exchange is local system desktop, for example, should
Curve can be the circle or " Z " word of virtual desktop window, can also be in rolling moving curve of virtual desktop window etc., herein
Do not enumerated one by one.
When determining motion track of the mouse pointer in virtual desktop window and being consistent with the curve, illustrate that user expects
Mouse pointer is removed into virtual desktop window, now, step S150 will be entered and remove mouse pointer from virtual desktop window, entered
And realize the switching of current window;If determining motion track of the mouse pointer in virtual desktop window and the curve not phase
Symbol, then cause mouse pointer to be only limitted to move in virtual desktop window.
The above-mentioned method for realizing windows exchange is elaborated with reference to a specific embodiment.In the embodiment,
Virtual desktop window 510 can be nested in inside local system desktop 530, as shown in Figure 5;Also it can be displayed in full screen, completely covers
Local system desktop 530, as shown in Figure 6.
With movement of the mouse pointer conducted in virtual desktop window 510, the behavior thing corresponding to it will be captured
Part, in order to perceive user view according to behavior event, is referred to determining whether to adsorb the mouse in virtual desktop window 510
Pin.
Specifically, by the time span corresponding to acquisition behavior event and mouse pointer position, to be referred to according to mouse
Pin position and corresponding time span obtain rate feature of the mouse pointer at the edge of virtual desktop window 510, Jin Er
Determine the rate feature to be more than or equal under the situation of default boundary value, mouse pointer is removed into virtual desktop window
510, and the window currently shown is switched into local system desktop 530 by virtual desktop window 510.
That is, in the moving process of mouse pointer, as shown in fig. 7, mouse pointer movement can not then remove void slowly
Intend desktop window 510, mouse pointer movement can remove virtual desktop window 510 soon.In preferred implementation, this judged
Journey will be embedded under the scene of local system desktop in virtual desktop window 510 and obtain preferable effect.
In addition, also can mouse pointer is to the knocking number of times at the edge of virtual desktop window 510 in the statistical unit time, to judge
Whether knocking number of times is less than pre-set limit, for example, the pre-set limit can be 2, is greater than or equal to if determining knocking number of times
Pre-set limit, for example, as shown in figure 8, virtual desktop window 510 is displayed in full screen, to cover local system desktop, now,
It is 2 to the knocking number of times at the edge of virtual desktop window 510 to count mouse pointer in the obtained unit interval, equal to pre-set limit,
Therefore, mouse pointer is removed into virtual desktop window 510, virtual desktop window 510 is minimized, as shown in Figure 9.
In addition, user can also by virtual desktop window 510 draw assignment curve realize mouse pointer removal and
The switching of window, as shown in Figure 10.
Specifically, motion track of the mouse pointer in virtual desktop window 510 and default curve are compared, with
Judge whether both are consistent, if it has, then mouse pointer is removed by virtual desktop window 510, and minimize full screen display
Virtual desktop window 510, to show local system desktop 530.
By process as described above, it will make it that the switching between virtual desktop window 510 and local system desktop 530 can
Applied in a variety of system versions and platform, greatly improved compatibility and convenience.
As shown in figure 11, in one embodiment, a kind of device for realizing windows exchange, including behavior trapping module 110,
Adsorb judge module 130 and window controlling module 150.
Behavior trapping module 110, for capturing the behavior event that mouse pointer is triggered in virtual desktop window, to track
Behavior of the mouse pointer in virtual desktop window.
In the present embodiment, virtual desktop window will be region that local system desktop is different from screen, contain difference
In another desktop of local system desktop, for example, virtual desktop window can be virtual machine window, the virtual machine window is contained
The desktop of virtual machine;Can also contain remote desktop in remote desktop window, remote desktop window.
As mouse pointer is in the movement of virtual desktop window, the behavior event of mouse pointer will be produced, to pass through behavior
Behavior operation of the event accurate tracking mouse pointer in virtual desktop window, in order to perceive user view.
In one embodiment, behavior trapping module 110 is additionally operable to intercept mouse pointer in the movement of virtual desktop window, point
Hit, pull, hitting the behavior event triggered during window edge, and receiving the behavior event currently triggered.
In the present embodiment, behavior trapping module 110 intercepts whether user triggers virtual desktop window, is listening to virtual table
After face-port mouth is triggered, the behaviour such as movement, click, dragging, shock window edge of the mouse pointer by currently triggering will be received
Make the behavior event produced, be that would know that current mouse pointer position and moving rail according to the behavior event of mouse pointer
Mark, and then the accurate intention for judging user.
Judge module 130 is adsorbed, for judging whether to inhale according to behavior event of the mouse pointer in virtual desktop window
Mouse pointer in attached virtual desktop window, if it has not, then notification window control module 150, if it has, then stopping performing.
In the present embodiment, due to virtual desktop window and local system the desktop desktop that to be two different, accordingly, it would be desirable to inhale
Attached judge module 130 judges whether user is expected mouse pointer according to behavior event of the mouse pointer in virtual desktop window
Local system desktop is moved to by virtual desktop window, if it is not, then mouse pointer is adsorbed in virtual desktop window so that mouse
Mark pointer can only be moved in virtual desktop window, and can not be removed.
It is that would know that user according to the state in mouse pointer moving process in virtual desktop window to adsorb judge module 130
It is intended to.Specifically, the state of mouse pointer in moving process in virtual desktop window is obtained by the motion track of mouse pointer, its
In, mouse pointer may include rate feature of the mouse pointer in virtual desktop window edge, mouse in the state of virtual desktop window
Mark refers to for curve corresponding to the knocking number of times and mouse pointer motion track of virtual desktop window edge etc., and then adsorbs
Judge module 130 judges user view according to any of which state or according at least one state therein so that mouse refers to
Pin is mutually pressed close in the removal of virtual desktop window with user view, drastically increases the operational convenience of user.
Window controlling module 150, for mouse pointer to be removed into virtual desktop window, and by the window currently shown by void
Intend desktop window and switch to local system desktop.
In the present embodiment, if being sentenced according to behavior event absorption judge module 130 of the mouse pointer in virtual desktop window
Break to the mouse pointer movement currently triggered and expect to remove virtual desktop window, then the control of window controlling module 150 mouse pointer
Movement so that it is moved in local system desktop, and then realizes the switching between virtual desktop window and local system desktop.
As shown in figure 12, in one embodiment, above-mentioned absorption judge module 130 includes mouse behavior acquiring unit
131a, characteristic operation unit 133a and feature judging unit 135a.
Mouse behavior acquiring unit 131a, it is in place for obtaining the corresponding time span of behavior event and mouse pointer institute
Put.
In the present embodiment, acquired time span is that mouse pointer completes mobile required in virtual desktop window
The time of consuming.Specifically, mouse behavior acquiring unit 131a will record the behavior event produced when mouse pointer is moved
Corresponding time, the time is initial time, and corresponding to the behavior event produced when mouse pointer stops mobile
Time is the termination time, now, and the difference between termination time and initial time is the corresponding time span of motion track.
Mouse behavior acquiring unit 131a can obtain current location by the behavior event of mouse pointer, and the position is to work as
Mouse pointer position during preceding generation behavior event.
Characteristic operation unit 133a, for obtaining mouse according to mouse pointer position and corresponding time span computing
Rate feature of the pointer in virtual desktop window edge.
In the present embodiment, rate feature can be speed corresponding to motion track, speed or
Acceleration, if for example, rate feature is the speed corresponding to motion track, characteristic operation unit 133a can be by formulaCalculating obtains the speed corresponding to motion track, and wherein v is shifting
Speed corresponding to dynamic rail mark, μ is correction value, and P is coordinate, TnTo terminate time, T1For initial time;If rate feature is shifting
Speed corresponding to dynamic rail mark, then can be by formulaCalculating obtains the speed corresponding to motion track;If speed is special
Levy as acceleration, then can be by formulaCalculating obtains acceleration.
Feature judging unit 135a, for judging whether the translational speed that computing is obtained is less than default boundary value, if
It is no, then notification window control module 150, if it has, then stopping performing.
In the present embodiment, it is more than or equal in the feature judging unit 135a rate features determined obtained by computing pre-
If boundary value when, illustrate that current mouse pointer there occurs very fast movement, in virtual desktop window edge mouse pointer still
Very fast movement is carried out, therefore, virtual desktop window edge is not the final position that user carries out mouse pointer movement, virtually
The a certain position on local system desktop outside desktop window is only the final position that user carries out mouse pointer movement, this
When, by notification window control module 150, mouse pointer is removed into virtual desktop window, by current window by virtual desktop window
Mouth switches to local system desktop.
If the rate feature that feature judging unit 135a is determined obtained by computing is less than default boundary value, illustrate
The mouse pointer that user is triggered moves and need not remove virtual desktop window, therefore, then terminates process as above, makes mouse
Pointer is arbitrarily moved in virtual desktop window, without removing virtual desktop window.
As shown in figure 13, in another embodiment, above-mentioned absorption judge module 130 includes statistic unit 131b and number of times
Judging unit 133b.
Statistic unit 131b, for the movement according to mouse pointer, click, dragging, the behavior event for hitting window edge
Counted, to obtain knocking number of times of the mouse pointer to virtual desktop window edge in the unit interval.
In the present embodiment, in virtual desktop window edge, statistic unit 131b can also be by mouse pointer to virtual desktop
The knocking number of times that window edge was carried out in the unit interval corresponding to knocking is counted, during with by unit obtained by statistics
Interior knocking number of times perceives user view.
Specifically, statistic unit 131b can according to the movement in virtual desktop window of mouse pointer, click, dragging,
Hit the behavior event statistics such as window edge and obtain the mouse pointer position corresponding to this behavior event and virtual desktop
The number of intersections that window edge is produced within the unit interval, the number of intersections is the knocking number of times in the unit interval.
Frequency judging unit 133b, for judging whether knocking number of times is less than pre-set limit, if it has not, then notification window control
Molding block 150, if it has, then stopping performing.
In the present embodiment, if frequency judging unit 133b determines knocking number of times less than pre-set limit, illustrate that mouse refers to
Knocking for virtual desktop window is user's inadvertent free, and therefore, mouse pointer is limited in virtual desktop window;If
Knocking number of times is determined more than or equal to pre-set limit, then illustrates that user expects mouse pointer removing virtual desktop window.
As shown in figure 14, in another embodiment, above-mentioned absorption judge module 130 includes:
Track acquiring unit 131c, for being obtained accordingly according to behavior event of the mouse pointer in virtual desktop window
Motion track.
In the present embodiment, with several behavior things corresponding to lasting movement of the mouse pointer in virtual desktop window
Part obtains the corresponding mouse pointer position of each behavior event, track acquiring unit 131c and then in place by mouse pointer institute
Put the motion track obtained in mouse pointer moving process.
Curve judging unit 133c, for judging whether that absorption is presently described virtual according to motion track and default curve
Mouse pointer in desktop, if it has not, then notification window control module 150, if it has, then stopping performing.
In the present embodiment, it is local system desktop that can also pre-set triggering current window by virtual desktop windows exchange
Curve, the curve is to trigger current window by the curve that virtual desktop windows exchange is local system desktop, for example, the curve can
To be the circle or " Z " word of virtual desktop window, it can also be in rolling moving curve of virtual desktop window etc., herein not one by one
Enumerated.
Motion track of the mouse pointer in virtual desktop window is determined in absorption judge module 130 with the curve to be consistent
When, illustrate that user expects mouse pointer removing virtual desktop window, now, notification window control module 150 is referred to mouse
Pin is removed from virtual desktop window, and then realizes the switching of current window;If determining mouse pointer in virtual desktop window
Motion track be not consistent with the curve, then cause mouse pointer be only limitted to move in virtual desktop window.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously
Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of method for realizing windows exchange, comprises the following steps:
The behavior event that capture mouse pointer is triggered in virtual desktop window, to track the mouse pointer in virtual desktop window
Behavior in mouthful, wherein, the behavior event refers to mouse pointer in the movement of the virtual desktop window, in the virtual table
Setting motion track of the knocking or mouse pointer of face window edge in the virtual desktop window;
Judged whether to adsorb the mouse in virtual desktop window according to behavior event of the mouse pointer in virtual desktop window
Pointer is marked, if it has not, then
The mouse pointer is removed into the virtual desktop window, and is by virtual desktop windows exchange by the window currently shown
Local system desktop;
If it has, then the mouse pointer is adsorbed in virtual desktop window.
2. according to the method described in claim 1, it is characterised in that the capture mouse pointer is triggered in virtual desktop window
Behavior event the step of include:
The behavior event that mouse pointer is triggered in the movement of virtual desktop window, click, dragging, shock window edge is intercepted, and
Receive the behavior event currently triggered.
3. according to the method described in claim 1, it is characterised in that it is described according to the mouse pointer in virtual desktop window
Behavior event judge whether adsorb virtual desktop window in mouse pointer the step of include:
Obtain the corresponding time span of the behavior event and mouse pointer position;
Mouse pointer is obtained in virtual desktop edge of window according to the mouse pointer position and corresponding time span computing
The rate feature of edge;
Judge whether the rate feature that the computing is obtained is less than default boundary value, if it has not, then entering described by the mouse
Mark pointer and remove the virtual desktop window, and be local system desktop by virtual desktop windows exchange by the window currently shown
The step of.
4. according to the method described in claim 1, it is characterised in that it is described according to the mouse pointer in virtual desktop window
Behavior event judge whether adsorb virtual desktop window in mouse pointer the step of include:
Counted according to the behavior event of the movement of the mouse pointer, click, dragging, shock window edge, to obtain list
Knocking number of times of the mouse pointer to virtual desktop window edge in the time of position;
Judge whether the knocking number of times is less than pre-set limit, if it has not, then entering described that mouse pointer removal is described
Virtual desktop window, and by the window currently shown by virtual desktop windows exchange be local system desktop the step of.
5. according to the method described in claim 1, it is characterised in that it is described according to the mouse pointer in virtual desktop window
Behavior event judge whether adsorb virtual desktop window in mouse pointer the step of include:
Corresponding motion track is obtained according to behavior event of the mouse pointer in virtual desktop window;
Judge whether to adsorb the mouse pointer in presently described virtual desktop according to the motion track and default curve, if
It is no, then
Into described by the mouse pointer removal virtual desktop window, and by the window currently shown by virtual desktop window
The step of mouth switches to local system desktop;
The default curve is to trigger current window by curve that virtual desktop windows exchange is local system desktop.
6. a kind of device for realizing windows exchange, it is characterised in that including:
Behavior trapping module, for capturing the behavior event that mouse pointer is triggered in virtual desktop window, to track the mouse
Behavior of the pointer in virtual desktop window is marked, wherein, the behavior event refers to mouse pointer in the virtual desktop window
Movement, the virtual desktop window edge knocking or mouse pointer the virtual desktop window setting moving rail
Mark;
Judge module is adsorbed, for judging whether that absorption is empty according to behavior event of the mouse pointer in virtual desktop window
Intend the mouse pointer in desktop window, if it has not, then notification window control module;If it has, then the mouse pointer is adsorbed
In virtual desktop window;
The window controlling module is used to the mouse pointer removing the virtual desktop window, and by the window currently shown
It is local system desktop by virtual desktop windows exchange.
7. device according to claim 6, it is characterised in that the behavior trapping module, which is additionally operable to intercept mouse pointer, to exist
The behavior event triggered when the movement of virtual desktop window, click, dragging, shock window edge, and receive the behavior currently triggered
Event.
8. device according to claim 6, it is characterised in that the absorption judge module includes:
Mouse behavior acquiring unit, for obtaining the corresponding time span of the behavior event and mouse pointer position;
Characteristic operation unit, for obtaining mouse pointer according to the mouse pointer position and corresponding time span computing
In the rate feature of virtual desktop window edge;
Feature judging unit, for judging whether the translational speed that the computing is obtained is less than default boundary value, if it has not, then
Notify the window controlling module.
9. device according to claim 6, it is characterised in that the absorption judge module includes:
Statistic unit, for the movement according to the mouse pointer, click, dragging, the behavior event progress for hitting window edge
Statistics, to obtain knocking number of times of the mouse pointer to virtual desktop window edge in the unit interval;
Frequency judging unit, for judging whether the knocking number of times is less than pre-set limit, if it has not, then notifying the window control
Molding block.
10. device according to claim 6, it is characterised in that the absorption judge module includes:
Track acquiring unit, for obtaining corresponding moving rail according to behavior event of the mouse pointer in virtual desktop window
Mark;
Curve judging unit, for judging whether to adsorb presently described virtual desktop according to the motion track and default curve
In mouse pointer, if it has not, then notifying the window controlling module;
The default curve is to trigger current window by curve that virtual desktop windows exchange is local system desktop.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410079175.6A CN103838498B (en) | 2014-03-05 | 2014-03-05 | The method and apparatus for realizing windows exchange |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410079175.6A CN103838498B (en) | 2014-03-05 | 2014-03-05 | The method and apparatus for realizing windows exchange |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103838498A CN103838498A (en) | 2014-06-04 |
CN103838498B true CN103838498B (en) | 2017-08-25 |
Family
ID=50802060
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410079175.6A Active CN103838498B (en) | 2014-03-05 | 2014-03-05 | The method and apparatus for realizing windows exchange |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103838498B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104090944B (en) * | 2014-06-30 | 2018-09-11 | 北京金山安全软件有限公司 | Method and device for switching browser window content |
CN105022660A (en) * | 2015-07-07 | 2015-11-04 | 国鼎网络空间安全技术有限公司 | Virtual machine switching method and system |
CN106528012A (en) * | 2015-09-10 | 2017-03-22 | 微窗科技股份有限公司 | Seamless switching method and system for computer hosts |
CN109710343B (en) * | 2017-10-25 | 2023-01-17 | 北京众纳鑫海网络技术有限公司 | Method, device and equipment for switching windows of computer desktop and storage medium |
CN110134897B (en) * | 2019-04-10 | 2022-02-08 | 口碑(上海)信息技术有限公司 | Browser window control method and device |
CN113672151A (en) * | 2020-05-15 | 2021-11-19 | 致伸科技股份有限公司 | Virtual desktop control method |
TWI757762B (en) * | 2020-06-04 | 2022-03-11 | 宏正自動科技股份有限公司 | Multi-window switching method and switching system |
CN116710883A (en) * | 2021-11-25 | 2023-09-05 | 广州视源电子科技股份有限公司 | Window display control method, device, display device and storage medium |
CN114691228A (en) * | 2022-04-24 | 2022-07-01 | 锐捷网络(苏州)有限公司 | Method and system for redirecting external equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075174A (en) * | 2007-06-15 | 2007-11-21 | 魏新成 | Method for operating functions by extended task column on left edge of computer screen |
CN101561743A (en) * | 2008-04-17 | 2009-10-21 | 宏达国际电子股份有限公司 | Background picture switching method under screen locking state and mobile electronic device thereof |
CN101770399A (en) * | 2009-01-05 | 2010-07-07 | 联想(北京)有限公司 | Electronic equipment, method and device for switching operating system desktop |
CN102298502A (en) * | 2011-09-26 | 2011-12-28 | 鸿富锦精密工业(深圳)有限公司 | Touch type electronic device and icon page-switching method |
CN102662506A (en) * | 2012-03-07 | 2012-09-12 | 中兴通讯股份有限公司 | Method for terminal touch control and terminal |
CN103164126A (en) * | 2013-02-25 | 2013-06-19 | 联宝(合肥)电子科技有限公司 | Method for avoiding misoperation of mouse on main interface and expansion interface |
-
2014
- 2014-03-05 CN CN201410079175.6A patent/CN103838498B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075174A (en) * | 2007-06-15 | 2007-11-21 | 魏新成 | Method for operating functions by extended task column on left edge of computer screen |
CN101561743A (en) * | 2008-04-17 | 2009-10-21 | 宏达国际电子股份有限公司 | Background picture switching method under screen locking state and mobile electronic device thereof |
CN101770399A (en) * | 2009-01-05 | 2010-07-07 | 联想(北京)有限公司 | Electronic equipment, method and device for switching operating system desktop |
CN102298502A (en) * | 2011-09-26 | 2011-12-28 | 鸿富锦精密工业(深圳)有限公司 | Touch type electronic device and icon page-switching method |
CN102662506A (en) * | 2012-03-07 | 2012-09-12 | 中兴通讯股份有限公司 | Method for terminal touch control and terminal |
CN103164126A (en) * | 2013-02-25 | 2013-06-19 | 联宝(合肥)电子科技有限公司 | Method for avoiding misoperation of mouse on main interface and expansion interface |
Also Published As
Publication number | Publication date |
---|---|
CN103838498A (en) | 2014-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103838498B (en) | The method and apparatus for realizing windows exchange | |
CN107045420B (en) | Application program switching method, mobile terminal and storage medium | |
CN104967803B (en) | A kind of video recording method and device | |
US10929013B2 (en) | Method for adjusting input virtual keyboard and input apparatus | |
US20170123625A1 (en) | Method, device, apparatus and computer-readable medium for application switching | |
CN104049866A (en) | Mobile terminal and method and device for achieving screen splitting of mobile terminal | |
EP2813930A1 (en) | Terminal reselection operation method and terminal | |
EP3623923A1 (en) | Method and corresponding apparatus for displaying arc menu index | |
US20200210061A1 (en) | Method, device and storage medium for sharing multimedia resource | |
DE202012007707U1 (en) | Apparatus for providing a user interface on a device displaying content operators | |
KR20150079829A (en) | Gesture-based conversation processing method, apparatus, and terminal device | |
CN104536650B (en) | A kind of parallax page turning man-machine interaction method based on IOS systems | |
CN103916593A (en) | Apparatus and method for processing image in a device having camera | |
CN103365588A (en) | Touch screen operation processing method and touch equipment | |
CN105892635A (en) | Image capture realization method and apparatus as well as electronic device | |
CN110069178A (en) | Interface control method and terminal device | |
EP3461136A1 (en) | Video playing method and device | |
CN105511782B (en) | A kind of game command processing method and processing device | |
CN105413171A (en) | Game character moving control method and device | |
CN106775666A (en) | A kind of application icon display methods and terminal | |
CN104936003B (en) | A kind of screenshot method and device | |
CN104978030B (en) | The software and method of display interface of mobile phone are automatically adjusted based on right-hand man | |
US20170269809A1 (en) | Method for screen capture and electronic device | |
CN110221765A (en) | A kind of video file broadcasting method, device, storage medium and terminal | |
CN104932772B (en) | The application display method and device of smartwatch |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Nanshan District Xueyuan Road in Shenzhen city of Guangdong province 518000 No. 1001 Nanshan Chi Park building A1 layer Applicant after: SINFOR Polytron Technologies Inc Address before: 518000 room 410-413, technology innovation service center, 1 Qilin Road, Shenzhen, Guangdong, Nanshan District Applicant before: Shenxinfu Electronics Science and Technology Co., Ltd., Shenzhen |
|
GR01 | Patent grant | ||
GR01 | Patent grant |