CN102750151A - Method and system for realizing simultaneous input of multiple keyboards - Google Patents
Method and system for realizing simultaneous input of multiple keyboards Download PDFInfo
- Publication number
- CN102750151A CN102750151A CN201210203831XA CN201210203831A CN102750151A CN 102750151 A CN102750151 A CN 102750151A CN 201210203831X A CN201210203831X A CN 201210203831XA CN 201210203831 A CN201210203831 A CN 201210203831A CN 102750151 A CN102750151 A CN 102750151A
- Authority
- CN
- China
- Prior art keywords
- keyboard
- identifier
- mapping relations
- window
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000013507 mapping Methods 0.000 claims abstract description 70
- 238000013461 design Methods 0.000 abstract description 4
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 239000012467 final product Substances 0.000 description 2
- 230000002950 deficient Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Landscapes
- Input From Keyboards Or The Like (AREA)
Abstract
The invention relates to the technical field of the input of multiple keyboards, in particular to a method and a system for realizing simultaneous input of multiple keyboards. The method comprises the following steps of: establishing mapping relationships between accessed keyboards and application windows; and according to the mapping relationships, sending characters input by the keyboards to the corresponding application windows. The mapping relationships between the accessed keyboards and the corresponding application windows are established, and the characters input by each keyboard can be sent to the corresponding application window by finding the mapping relationships, so that multiple keyboards can simultaneously send the characters to different application windows. The principle design is clever, the realization mode is simple, and the independent simultaneous operation of many people is realized. The working efficiency is greatly increased, the practicality is very high, and the method and the system are worthy of popularization.
Description
Technical field
The present invention relates to muliple keyboards input technology field, particularly relate to a kind of method and a kind of system that realizes that muliple keyboards is imported simultaneously that realizes that muliple keyboards is imported simultaneously.
Background technology
On existing operating system; The processing procedure of traditional keyboard message is: keyboard output scanning sign indicating number is to keyboard drive; Driving is encapsulated as origination message with scan code, sends to system message queue then, and system gives message distribution the window of the application program of having obtained focus; And in system; The window that has focus can only have one; That is to say and to send character to the window that has focus; So have a plurality of keyboards on a computer, and when hoping each keyboard input information is to different application window alone, the message process mode of current operation system can't be accomplished this task.
Summary of the invention
Based on this; The present invention provides a kind of method that realizes that muliple keyboards is imported simultaneously; This method is through setting up the mapping relations of keyboard and corresponding application program window; The character of each keyboard input can be sent to the corresponding application program window through searching mapping relations, has realized that a plurality of keyboards send character to different application windows simultaneously.
Another object of the present invention is to provide the realization system for carrying out said process.
A kind of method that realizes that muliple keyboards is imported simultaneously comprises the steps:
Set up the keyboard of access and the mapping relations of application window;
According to said mapping relations, the character of said keyboard input is sent to the said application window of correspondence.
A kind of system that realizes that muliple keyboards is imported simultaneously comprises and sets up module and sending module;
Saidly set up the mapping relations that module is used to set up the keyboard and the application window of access;
Said sending module is used for the said mapping relations of setting up module according to said, and the character of said keyboard input is sent to corresponding said application window.
The present invention is through setting up the mapping relations between keyboard and the corresponding application program window; The character of keyboard input only needs according to said mapping relations; Can character be sent to the corresponding application program window, realize that a plurality of keyboards send character to the different application window simultaneously;
Principle design of the present invention is ingenious, and implementation is simple, on existing computer operating system, can utilize technical scheme of the present invention to realize at an easy rate;
The present invention can be widely used in large-scale combination field, on the controller of combination, inserts a plurality of keyboards, operates in the time of can on same combination, realizing many people independent same, has improved work efficiency greatly, and practicality is very high, is worthy to be popularized.
Description of drawings
Fig. 1 realizes the method schematic flow sheet in one embodiment that muliple keyboards is imported simultaneously for the present invention.
Fig. 2 sets up the schematic flow sheet of mapping relations step in one embodiment for the present invention realizes method that muliple keyboards is imported simultaneously.
Fig. 3 sends the schematic flow sheet of character step in one embodiment for the present invention realizes the method that muliple keyboards is imported simultaneously.
Fig. 4 realizes system's structural representation in one embodiment that muliple keyboards is imported simultaneously for the present invention.
Fig. 5 sets up the structural representation of module in one embodiment for the present invention realizes system that muliple keyboards is imported simultaneously.
Fig. 6 realizes system that muliple keyboards imports the simultaneously structural representation of sending module in one embodiment for the present invention.
Embodiment
Below in conjunction with embodiment and accompanying drawing the present invention is done further explain, but embodiment of the present invention is not limited thereto.
As shown in Figure 1, be that the present invention realizes the method schematic flow sheet in one embodiment that muliple keyboards is imported simultaneously, comprise the steps:
S11, the keyboard of setting up access and the mapping relations of application window;
As shown in Figure 2, in a preferred embodiment, step S11 can specifically comprise the steps:
S200, obtain the keyboard identifier of the keyboard of each access;
With existing Windows operating system commonly used is example; The system function RawInput function of this operating system is used to discern the keypad information of access; Present embodiment can pass through GetRawInputDeviceList function call RawInput function; Get access to the keypad information of each access, this keypad information comprises said keyboard identifier or keyboard title etc., only need obtain the keyboard identifier in the present embodiment and get final product;
Other operating system such as (SuSE) Linux OS etc., details are realized different slightly, but the thinking of its realization that's about the size of it, will not give unnecessary details here, following examples will be that example describes with Windows operating system all;
S210, obtain the window identifier of the application window of having opened;
In a preferred embodiment, can realize through the EnumWindows function; The EnumWindows enumeration function is used for the application window number change of checked operation system; Can get access to the information of the application window of having opened through this function, only need get access to window identifier in the present embodiment and get final product;
S220, set up the mapping relations table between said keyboard identifier and the corresponding said window identifier;
For this step, can pass through a newly-built chained list, the keyboard identifier of each keyboard that step S200 is obtained is kept in this chained list, and the window identifier of each application window that step S210 is obtained is kept in another chained list; According to the corresponding relation between keyboard and the application window, can a certain keyboard identifier and a certain window identifier be associated, the one-to-one relationship of keyboard identifier chained list and window identifier chained list is set; Also can keyboard identifier and window identifier all be kept in the same relation chained list, the one-to-one relationship of keyboard identifier chained list and window identifier chained list is set in same chained list;
The obtaining of corresponding relation between above-mentioned keyboard and the application window can have multiple implementation; For example can the keypad information that GetRawInputDeviceList function among the step S210 gets access to be added in real time in the right mouse button tabulation of system; When the user is placed on the application window of having opened with cursor of mouse; The right button of clicking the mouse is selected to be connected to corresponding keyboard, and the corresponding relation of keyboard and application window can be set voluntarily; Also can a newly-built program window, in this window, enumerate the application window information that shows all keypad informations and all unlatchings, the user is provided with the corresponding relation of keyboard and application window voluntarily in this window;
S12, according to said mapping relations, the character of said keyboard input is sent to corresponding said application window;
As shown in Figure 3, in a preferred embodiment, step S12 specifically can comprise the steps:
S300, receive the character of each said keyboard input;
S310, according to the keyboard identifier of the keyboard of said input character, inquire about said mapping relations table, said character is sent to the corresponding said application window of said keyboard;
Operating system can be earlier according to the keyboard identifier of this keyboard when receiving the character of keyboard input, and the mapping relations table of setting up among the finding step S220 finds and this keyboard corresponding application program window; Windows operating system is with window identifier packaged the send to system message queue of the character that obtains with the application window that receives character for the treatment scheme of keyboard input character; Therefore in this step, find the corresponding window identifier of this input character, can character be sent in the application window according to the treatment scheme of origin operation system;
To this step, this method has realized a plurality of keyboards task of input character simultaneously of working simultaneously, has remedied the defective of prior art, and the mentality of designing of this method is simply ingenious, and each step can both be easier to realize to those skilled in the art;
In a preferred embodiment, the present invention also can comprise following one or more step:
The keyboard identifier of the said keyboard that connects is broken off in identification, deletes said keyboard identifier and corresponding window identifier in the said mapping relations table;
Pass through the access or the disconnection of RawInput function identification keyboard among the step S200; Break off connection when having recognized keyboard; Then can notify the mapping relations table to upgrade in time; This disconnection of writing down in the deletion mapping relations table connects the keyboard identifier of keyboard, and the corresponding window identifier of this keyboard identifier;
The window identifier of the said application window that identification is closed is deleted said keyboard identifier and corresponding window identifier in the said mapping relations table;
Unlatching through application window in the EnumWindows function recognition system among the step S210 or close; Be closed when having recognized application window; Then can notify the mapping relations table to upgrade; The window identifier of this program window of closing that writes down in the deletion mapping relations table, and the corresponding keyboard identifier of this window identifier;
Remove the mapping relations of said said keyboard of having set up and corresponding application program window, delete said keyboard identifier and corresponding window identifier in the said mapping relations table;
Among the step S220 in the process of the corresponding relation that obtains keyboard and application window; Detect the user in a certain application window; Select to break off connection through right mouse button with former corresponding keyboard; Then can notify the mapping relations table to upgrade, remove the mapping relations of said said keyboard of having set up and corresponding application program window, delete said keyboard identifier and corresponding window identifier in the said mapping relations table;
The purpose of above-mentioned three steps all is real-time update mapping relations table, avoids mapping relations table storage overabundance of data, improves the inquiry velocity of mapping relations table among the step S12.
The present invention also provides a kind of system that realizes that muliple keyboards is imported simultaneously, and is as shown in Figure 4, is the structural representation of this system in a preferred embodiment, comprises setting up module 41 and sending module 42;
Saidly set up the mapping relations that module 41 is used to set up the keyboard and the application window of access;
As shown in Figure 5, in a preferred embodiment, the said module 41 of setting up comprises keyboard identifier module 500, window identifier module 510 and mapping relations table module 520;
Said keyboard identifier module 500 is used to obtain the keyboard identifier of the keyboard of each access;
Said window identifier module 510 is used to obtain the window identifier of the application window of having opened;
Said mapping relations table module 520 is used to set up the mapping relations table between said keyboard identifier and the corresponding said window identifier;
Said sending module 42 is used for the said mapping relations of setting up module 41 according to said, and the character of said keyboard input is sent to corresponding said application window;
As shown in Figure 6, in a preferred embodiment, said sending module 42 comprises receiver module 600 and inquiry sending module 610;
Said receiver module 600 is used to receive the character of each said keyboard input;
Said inquiry sending module 610 is used for the keyboard identifier according to the keyboard of said input character, inquires about said mapping relations table, and the said character that receives in the said receiver module 600 is sent to the corresponding said application window of said keyboard;
The system that said realization muliple keyboards is imported simultaneously also comprises removing module, and said removing module is used for:
The keyboard identifier of the said keyboard that connects is broken off in identification, deletes keyboard identifier in the mapping relations table described in the said mapping relations table module and corresponding window identifier;
Or/and the window identifier of the said application window that identification is closed is deleted keyboard identifier in the mapping relations table described in the said mapping relations table module and corresponding window identifier;
Or/and remove the mapping relations of said said keyboard of having set up and corresponding application program window, delete keyboard identifier in the mapping relations table described in the said mapping relations table module and corresponding window identifier.
The present invention is through setting up the mapping relations between keyboard and the corresponding application program window; The character of keyboard input only needs according to said mapping relations; Can character be sent to the corresponding application program window, realize that a plurality of keyboards send character to the different application window simultaneously;
Principle design of the present invention is ingenious, and implementation is simple, on existing computer operating system, can utilize technical scheme of the present invention to realize at an easy rate;
The present invention can be widely used in large-scale combination field, on the controller of combination, inserts a plurality of keyboards, operates in the time of can on same combination, realizing many people independent same, has improved work efficiency greatly, and practicality is very high, is worthy to be popularized.
The above embodiment has only expressed several kinds of embodiments of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art under the prerequisite that does not break away from the present invention's design, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with accompanying claims.
Claims (8)
1. a method that realizes that muliple keyboards is imported simultaneously is characterized in that, comprises the steps:
Set up the keyboard of access and the mapping relations of application window;
According to said mapping relations, the character of said keyboard input is sent to the said application window of correspondence.
2. the method that realization muliple keyboards according to claim 1 is imported simultaneously is characterized in that, the said step of setting up the mapping relations of keyboard and application window specifically comprises:
Obtain the keyboard identifier of the keyboard of each access;
Obtain the window identifier of the application window of having opened;
Set up the mapping relations table between said keyboard identifier and the corresponding said window identifier.
3. the method that realization muliple keyboards according to claim 2 is imported simultaneously is characterized in that, and is said according to said mapping relations, and the step that the input character of said keyboard is sent to corresponding said application window specifically comprises:
Receive the character of each said keyboard input;
According to the keyboard identifier of the keyboard of said input character, inquire about said mapping relations table, said character is sent to the corresponding said application window of said keyboard.
4. the method that realization muliple keyboards according to claim 2 is imported simultaneously is characterized in that, also comprises following one or more steps:
The keyboard identifier of the said keyboard that connects is broken off in identification, deletes said keyboard identifier and corresponding window identifier in the said mapping relations table;
The window identifier of the said application window that identification is closed is deleted said keyboard identifier and corresponding window identifier in the said mapping relations table;
Remove the mapping relations of said said keyboard of having set up and corresponding application program window, delete said keyboard identifier and corresponding window identifier in the said mapping relations table.
5. a system that realizes that muliple keyboards is imported simultaneously is characterized in that, comprises setting up module and sending module;
Saidly set up the mapping relations that module is used to set up the keyboard and the application window of access;
Said sending module is used for the said mapping relations of setting up module according to said, and the character of said keyboard input is sent to corresponding said application window.
6. the system that realization muliple keyboards according to claim 5 is imported simultaneously is characterized in that, the said module of setting up comprises keyboard identifier module, window identifier module and mapping relations table module;
Said keyboard identifier module is used to obtain the keyboard identifier of the keyboard of each access;
Said window identifier module is used to obtain the window identifier of the application window of having opened;
Said mapping relations table module is used to set up the mapping relations table between said keyboard identifier and the corresponding said window identifier.
7. the system that realization muliple keyboards according to claim 6 is imported simultaneously is characterized in that, said sending module comprises receiver module and inquiry sending module;
Said receiver module is used to receive the character of each said keyboard input;
Said inquiry sending module is used for the keyboard identifier according to the keyboard of said input character, inquires about said mapping relations table, and the said character that receives in the said receiver module is sent to the corresponding said application window of said keyboard.
8. the system that realization muliple keyboards according to claim 5 is imported simultaneously is characterized in that, also comprises removing module, and said removing module is used for:
The keyboard identifier of the said keyboard that connects is broken off in identification, deletes keyboard identifier in the mapping relations table described in the said mapping relations table module and corresponding window identifier;
Or/and the window identifier of the said application window that identification is closed is deleted keyboard identifier in the mapping relations table described in the said mapping relations table module and corresponding window identifier;
Or/and remove the mapping relations of said said keyboard of having set up and corresponding application program window, delete keyboard identifier in the mapping relations table described in the said mapping relations table module and corresponding window identifier.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210203831.XA CN102750151B (en) | 2012-06-19 | 2012-06-19 | A kind of method and system realizing muliple keyboards and input simultaneously |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210203831.XA CN102750151B (en) | 2012-06-19 | 2012-06-19 | A kind of method and system realizing muliple keyboards and input simultaneously |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102750151A true CN102750151A (en) | 2012-10-24 |
CN102750151B CN102750151B (en) | 2016-04-13 |
Family
ID=47030374
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210203831.XA Expired - Fee Related CN102750151B (en) | 2012-06-19 | 2012-06-19 | A kind of method and system realizing muliple keyboards and input simultaneously |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102750151B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103593063A (en) * | 2013-12-03 | 2014-02-19 | 广东威创视讯科技股份有限公司 | Method and device for using multiple input methods of time division |
CN104049732A (en) * | 2013-03-11 | 2014-09-17 | 三星电子株式会社 | Multi-input control method and system, and electronic device supporting same |
CN106033258A (en) * | 2015-03-18 | 2016-10-19 | 联想(北京)有限公司 | Information processing method and electronic device |
CN107656667A (en) * | 2016-07-25 | 2018-02-02 | 宁波Gqy视讯股份有限公司 | A kind of distributed splicing display device and method |
CN109145542A (en) * | 2018-08-31 | 2019-01-04 | 广东虹勤通讯技术有限公司 | A kind of authority distributing method and device realizing multi-input device and working independently |
CN112799526A (en) * | 2021-01-29 | 2021-05-14 | 瑞芯微电子股份有限公司 | Method and system for simultaneously displaying and operating multiple mice in single system |
CN115543157A (en) * | 2022-12-01 | 2022-12-30 | 中国人民解放军国防科技大学 | Single-display-card-based independent multi-graphic user man-machine interaction method, device and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101414242A (en) * | 2008-11-19 | 2009-04-22 | 北京飞天诚信科技有限公司 | Soft keyboard input device and method of multiple-input focus |
CN102053813A (en) * | 2010-10-14 | 2011-05-11 | 广东威创视讯科技股份有限公司 | Splicing wall control method and device, and splicing wall system |
-
2012
- 2012-06-19 CN CN201210203831.XA patent/CN102750151B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101414242A (en) * | 2008-11-19 | 2009-04-22 | 北京飞天诚信科技有限公司 | Soft keyboard input device and method of multiple-input focus |
CN102053813A (en) * | 2010-10-14 | 2011-05-11 | 广东威创视讯科技股份有限公司 | Splicing wall control method and device, and splicing wall system |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104049732A (en) * | 2013-03-11 | 2014-09-17 | 三星电子株式会社 | Multi-input control method and system, and electronic device supporting same |
CN104049732B (en) * | 2013-03-11 | 2018-08-03 | 三星电子株式会社 | Multiinput control method and system and the electronic device for supporting this method and system |
CN103593063A (en) * | 2013-12-03 | 2014-02-19 | 广东威创视讯科技股份有限公司 | Method and device for using multiple input methods of time division |
CN103593063B (en) * | 2013-12-03 | 2017-01-18 | 广东威创视讯科技股份有限公司 | Method and device for using multiple input methods of time division |
CN106033258A (en) * | 2015-03-18 | 2016-10-19 | 联想(北京)有限公司 | Information processing method and electronic device |
CN106033258B (en) * | 2015-03-18 | 2019-01-15 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN107656667A (en) * | 2016-07-25 | 2018-02-02 | 宁波Gqy视讯股份有限公司 | A kind of distributed splicing display device and method |
CN109145542A (en) * | 2018-08-31 | 2019-01-04 | 广东虹勤通讯技术有限公司 | A kind of authority distributing method and device realizing multi-input device and working independently |
CN109145542B (en) * | 2018-08-31 | 2022-07-12 | 广东虹勤通讯技术有限公司 | Authority distribution method and device for realizing independent work of multiple input devices |
CN112799526A (en) * | 2021-01-29 | 2021-05-14 | 瑞芯微电子股份有限公司 | Method and system for simultaneously displaying and operating multiple mice in single system |
CN115543157A (en) * | 2022-12-01 | 2022-12-30 | 中国人民解放军国防科技大学 | Single-display-card-based independent multi-graphic user man-machine interaction method, device and system |
CN115543157B (en) * | 2022-12-01 | 2023-04-07 | 中国人民解放军国防科技大学 | Single-display-card-based independent multi-graphic user man-machine interaction method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN102750151B (en) | 2016-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102750151A (en) | Method and system for realizing simultaneous input of multiple keyboards | |
CN103778079B (en) | Dual operating system architecture capable of sharing USB device and sharing method | |
CN109981878A (en) | A kind of method and device of management of icons | |
CN101102565B (en) | A processing method, device and equipment of user data in communication terminal | |
US20210352059A1 (en) | Message Display Method, Apparatus, and Device | |
CN103226442B (en) | A kind of method of batch processing file and device | |
CN103346921B (en) | User management method and relevant device and communication system | |
CN106470110A (en) | Method and device to the multiple user's pocket transmission news in user list | |
CN113918055A (en) | Message processing method and device and electronic equipment | |
CN105468264A (en) | Method and apparatus for controlling application in control mode and terminal device | |
CN103838375A (en) | Terminal input method and terminal | |
CN113504859A (en) | Transmission method and device | |
CN106302932A (en) | The method and apparatus checking log in communication terminal | |
CN103294175A (en) | Electronic device and method for electronic device to automatically switch input modes | |
CN104133671B (en) | The hardware interface screening arrangement and method of a kind of digital processing device | |
CN104317516A (en) | Method for fast processing mobile terminal application program notification and implementation system of method | |
CN113867583A (en) | Message record display method and device and electronic equipment | |
WO2018120882A1 (en) | Method for acquiring event information on mobile terminal and mobile terminal | |
WO2023078460A1 (en) | Information sending method, information sending apparatus, and electronic device | |
CN105787323A (en) | Safety protection method for WiFi hotspot and mobile terminal | |
CN105867772A (en) | Method and device for quickly closing application notice and user equipment | |
CN114817419A (en) | Kafka-based media asset data storage method and device, electronic equipment and storage medium | |
CN110059215B (en) | Arrangement system suitable for rapid naming and filing of defect photos of power transmission line | |
CN114398016A (en) | Interface display method and device | |
CN102254358A (en) | Work attendance checking device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 510670 Guangdong Province, Guangzhou high tech Industrial Development Zone Kezhu Road No. 233 Patentee after: VTRON GROUP Co.,Ltd. Address before: 510663 Guangzhou province high tech Industrial Development Zone, Guangdong, Cai road, No. 6, No. Patentee before: VTRON TECHNOLOGIES Ltd. |
|
CP03 | Change of name, title or address | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160413 |
|
CF01 | Termination of patent right due to non-payment of annual fee |