CN110456932A - A kind of mouse switching method and device - Google Patents

A kind of mouse switching method and device Download PDF

Info

Publication number
CN110456932A
CN110456932A CN201910730379.4A CN201910730379A CN110456932A CN 110456932 A CN110456932 A CN 110456932A CN 201910730379 A CN201910730379 A CN 201910730379A CN 110456932 A CN110456932 A CN 110456932A
Authority
CN
China
Prior art keywords
display box
mouse
relative coordinate
coordinate
critical value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910730379.4A
Other languages
Chinese (zh)
Other versions
CN110456932B (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.)
Wuhan Anchenxin Information Technology Co ltd
Original Assignee
Vtron Group Co Ltd
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 Vtron Group Co Ltd filed Critical Vtron Group Co Ltd
Priority to CN201910730379.4A priority Critical patent/CN110456932B/en
Publication of CN110456932A publication Critical patent/CN110456932A/en
Application granted granted Critical
Publication of CN110456932B publication Critical patent/CN110456932B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03543Mice or pucks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

The present invention provides a kind of mouse switching method and device, coordinate of the mouse in current display box is obtained in real time, determine relative coordinate when mouse moves in current display box each time, judge whether the transverse and longitudinal coordinate in relative coordinate is greater than threshold value greater than the number of critical value, or whether the transverse and longitudinal coordinate in relative coordinate is greater than threshold value less than the number of the negative of critical value, obtain judging result, mouse is switched into target display box from current display box based on judging result, the corresponding left side screen of target display box, right side screen, the controlled PC of downside screen or upside screen, determine mouse message of the mouse in target display box, and mouse message is sent to collector corresponding with target display box, make collector that mouse message is sent to controlled PC.Switching control can also be carried out by a set of mouse on multiple display boxes by being implemented without on controlled PC installation software, so that user is not limited to one display box of control, pass through the more information of the multiple display boxes acquisitions of control.

Description

A kind of mouse switching method and device
Technical field
The invention belongs to field of computer technology, and in particular to a kind of mouse switching method and device.
Background technique
With the progress of science and technology, in computer science and technology field, information-based degree is higher and higher, is used alone One computer cannot be satisfied with the demand that people control single computer, need simultaneously to control more controlled computers System.Therefore a set of KVM (Keyboard Video Mouse, keyboard, display, mouse) equipment is needed, and in controlled computer The corresponding software of upper installation, when to control a computer, the software is according to the absolute coordinate of transmission, so that the mouse control electricity Brain.
Although, can be individual by a set of KVM (Keyboard Video Mouse, keyboard, display, mouse) equipment Multiple computers are controlled, but need that corresponding software is installed on controlled computer, it is therefore desirable to which a kind of control switching method is not required to Can also multiple computers be controlled by software being installed on controlled computer.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of mouse switching method and device, for realizing not needing Software is installed on controlled computer can also switch over control by a set of mouse to multiple computers.Technical solution is as follows:
The present invention provides a kind of mouse switching method, is suitable for switching system, and the switching system includes display box, acquisition Device and interchanger, each display box are correspondingly connected with a collector, which comprises
Coordinate of the mouse in current display box is obtained in real time;
Determine that the relative coordinate when mouse moves in the current display box each time, the relative coordinate are institute State the difference of mouse previous coordinate and changing coordinates;
Judge whether the transverse and longitudinal coordinate in the relative coordinate is greater than threshold value or the opposite seat greater than the number of critical value Whether the number for the negative that the transverse and longitudinal coordinate in mark is less than critical value is greater than the threshold value, obtains judging result;
The mouse is switched into target display box from current display box based on judging result, the target display box is corresponding Left side screen, right side screen, downside screen or upside screen controlled PC;
Determine mouse message of the mouse in the target display box, and by the mouse message be sent to it is described The corresponding collector of target display box makes the collector that the mouse message is sent to controlled PC, and the mouse message is extremely It less include the changing coordinates of mouse in the ID value and the target display box of the target display box.
Preferably, described to be shown if so, the coordinate of the mouse is switched to target from current display box based on judging result Show box, comprising:
If the judging result is that the abscissa in the relative coordinate is greater than the number of the critical value greater than the threshold The mouse is switched to the target display box for the controlled PC that corresponding right side is shielded by value from the current display box;
If the judging result is that the number for the negative that the abscissa in the relative coordinate is less than the critical value is greater than The mouse is switched to the target display box for the controlled PC that corresponding left side is shielded by the threshold value from the current display box;
If the judging result is that the ordinate in the relative coordinate is greater than the number of the critical value greater than the threshold The mouse is switched to the target display box for the controlled PC that corresponding downside is shielded by value from the current display box;
If the judging result is that the number for the negative that the ordinate in the relative coordinate is less than the critical value is greater than The mouse is switched to the target display box for the controlled PC that corresponding upside is shielded by the threshold value from the current display box.
Preferably, the method also includes:
If the judging result is less than the critical value for the abscissa in the relative coordinate at least once, alternatively, Abscissa in the relative coordinate is greater than the negative of the critical value at least once, alternatively, vertical in the relative coordinate Coordinate is less than the critical value at least once, alternatively, the ordinate in the relative coordinate is greater than described face at least once The negative of dividing value controls the mouse without switching display box.
Preferably, mouse message of the determination mouse in the target display box, and by the mouse message It is sent to collector corresponding with the target display box, makes the collector that the mouse message is sent to controlled PC, is wrapped It includes:
Determine mouse message of the mouse in the target display box, and by the mouse message be sent to it is described The corresponding collector of target display box;
Judge whether the ID value of the target display box in the mouse message matches with the ID value of the collector;
If so, making the collector that the mouse message is sent to controlled PC.
Preferably, the method also includes: the switching system by the interchanger make the target display box with The collector interacts.
The present invention also provides a kind of mouse switching devices, are suitable for switching system, and the switching system includes display box, adopts Storage and interchanger, each display box are correspondingly connected with a collector, and described device includes:
Module is obtained, for obtaining coordinate of the mouse in current display box in real time;
Determining module, relative coordinate when for determining that the mouse moves in the current display box each time, institute State the difference that relative coordinate is the mouse previous coordinate and changing coordinates;
Judgment module, for judging whether the transverse and longitudinal coordinate in the relative coordinate is greater than threshold greater than the number of critical value Whether the number for the negative that the transverse and longitudinal coordinate in value or the relative coordinate is less than critical value is greater than the threshold value, is judged As a result;
Switching module, it is described for the mouse to be switched to target display box from current display box based on judging result The controlled PC of the corresponding left side screen of target display box, right side screen, downside screen or upside screen;
Sending module, for determining the mouse message in the target display box, and by the mouse message be sent to The corresponding collector of the target display box, makes the collector that the mouse message is sent to controlled PC.
Preferably, the switching module, comprising:
First switch unit, if being greater than the critical value for the judging result for the abscissa in the relative coordinate Number be greater than the threshold value, the mouse is shown from the target that the current display box switches to the controlled PC that corresponding right side is shielded Show box;
Second switch unit, if being less than the critical value for the judging result for the abscissa in the relative coordinate The number of negative be greater than the threshold value, the mouse is switched to controlled PC's that corresponding left side is shielded from the current display box Target display box;
Third switch unit, if being greater than the critical value for the judging result for the ordinate in the relative coordinate Number be greater than the threshold value, the mouse is shown from the target that the current display box switches to the controlled PC that corresponding downside is shielded Show box;
4th switch unit, if being less than the critical value for the judging result for the ordinate in the relative coordinate The number of negative be greater than the threshold value, the mouse is switched to controlled PC's that corresponding upside is shielded from the current display box Target display box.
Preferably, the switching module, further includes:
Control unit, if it is described to be that abscissa in the relative coordinate is less than at least once for the judging result Critical value, alternatively, the abscissa in the relative coordinate is greater than the negative of the critical value at least once, alternatively, the phase The critical value is less than at least once to the ordinate in coordinate, alternatively, the ordinate in the relative coordinate at least one The secondary negative greater than the critical value controls the mouse without switching display box.
Preferably, the switching module, further includes:
Control unit, if it is described to be that abscissa in the relative coordinate is less than at least once for the judging result Critical value, alternatively, the abscissa in the relative coordinate is greater than the negative of the critical value at least once, alternatively, the phase The critical value is less than at least once to the ordinate in coordinate, alternatively, the ordinate in the relative coordinate at least one The secondary negative greater than the critical value controls the mouse without switching display box.
Preferably, described device further include: interactive module is made for the switching system by the interchanger described Target display box is interacted with the collector.
Compared with prior art, above-mentioned technical proposal provided by the invention has the advantages that
Coordinate of the mouse in current display box is obtained in real time, is determined when mouse moves in current display box each time Relative coordinate, judges whether the transverse and longitudinal coordinate in relative coordinate is greater than in threshold value or relative coordinate greater than the number of critical value Whether the number of negative that transverse and longitudinal coordinate is less than critical value is greater than threshold value, obtains judging result, based on judging result by mouse from Current display box switches to target display box, and target display box corresponds to the controlled of left side screen, right side screen, downside screen or upside screen PC determines mouse message of the mouse in target display box, and mouse message is sent to acquisition corresponding with target display box Device makes collector that mouse message is sent to controlled PC.It is implemented without the installation software on controlled PC and passes through a set of mouse Switching control can be carried out on multiple display boxes, so that user is not limited to one display box of control, by controlling multiple displays Box obtains more information.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is a kind of configuration diagram of switching system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of mouse switching method provided in an embodiment of the present invention;
Fig. 3 is provided in an embodiment of the present invention a kind of mouse is switched to target from current display box based on judging result to show Show the flow chart of box;
Fig. 4 is a kind of flow diagram of the control mouse provided in an embodiment of the present invention without switching display box;
Fig. 5 is the flow chart that mouse message is sent to controlled PC by a kind of collector provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of mouse switching device provided in an embodiment of the present invention.
Specific embodiment
The present invention provides a kind of mouse switching method and device, it is implemented without the installation software on controlled computer and passes through A set of mouse can also carry out switching control on multiple display boxes, so that user is not limited to one display box of control, pass through control It makes multiple display boxes and obtains more information.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, belongs to the scope of the present invention.
The purpose of the present invention is being based on a set of KVM (Keyboard Video Mouse, keyboard, display, mouse) equipment, Installation software is not needed on controlled computer, can realize free switching display box by a set of mouse.As shown in Figure 1, for this A kind of configuration diagram for switching system that inventive embodiments provide.
The switching system include: id be 1 collector, id be 2 collector, id be 3 collector, id be 4 display Display box that display box that box, id are 5, id are 6, display screen 1, display screen 2, display screen 3, controlled PC1 (Personal Computer, personal computer or PC) and controlled PC2.
Wherein, display screen 1 and the corresponding controlled computer PC1 of display screen 2, the corresponding controlled computer PC2 of display screen 3.
In Fig. 1, the display box that id is 4 corresponds to the collector that id is 1, and the display box that id is 5 corresponds to the acquisition that id is 2 Device, the display box that id is 6 correspond to the collector that id is 3.The collector that the collector and id that id is 1 are 2 corresponding controlled PC1, id For the 3 corresponding controlled PC2 of collector.
By determining mouse message of the mouse in display box, which is sent to and display box by interchanger Corresponding collector, so that mouse information is sent to controlled PC by collector, to control controlled PC.
Based on switching system disclosed in the embodiments of the present invention it is found that not needing the installation software on controlled PC passes through one Set mouse can also carry out switching control on multiple display boxes, so that user is not limited to one display box of control, pass through control Multiple display boxes obtain more information.
The switching system in conjunction with disclosed in the embodiments of the present invention, as shown in Fig. 2, being one kind provided in an embodiment of the present invention The flow chart of mouse switching method, method includes the following steps:
S201: coordinate of the mouse in current display box is obtained in real time.
During executing S201, first have to obtain coordinate of the mouse in current display box in real time, i.e., in display box In, some position of the coordinate of mouse in current display box, and for this position, the coordinate for exactly needing to obtain in real time.
Such as: in current display box, mouse position coordinate is (2,3), which is the mouse for needing to obtain in real time The coordinate being marked in current display.
It should be noted that mouse is in current display box, there are a coordinate systems corresponding with the current display box, only It wants mouse in the display box, coordinate of the mouse in current display box can be obtained.
S202: relative coordinate when mouse moves in current display box each time is determined.
In step S202, relative coordinate is the difference of mouse previous coordinate and changing coordinates.In the process for executing S202 In, when mouse moves each time, require to determine relative coordinate of the mouse in current display box, i.e., mouse movement is how much Secondary, the relative coordinate number of acquisition is corresponding with the mobile number of mouse.
Here by mouse in current display box it is mobile twice for, such as: mouse is mobile for the first time, obtains and the mouse Corresponding first relative coordinate mobile second of mouse, obtains second relative coordinate corresponding with the mouse.
Specifically, determining relative coordinate when mouse moves in current display box each time are as follows: obtain mouse in real time and exist Coordinate in current display box, the i.e. previous coordinate of mouse obtain mouse again and exist when mouse moves in current display box Coordinate in current display box, i.e. changing coordinates, then subtracting previous coordinate using changing coordinates can be obtained relative coordinate.
Such as: in current display box, the coordinate of mouse is (2,3), coordinate of the mouse when current display box is mobile be (3, 5), the coordinate using mouse when current display box is mobile is that (3,5) subtract coordinate (2,3), and the coordinate (1,2) of acquisition is phase To coordinate.
It should be noted that the abscissa in the relative coordinate obtained, subtracts previous seat for the abscissa in changing coordinates Abscissa in mark, the ordinate in the relative coordinate of acquisition subtract vertical in previous coordinate for the ordinate in changing coordinates Coordinate.
S203: judge whether the transverse and longitudinal coordinate in relative coordinate is greater than threshold value or relative coordinate greater than the number of critical value In transverse and longitudinal coordinate be less than the number of negative of critical value and whether be greater than threshold value, obtain judging result.
In step S203, judge whether the transverse and longitudinal coordinate in relative coordinate is greater than threshold value greater than the number of critical value, is To in relative coordinate abscissa and ordinate respectively with critical value carry out size compared with, record relative coordinate in abscissa It is respectively greater than the number of critical value with ordinate, then judges that the abscissa and ordinate in relative coordinate are respectively greater than critical value Number whether be greater than threshold value.
Similarly, judge whether the transverse and longitudinal coordinate in relative coordinate is greater than threshold value less than the number of the negative of critical value, be pair Abscissa and ordinate in relative coordinate compared with critical value opposite number carries out size, record the cross in relative coordinate respectively Coordinate and ordinate are respectively greater than the number of critical value opposite number, then judge abscissa and ordinate difference in relative coordinate Whether the number greater than the negative of critical value is greater than threshold value.
During executing S203, determine that the relative coordinate of mouse requires to judge the transverse and longitudinal of the relative coordinate each time Whether the transverse and longitudinal coordinate whether coordinate is greater than critical value or the relative coordinate is less than the negative of critical value, and then judgement is determining Whether the number that the transverse and longitudinal coordinate of all relative coordinates is greater than critical value is greater than the transverse and longitudinal of the relative coordinate of threshold value or all determinations Whether the number that coordinate is less than the negative of critical value is greater than threshold value.
It should be noted that critical value and threshold value among the above, can be set according to the actual situation, no longer carry out here It illustrates.
S204: mouse is switched to from current display box by target display box based on judging result.
During executing S204, if the number that the transverse and longitudinal coordinate of relative coordinate is greater than critical value is greater than threshold value or phase The number for being less than the negative of critical value to the transverse and longitudinal coordinate of coordinate is greater than threshold value, then is shown mouse from current based on relative coordinate Box switches to target display box.Wherein, current display box is the display screen where mouse, and target display box is another display Screen, if the number that the transverse and longitudinal coordinate for meeting above-mentioned relative coordinate is greater than critical value is greater than threshold value or the transverse and longitudinal of relative coordinate is sat The number that mark is less than the negative of critical value is greater than threshold value, and mouse is switched on another display screen from current display screen.
It should be noted that specifically, how from current display box to be switched to another display box, such as: it is current aobvious Show box marked as 1, it is that mouse is switched to mark from the display box marked as 1 that other two display box label, which is respectively 2 and 3, Number be 2 display box, be also to switch to the display box marked as 3, can be set according to the actual situation.
S205: it determines mouse message of the mouse in target display box, and mouse message is sent to and target display box Corresponding collector makes collector that mouse message is sent to controlled PC.
In step S205, mouse message is to work as including at least mouse in the ID value and target display box of target display box Preceding coordinate.It should be noted that each display box has ID value, and the ID value of each display box is different.Executing S205 During, determine mouse message of the mouse in target display box, and the mouse message is sent to and target display box pair Mouse message is sent to controlled computer by the collector by the collector answered.
It should be noted that each collector has ID value, and each display box is correspondingly connected with a collector, i.e., often All there is the collector for becoming corresponding relationship therewith in one display box.
Based on mouse switching method disclosed in the embodiments of the present invention it is found that determining that mouse is in current display box each time Relative coordinate when mobile is based on the relative coordinate, judges whether mouse from current display box is switched to target display box, if mouse Mark from current display box is switched to target display box, determines mouse message of the mouse in target display box, and by mouse message It is sent to collector corresponding with target display box, makes collector that mouse message is sent to controlled PC.It is implemented without in quilt Installation software can also carry out switching control by a set of mouse on multiple display boxes on control PC, so that user is not limited to control One display box obtains more information by controlling multiple display boxes.
Mouse is switched to from current display box based on judging result based on what is be related in embodiments of the present invention Fig. 2 The specific implementation process of target display box, as shown in figure 3, specifically including that
S301: judge whether the transverse and longitudinal coordinate in relative coordinate is greater than threshold value or relative coordinate greater than the number of critical value In transverse and longitudinal coordinate be less than the number of negative of critical value and whether be greater than threshold value, if judging result is in determining relative coordinate The number that abscissa is greater than critical value is greater than threshold value, then executes S302, if judging result is less than for the abscissa in relative coordinate The number of the negative of critical value is greater than threshold value, then executes S303, if judging result is big for the ordinate in determining relative coordinate It is greater than threshold value in the number of critical value, then executes S304, if the ordinate in relative coordinate is less than the number of the negative of critical value Greater than threshold value, then S305 is executed.
S302: mouse is switched to the target display box for the controlled PC that corresponding right side is shielded from current display box.
During executing S302, however, it is determined that relative coordinate in abscissa be greater than critical value number be greater than threshold Value, then switch to the right target display box from current display box for mouse.
Such as: the number of abscissa in determining relative coordinate greater than critical value P is greater than threshold value n, then mouse is from current Display box switches to the right a display box nearest with current display box.I.e. mouse is turned right quick sliding in current display box, And meet above-mentioned condition: number of the abscissa greater than critical value P in determining relative coordinate is greater than threshold value n, then mouse switches The right display box to current display box is controlled.
It should be noted that including but not limited to mouse switched to the right from current display box it is nearest with current display box One display box is directly switch to the display box close with current display box second alternatively, also can skip nearest display box, tool Body, how to switch to be set according to the actual situation.
Such as: current display box is marked as 1, and nearest display box is marked as 2 to the right, to the right the second close display box label It is 3, the display box marked as 1 can be switched to the display box marked as 2, also can skip the display box marked as 2, be directly switch to Display box marked as 3.
S303: mouse is switched to the target display box for the controlled PC that corresponding left side is shielded from current display box.
During executing S303, if the number that the abscissa in relative coordinate is less than the negative of critical value is greater than threshold Value, then switch to target display box from current display box for mouse to the left.
Such as: the number that the abscissa in determining relative coordinate is less than the negative-P of critical value is greater than threshold value n, then mouse Switch to a display box nearest with current display box to the left from current display box.I.e. mouse is turned left quickly in current display box Sliding, and meet above-mentioned condition: the number that the abscissa in determining relative coordinate is less than the negative-P of critical value is greater than threshold value N, the then left side display box that mouse is switched to current display box are controlled.
S304: mouse is switched to the target display box for the controlled PC that corresponding downside is shielded from current display box.
During executing S304, however, it is determined that relative coordinate in ordinate be greater than critical value number be greater than threshold Value, then switch to downwards target display box from current display box for mouse.
Such as: the number of ordinate in determining relative coordinate greater than critical value P is greater than threshold value n, then mouse is from current Display box switches to downwards a display box nearest with current display box.That is mouse in current display box quick sliding down, And meet above-mentioned condition: number of the ordinate greater than critical value P in determining relative coordinate is greater than threshold value n, then mouse switches Following display box to current display box is controlled.
S305: mouse is switched to the target display box of the controlled PC shielded to corresponding upside from current display box.
During executing S305, if the number that the ordinate in relative coordinate is less than the negative of critical value is greater than threshold Value, then switch up mouse to target display box from current display box.
Such as: the number that the ordinate in determining relative coordinate is less than the negative-P of critical value is greater than threshold value n, then mouse It switches up from current display box to a display box nearest with current display box.I.e. mouse is up quick in current display box Sliding, and meet above-mentioned condition: number of the ordinate less than critical value opposite number-P in determining relative coordinate is greater than threshold value N, then the top display box that mouse is switched to current display box are controlled.
The mouse switching method according to disclosed in the embodiments of the present invention is it is found that if meet the transverse and longitudinal coordinate in relative coordinate Number greater than critical value is greater than the number of the negative that threshold value or relative coordinate are less than critical value and is greater than threshold value, and mouse can be from working as Preceding display box switches to target display box to different directions, realizes mouse between display box and display box toward not Tongfang To the flexibility of switching.
As shown in figure 4, the flow diagram for control mouse without switching display box, specifically includes that
S401: judge whether relative coordinate is greater than threshold value greater than the number of critical value or relative coordinate is less than critical value Whether the number of negative is greater than threshold value.The abscissa in determining relative coordinate is less than critical value at least once if it exists, then S402 is executed to execute S402 if the abscissa in relative coordinate is greater than the negative of critical value at least once, determine if it exists Relative coordinate in ordinate be less than critical value at least once, then S402 is executed, if the ordinate in relative coordinate is at least Once it is greater than the negative of critical value, then executes S402.
S402: control mouse is without switching display box.
The mouse switching method according to disclosed in the embodiments of the present invention is it is found that if the transverse and longitudinal being unsatisfactory in relative coordinate is sat The number that the number that mark is greater than critical value is greater than the negative that threshold value or relative coordinate are less than critical value is greater than threshold value, controls mouse Without switching display box, mouse accidentally switching target display box is avoided.
Based on mouse switching method disclosed in embodiments of the present invention Fig. 2, S205 shown in Figure 2: mouse is determined Mouse message in target display box, and mouse message is sent to collector corresponding with target display box, make collector Mouse message is sent to the specific implementation process of controlled PC, as shown in figure 5, specifically including that
S501: it determines mouse message of the mouse in target display box, and mouse message is sent to and target display box Corresponding collector.
During executing S501, mouse message of the mouse in target display box is determined, and mouse message is sent Give the corresponding collector of target display box.
S502: whether the ID value for judging the target display box in mouse message matches with the ID value of collector.
During executing S502, judge the target display box in mouse message ID value and collector ID value whether Matching.
S503: if so, making collector that mouse message is sent to controlled PC.
During executing S503, if the ID value of the target display box in mouse message and the success of the ID value of collector Match, then makes collector that mouse message is sent to controlled PC.
The mouse switching method according to disclosed in the embodiments of the present invention can make it is found that the mouse message that controlled PC is obtained User understand mouse which target display box be switched to.
Based on mouse switching method disclosed in the embodiments of the present invention, the mouse switching method further include:
Switching system interacts target display box with collector by interchanger.
The mouse switching method according to disclosed in the embodiments of the present invention is it is found that enable target display box by interchanger It is interacted with collector, mouse message is sent to collector corresponding with target display box by interchanger, to be controlled PC The mouse message of acquisition provides guarantee.
Based on a kind of mouse switching method disclosed in the embodiments of the present invention, correspondence of the embodiment of the present invention discloses one kind Mouse switching device, structure obtain module 60, determining module 61, judgment module 62, switching mould as shown in fig. 6, specifically including that Block 63 and sending module 64.
Module 60 is obtained, for obtaining coordinate of the mouse in current display box in real time.
Determining module 61, relative coordinate when for determining that mouse moves in current display box each time, relative coordinate For the difference of mouse previous coordinate and changing coordinates.
Judgment module 62, for judging whether the transverse and longitudinal coordinate in relative coordinate is greater than threshold value greater than the number of critical value, Or whether the transverse and longitudinal coordinate in relative coordinate is greater than threshold value less than the number of the negative of critical value, obtains judging result.
Switching module 63, for mouse to be switched to target display box from current display box based on judging result.
Sending module 64, for determining mouse message of the mouse in target display box, and by mouse message be sent to The corresponding collector of target display box, makes collector that mouse message is sent to controlled PC.
Based on mouse switching device disclosed in the embodiments of the present invention it is found that determining that mouse is in current display box each time Relative coordinate when mobile is based on the relative coordinate, judges whether mouse from current display box is switched to target display box, if mouse Mark from current display box is switched to target display box, determines mouse message of the mouse in target display box, and by mouse message It is sent to collector corresponding with target display box, makes collector that mouse message is sent to controlled computer.It is implemented without Installation software can also carry out switching control by a set of mouse on multiple display boxes on controlled PC, so that user is not limited to control A display box is made, obtains more information by controlling multiple display boxes.
A kind of alternative construction of switching module 63 in apparatus of the present invention embodiment are as follows: switching module 63 includes the first switching Unit, the second switch unit, third switch unit and the 4th switch unit.
First switch unit, if the number for judging result to be greater than critical value for the abscissa in relative coordinate is greater than threshold Mouse is switched to the target display box for the controlled PC that corresponding right side is shielded by value from current display box.
Second switch unit, if being less than the number of the negative of critical value for the abscissa in relative coordinate for judging result Greater than threshold value, mouse is switched to the target display box for the controlled PC that corresponding left side is shielded from current display box.
Third switch unit, if the number for judging result to be greater than critical value for the ordinate in relative coordinate is greater than threshold Mouse is switched to the target display box for the controlled PC that corresponding downside is shielded by value from current display box.
4th switch unit, if being less than the number of the negative of critical value for the ordinate in relative coordinate for judging result Greater than threshold value, mouse is switched to the target display box for the controlled PC that corresponding upside is shielded from current display box.
The mouse switching device according to disclosed in the embodiments of the present invention is it is found that if meet the transverse and longitudinal coordinate in relative coordinate Number greater than critical value is greater than number of the transverse and longitudinal coordinate in threshold value or relative coordinate less than the negative of critical value greater than threshold Value, mouse can switch to target display box from current display box to different directions, realize mouse in display box and display box Between toward different directions switching flexibility.
Another alternative construction of switching module 63 in apparatus of the present invention embodiment are as follows: switching module 63 includes that control is single Member.
Control unit, if being less than critical value at least once for judging result for the abscissa in relative coordinate, alternatively, Abscissa in relative coordinate is greater than the negative of critical value at least once, alternatively, the ordinate at least one in relative coordinate It is secondary to be less than critical value, alternatively, the ordinate in relative coordinate is greater than the negative of critical value at least once, control mouse without Switch display box.
The mouse switching device according to disclosed in the embodiments of the present invention is it is found that if the transverse and longitudinal being unsatisfactory in relative coordinate is sat The number that the number that mark is greater than critical value is greater than the negative that transverse and longitudinal coordinate in threshold value or relative coordinate is less than critical value is greater than threshold Value, control mouse avoid mouse accidentally switching display box without switching target display box.
A kind of alternative construction of sending module 64 in apparatus of the present invention embodiment are as follows: sending module 64 includes the first transmission Unit, judging unit and the second transmission unit.
First transmission unit for determining mouse message of the mouse in target display box, and mouse message is sent to Collector corresponding with target display box.
Judging unit, for judging whether the ID value of the target display box in mouse message matches with the ID value of collector.
Second transmission unit, for if so, making collector that mouse message is sent to controlled PC.
The mouse switching device according to disclosed in the embodiments of the present invention is it is found that the mouse message that controlled computer obtains, energy The user made understands which display box mouse has been switched to.
Based on mouse switching device disclosed in aforementioned present invention Installation practice, the mouse switching device further include: interaction Module.
Interactive module interacts target display box with collector by interchanger for switching system.
The mouse switching device according to disclosed in the embodiments of the present invention is it is found that enable target display box by interchanger It is interacted with collector, mouse message is sent to collector corresponding with target display box by interchanger, to be controlled PC The mouse message of acquisition provides guarantee.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
The foregoing description of the disclosed embodiments can be realized those skilled in the art or using the present invention.To this A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited It is formed on the embodiments shown herein, and is to fit to consistent with the principles and novel features disclosed in this article widest Range.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of mouse switching method, which is characterized in that be suitable for switching system, the switching system includes display box, acquisition Device and interchanger, each display box are correspondingly connected with a collector, which comprises
Coordinate of the mouse in current display box is obtained in real time;
Determine that the relative coordinate when mouse moves in the current display box each time, the relative coordinate are the mouse Mark the difference of previous coordinate and changing coordinates;
Judge whether the transverse and longitudinal coordinate in the relative coordinate is greater than in threshold value or the relative coordinate greater than the number of critical value Transverse and longitudinal coordinate be less than the number of negative of critical value and whether be greater than the threshold value, obtain judging result;
The mouse is switched into target display box, the corresponding left side of the target display box from current display box based on judging result The controlled PC of screen, right side screen, downside screen or upside screen;
It determines mouse message of the mouse in the target display box, and the mouse message is sent to and the target The corresponding collector of display box, makes the collector that the mouse message is sent to controlled PC, and the mouse message at least wraps Include the changing coordinates of mouse in the ID value and the target display box of the target display box.
2. the method according to claim 1, wherein described if so, based on judging result by the seat of the mouse Mark switches to target display box from current display box, comprising:
If the judging result is that the abscissa in the relative coordinate is greater than the threshold value greater than the number of the critical value, will The mouse switches to the target display box for the controlled PC that corresponding right side is shielded from the current display box;
If the judging result is described in the number for the negative that the abscissa in the relative coordinate is less than the critical value is greater than The mouse is switched to the target display box for the controlled PC that corresponding left side is shielded by threshold value from the current display box;
If the judging result is that the ordinate in the relative coordinate is greater than the threshold value greater than the number of the critical value, will The mouse switches to the target display box for the controlled PC that corresponding downside is shielded from the current display box;
If the judging result is described in the number for the negative that the ordinate in the relative coordinate is less than the critical value is greater than The mouse is switched to the target display box for the controlled PC that corresponding upside is shielded by threshold value from the current display box.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
If the judging result is that the abscissa in the relative coordinate is less than the critical value at least once, alternatively, described Abscissa in relative coordinate is greater than the negative of the critical value at least once, alternatively, the ordinate in the relative coordinate It is less than the critical value at least once, alternatively, the ordinate in the relative coordinate is greater than the critical value at least once Negative, control the mouse without switch display box.
4. the method according to claim 1, wherein the determination mouse is in the target display box Mouse message, and the mouse message is sent to collector corresponding with the target display box, make the collector by institute It states mouse message and is sent to controlled PC, comprising:
It determines mouse message of the mouse in the target display box, and the mouse message is sent to and the target The corresponding collector of display box;
Judge whether the ID value of the target display box in the mouse message matches with the ID value of the collector;
If so, making the collector that the mouse message is sent to controlled PC.
5. the method according to claim 1, wherein the method also includes:
The switching system interacts the target display box with the collector by the interchanger.
6. a kind of mouse switching device, which is characterized in that be suitable for switching system, the switching system includes display box, acquisition Device and interchanger, each display box are correspondingly connected with a collector, and described device includes:
Module is obtained, for obtaining coordinate of the mouse in current display box in real time;
Determining module, relative coordinate when for determining that the mouse moves in the current display box each time, the phase It is the difference of the mouse previous coordinate and changing coordinates to coordinate;
Judgment module, for judge the transverse and longitudinal coordinate in the relative coordinate be greater than critical value number whether be greater than threshold value, or Whether the number for the negative that the transverse and longitudinal coordinate in the relative coordinate is less than critical value is greater than the threshold value, obtains judging result;
Switching module, for the mouse to be switched to target display box, the target from current display box based on judging result The controlled PC of the corresponding left side screen of display box, right side screen, downside screen or upside screen;
Sending module, for determining the mouse message in the target display box, and by the mouse message be sent to it is described The corresponding collector of target display box, makes the collector that the mouse message is sent to controlled PC.
7. device according to claim 6, which is characterized in that the switching module, comprising:
First switch unit, if being time of the abscissa in the relative coordinate greater than the critical value for the judging result Number is greater than the threshold value, and the mouse is shown from the target that the current display box switches to the controlled PC that corresponding right side is shielded Box;
Second switch unit, if being abscissa the bearing less than the critical value in the relative coordinate for the judging result Several numbers is greater than the threshold value, and the mouse is switched to the target for the controlled PC that corresponding left side is shielded from the current display box Display box;
Third switch unit, if being time of the ordinate in the relative coordinate greater than the critical value for the judging result Number is greater than the threshold value, and the mouse is shown from the target that the current display box switches to the controlled PC that corresponding downside is shielded Box;
4th switch unit, if being ordinate the bearing less than the critical value in the relative coordinate for the judging result Several numbers is greater than the threshold value, and the mouse is switched to the target for the controlled PC that corresponding upside is shielded from the current display box Display box.
8. device according to claim 7, which is characterized in that the switching module, further includes:
Control unit, if for the judging result be the relative coordinate in abscissa be less than at least once it is described critical Value, alternatively, the abscissa in the relative coordinate is greater than the negative of the critical value at least once, alternatively, the opposite seat Ordinate in mark is less than the critical value at least once, alternatively, the ordinate in the relative coordinate is big at least once In the negative of the critical value, the mouse is controlled without switching display box.
9. device according to claim 6, which is characterized in that the sending module, comprising:
First transmission unit for determining mouse message of the mouse in the target display box, and the mouse is believed Breath is sent to collector corresponding with the target display box;
Judging unit, for judging that the ID value of the target display box in the mouse message and the ID value of the collector be No matching;
Second transmission unit, for if so, making the collector that the mouse message is sent to controlled PC.
10. device according to claim 6, which is characterized in that described device further include:
Interactive module carries out the target display box and the collector by the interchanger for the switching system Interaction.
CN201910730379.4A 2019-08-08 2019-08-08 Mouse switching method and device Active CN110456932B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910730379.4A CN110456932B (en) 2019-08-08 2019-08-08 Mouse switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910730379.4A CN110456932B (en) 2019-08-08 2019-08-08 Mouse switching method and device

Publications (2)

Publication Number Publication Date
CN110456932A true CN110456932A (en) 2019-11-15
CN110456932B CN110456932B (en) 2021-08-06

Family

ID=68485448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910730379.4A Active CN110456932B (en) 2019-08-08 2019-08-08 Mouse switching method and device

Country Status (1)

Country Link
CN (1) CN110456932B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101320296A (en) * 2007-06-05 2008-12-10 宏正自动科技股份有限公司 Kvm switch for switching among computers by employing mouse movement signal and method thereof
US20100083122A1 (en) * 2008-10-01 2010-04-01 International Business Machines Corporation Systems, methods and computer products for controlling multiple machines using a seamless user-interface to a multi-display
CN102393797A (en) * 2010-11-26 2012-03-28 王琦凡 Mouse and method for controlling window switching through the same
CN103576884A (en) * 2012-08-01 2014-02-12 光宝电子(广州)有限公司 Input device capable of controlling multiple computers and method of input device for controlling computers
CN104090672A (en) * 2013-09-25 2014-10-08 苏州天趣信息科技有限公司 Switching type mouse device and control method thereof
CN104572512A (en) * 2014-12-31 2015-04-29 深圳雷柏科技股份有限公司 Method and system for realizing multi-clicking functions of X-mouse button control
CN104598055A (en) * 2015-02-09 2015-05-06 联想(北京)有限公司 State processing method, wireless mouse and multi-equipment wireless control system
CN104615282A (en) * 2015-01-23 2015-05-13 广州视睿电子科技有限公司 Mouse motion control method and system suitable for switching of multiple screens
CN108255378A (en) * 2018-02-09 2018-07-06 维沃移动通信有限公司 A kind of display control method and mobile terminal
CN109753261A (en) * 2018-12-30 2019-05-14 中孚信息股份有限公司 A kind of method and system, KVM switching host based on mouse
CN110007772A (en) * 2017-12-29 2019-07-12 宏正自动科技股份有限公司 Resource sharing device and its control method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101320296A (en) * 2007-06-05 2008-12-10 宏正自动科技股份有限公司 Kvm switch for switching among computers by employing mouse movement signal and method thereof
US20100083122A1 (en) * 2008-10-01 2010-04-01 International Business Machines Corporation Systems, methods and computer products for controlling multiple machines using a seamless user-interface to a multi-display
CN102393797A (en) * 2010-11-26 2012-03-28 王琦凡 Mouse and method for controlling window switching through the same
CN103576884A (en) * 2012-08-01 2014-02-12 光宝电子(广州)有限公司 Input device capable of controlling multiple computers and method of input device for controlling computers
CN104090672A (en) * 2013-09-25 2014-10-08 苏州天趣信息科技有限公司 Switching type mouse device and control method thereof
CN104572512A (en) * 2014-12-31 2015-04-29 深圳雷柏科技股份有限公司 Method and system for realizing multi-clicking functions of X-mouse button control
CN104615282A (en) * 2015-01-23 2015-05-13 广州视睿电子科技有限公司 Mouse motion control method and system suitable for switching of multiple screens
CN104598055A (en) * 2015-02-09 2015-05-06 联想(北京)有限公司 State processing method, wireless mouse and multi-equipment wireless control system
CN110007772A (en) * 2017-12-29 2019-07-12 宏正自动科技股份有限公司 Resource sharing device and its control method
CN108255378A (en) * 2018-02-09 2018-07-06 维沃移动通信有限公司 A kind of display control method and mobile terminal
CN109753261A (en) * 2018-12-30 2019-05-14 中孚信息股份有限公司 A kind of method and system, KVM switching host based on mouse

Also Published As

Publication number Publication date
CN110456932B (en) 2021-08-06

Similar Documents

Publication Publication Date Title
CN103870128B (en) Control method, control device and the electronic equipment of electronic equipment
CN103915041A (en) Automatic adjustment device and method of curved surface of flexible display screen
CN102063281B (en) Method and system for quickly switching window layout
CN105843371B (en) It is man-machine every empty exchange method and system
CN104615299B (en) Instruction triggers method and apparatus based on touch screen
CN105518587B (en) Terminal device display methods and terminal device
CN108920082A (en) Method of controlling operation thereof, device, storage medium and electronic equipment
CN103777788B (en) A kind of control method and electronic equipment
CN105242839A (en) Touch menu control method and system
CN103885571A (en) Information processing method and electronic equipment
CN104423855A (en) Information processing method and electronic device
CN103389871B (en) The control method of a kind of electronic equipment and electronic equipment
CN103106035A (en) Mobile terminal and application control method of same
CN107066176A (en) A kind of control method and device of the singlehanded pattern of terminal
CN104808900B (en) A kind of control method and electronic equipment
CN104182148B (en) A kind of key control method and device
CN103207691B (en) A kind of operational order generates method and a kind of electronic equipment
CN104331372B (en) A kind of method and device that long-range positioning problems are carried out to application program
CN106126055A (en) operation interface display control method and device
CN110456932A (en) A kind of mouse switching method and device
CN107402685A (en) Mobile terminal and its operating method and operation device
CN106201393A (en) Information processing method and electronic equipment
CN110110308A (en) Four-dimensional curriculum schedule data managing method and device
CN103543990B (en) A kind of method and terminal that instruct user to operate terminal
CN109525703A (en) Battery power quantity display method, device, readable storage medium storing program for executing and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240319

Address after: Room 05, 27th Floor, Building 1, Guannan Fuxing Pharmaceutical Park, No. 58 Guanggu Avenue, Donghu New Technology Development Zone, Wuhan City, Hubei Province, 430000 (Wuhan Area of Free Trade Zone)

Patentee after: Wuhan Anchenxin Information Technology Co.,Ltd.

Country or region after: Zhong Guo

Address before: 233 Kezhu Road, Guangzhou hi tech Industrial Development Zone, Guangdong 510670

Patentee before: VTRON GROUP Co.,Ltd.

Country or region before: Zhong Guo

TR01 Transfer of patent right