CN102750151B - A kind of method and system realizing muliple keyboards and input simultaneously - Google Patents
A kind of method and system realizing muliple keyboards and input simultaneously Download PDFInfo
- Publication number
- CN102750151B CN102750151B CN201210203831.XA CN201210203831A CN102750151B CN 102750151 B CN102750151 B CN 102750151B CN 201210203831 A CN201210203831 A CN 201210203831A CN 102750151 B CN102750151 B CN 102750151B
- 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.)
- Active
Links
Abstract
The present invention relates to muliple keyboards input technology field, particularly relate to a kind of method and system realizing muliple keyboards and input simultaneously.The method step comprises: set up the keyboard of access and the mapping relations of application window; According to described mapping relations, the character of described input through keyboard is sent to corresponding described application window.The present invention is by setting up the mapping relations of the application window of keyboard and correspondence, the character of each input through keyboard can be sent to corresponding application window by searching mapping relations, achieves multiple keyboard and sends character to different application windows simultaneously; Principle design of the present invention is ingenious, and implementation is simple, and realize many people and independently operate simultaneously, substantially increase work efficiency, practicality is very high, is worthy to be popularized.
Description
Technical field
The present invention relates to muliple keyboards input technology field, particularly relate to and a kind ofly realize method that muliple keyboards inputs simultaneously and a kind of system realizing muliple keyboards and input simultaneously.
Background technology
In existing operating system, the processing procedure of traditional Keyboard Message is: keyboard exports scan code to keyboard drive, drive and scan code be encapsulated as origination message, be then sent to system message queue, system by message distribution to the window of application program obtaining focus; And in a system, gather around focal window and can only have one, that is to say and can only send character to gathering around focal window, so when a computer has multiple keyboard, and when wishing that each keyboard inputs alone information to different application windows, the message process mode of current operation system cannot complete this task.
Summary of the invention
Based on this, the invention provides a kind of method realizing muliple keyboards and input simultaneously, the method is by setting up the mapping relations of the application window of keyboard and correspondence, the character of each input through keyboard can be sent to corresponding application window by searching mapping relations, achieves multiple keyboard and sends character to different application windows simultaneously.
Another object of the present invention is to provide the system realizing said method.
Realize the method that muliple keyboards inputs simultaneously, comprise the steps:
Set up the keyboard of access and the mapping relations of application window;
According to described mapping relations, the character of described input through keyboard is sent to corresponding described application window.
Realize the system that muliple keyboards inputs simultaneously, comprise and set up module and sending module;
Describedly set up the mapping relations of module for the keyboard and application window of setting up access;
Described sending module is used for according to the described described mapping relations set up in module, the character of described input through keyboard is sent to corresponding described application window.
The present invention is by setting up the mapping relations between keyboard and corresponding application window, the character of input through keyboard only need according to described mapping relations, character can be sent to corresponding application window, achieve multiple keyboard and send character to different application window simultaneously;
Principle design of the present invention is ingenious, and implementation is simple, existing computer operating system can utilize technical scheme of the present invention realize easily;
The present invention can be widely used in large-scale combination field, and the controller of combination accesses multiple keyboard, and can realize many people and independently operate simultaneously on same combination, substantially increase work efficiency, practicality is very high, is worthy to be popularized.
Accompanying drawing explanation
Fig. 1 is the method schematic flow sheet in one embodiment that the present invention realizes muliple keyboards and inputs simultaneously.
Fig. 2 is the schematic flow sheet that the present invention realizes that method that muliple keyboards inputs simultaneously sets up mapping relations step in one embodiment.
Fig. 3 is the schematic flow sheet that the present invention realizes that method that muliple keyboards inputs simultaneously sends character step in one embodiment.
Fig. 4 is the system structural representation in one embodiment that the present invention realizes muliple keyboards and inputs simultaneously.
Fig. 5 is the structural representation that the present invention realizes that system that muliple keyboards inputs simultaneously sets up module in one embodiment.
Fig. 6 is the structural representation that the present invention realizes system that muliple keyboards inputs simultaneously sending module in one embodiment.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited thereto.
As shown in Figure 1, be the method schematic flow sheet in one embodiment that the present invention realizes muliple keyboards and inputs simultaneously, comprise the steps:
S11, the keyboard of foundation 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 keyboard of each access;
For existing conventional Windows operating system, the system function RawInput function of this operating system is for identifying the keypad information of access, the present embodiment is by GetRawInputDeviceList function call RawInput function, get the keypad information of each access, this keypad information comprises described keyboard identifier or keyboard title etc., only need obtain keyboard identifier in the present embodiment;
Other operating system is as (SuSE) Linux OS etc., and details is slightly different on realizing, but its thinking realized that's about the size of it, it will not go into details here, and following examples all will be described for Windows operating system;
The window identifier of the application window that S210, acquisition have been opened;
Can be realized by EnumWindows function in a preferred embodiment, EnumWindows enumeration function is for checking the application window number change in operating system, the information of the application window opened can be got by this function, in the present embodiment, only need get window identifier;
S220, set up mapping relations table between described keyboard identifier and corresponding described window identifier;
For this step, by a newly-built chained list, the keyboard identifier of each keyboard obtained by step S200 is kept in this chained list, and the window identifier of each application window obtained by step S210 is kept in another chained list; According to the corresponding relation between keyboard and application window, a certain keyboard identifier can be associated with a certain window identifier, the one-to-one relationship of keyboard identifier chained list and window identifier chained list is set; Also can keyboard identifier and window identifier be all kept in 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 acquisition of corresponding relation between above-mentioned keyboard and application window, can have multiple implementation; The keypad information that such as GetRawInputDeviceList function in step S210 can be got adds in the right mouse button list of system in real time, when cursor of mouse is placed on the application window opened by user, right button of clicking the mouse is selected to be connected to corresponding keyboard, can arrange the corresponding relation of keyboard and application window voluntarily; Also can a newly-built program window, in this window, enumerate the application window information of all keypad informations of display and all unlatchings, user arranges the corresponding relation of keyboard and application window voluntarily in this window;
S12, according to described mapping relations, the character of described input through keyboard is sent to corresponding described application window;
As shown in Figure 3, in a preferred embodiment, step S12 specifically can comprise the steps:
S300, receive the character of each described input through keyboard;
S310, keyboard identifier according to the keyboard of described input character, inquire about described mapping relations table, described character be sent to the described application window that described keyboard is corresponding;
Operating system, can first according to the keyboard identifier of this keyboard when receiving the character of input through keyboard, and the mapping relations table set up in finding step S220, finds the application window corresponding with this keyboard; Windows operating system is that the character of acquisition is sent to system message queue with the window identifier of the application window receiving character is packaged for the treatment scheme of input through keyboard character; Therefore in this step, find the window identifier that this input character is corresponding, according to the treatment scheme of origin operation system, character can be sent in application window;
To this step, the method has achieved the task of input character while that multiple keyboard working simultaneously, compensate for the defect of prior art, and the mentality of designing of the method is simple ingenious, and each step can be easier to realize for those skilled in the art;
In a preferred embodiment, the present invention also can comprise following one or more step:
Identify the keyboard identifier of described keyboard disconnected, delete the window identifier of described keyboard identifier in described mapping relations table and correspondence;
By the access of RawInput function identification keyboard or disconnection in step S200, disconnect when having recognized keyboard, then can notify that mapping relations table upgrades in time, delete the keyboard identifier that this that record in mapping relations tables disconnects keyboard, and the window identifier that this keyboard identifier is corresponding;
Identify the window identifier of described application window of closing, delete the window identifier of described keyboard identifier in described mapping relations table and correspondence;
By the unlatching of application window in EnumWindows function recognition system or closedown in step S210, be closed when having recognized application window, then can notify that mapping relations table upgrades, delete the window identifier of the program window of this closedown of recording in mapping relations table, and the keyboard identifier that this window identifier is corresponding;
The mapping relations of the described keyboard set up described in releasing and the application window of correspondence, delete the window identifier of described keyboard identifier in described mapping relations table and correspondence;
In step S220 in the process of corresponding relation obtaining keyboard and application window, detect user in a certain application window, disconnected with former corresponding keyboard by right mouse button selection, then can notify that mapping relations table upgrades, the mapping relations of the described keyboard set up described in releasing and the application window of correspondence, delete the window identifier of described keyboard identifier in described mapping relations table and correspondence;
The object of above-mentioned three steps is all real-time update mapping relations table, avoids mapping relations table to store overabundance of data, improves the inquiry velocity of mapping relations table in step S12.
The present invention also provides a kind of system realizing muliple keyboards and input simultaneously, as shown in Figure 4, is this system structural representation in a preferred embodiment, comprises and set up module 41 and sending module 42;
Describedly set up the mapping relations of module 41 for the keyboard and application window of setting up access;
As shown in Figure 5, in a preferred embodiment, described module 41 of setting up comprises keyboard identifier module 500, window identifier module 510 and mapping relations table module 520;
Described keyboard identifier module 500 is for obtaining the keyboard identifier of the keyboard of each access;
Described window identifier module 510 is for obtaining the window identifier of the application window opened;
Described mapping relations table module 520 is for setting up the mapping relations table between described keyboard identifier and corresponding described window identifier;
The character of described input through keyboard, for according to the described described mapping relations set up in module 41, is sent to corresponding described application window by described sending module 42;
As shown in Figure 6, in a preferred embodiment, described sending module 42 comprises receiver module 600 and inquiry sending module 610;
Described receiver module 600 is for receiving the character of each described input through keyboard;
Described inquiry sending module 610, for the keyboard identifier of the keyboard according to described input character, inquires about described mapping relations table, and the described character received in described receiver module 600 is sent to described application window corresponding to described keyboard;
The described system realizing muliple keyboards and input simultaneously, also comprise removing module, described removing module is used for:
Identify the keyboard identifier of described keyboard disconnected, delete the window identifier of keyboard identifier in mapping relations table described in described mapping relations table module and correspondence;
Or/and identify the window identifier of described application window of closing, delete the window identifier of keyboard identifier in mapping relations table described in described mapping relations table module and correspondence;
Or/and the mapping relations of the application window of the described keyboard set up and correspondence described in removing, delete the window identifier of keyboard identifier in mapping relations table described in described mapping relations table module and correspondence.
The present invention is by setting up the mapping relations between keyboard and corresponding application window, the character of input through keyboard only need according to described mapping relations, character can be sent to corresponding application window, achieve multiple keyboard and send character to different application window simultaneously;
Principle design of the present invention is ingenious, and implementation is simple, existing computer operating system can utilize technical scheme of the present invention realize easily;
The present invention can be widely used in large-scale combination field, and the controller of combination accesses multiple keyboard, and can realize many people and independently operate simultaneously on same combination, substantially increase work efficiency, practicality is very high, is worthy to be popularized.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, 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 claims.
Claims (4)
1. realize the method that muliple keyboards inputs simultaneously, it is characterized in that, comprise the steps:
Set up the keyboard of access and the mapping relations of application window;
According to described mapping relations, the character of described input through keyboard is sent to corresponding described application window;
Wherein, the described step 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 opened;
Set up the mapping relations table between described keyboard identifier and corresponding described window identifier;
Wherein, described according to described mapping relations, the step input character of described keyboard being sent to corresponding described application window comprises:
Receive the character of each described input through keyboard;
According to the keyboard identifier of the keyboard of described input character, inquire about described mapping relations table, described character is sent to the described application window that described keyboard is corresponding.
2. the method realizing muliple keyboards and input simultaneously according to claim 1, is characterized in that, also comprises following one or more steps:
Identify the keyboard identifier of described keyboard disconnected, delete the window identifier of described keyboard identifier in described mapping relations table and correspondence;
Identify the window identifier of described application window of closing, delete the window identifier of described keyboard identifier in described mapping relations table and correspondence;
Remove the mapping relations of the application window of the described keyboard set up and correspondence, delete the window identifier of described keyboard identifier in described mapping relations table and correspondence.
3. realize the system that muliple keyboards inputs simultaneously, it is characterized in that, comprise and set up module and sending module;
Describedly set up the mapping relations of module for the keyboard and application window of setting up access;
Described sending module is used for according to the described described mapping relations set up in module, the character of described input through keyboard is sent to corresponding described application window;
Wherein, described module of setting up comprises keyboard identifier module, window identifier module and mapping relations table module;
Described keyboard identifier module is for obtaining the keyboard identifier of the keyboard of each access;
Described window identifier module is for obtaining the window identifier of the application window opened;
Described mapping relations table module is for setting up the mapping relations table between described keyboard identifier and corresponding described window identifier;
Wherein, described sending module comprises receiver module and inquiry sending module;
Described receiver module is for receiving the character of each described input through keyboard;
Described inquiry sending module is used for the keyboard identifier according to the keyboard of described input character, inquires about described mapping relations table, the described character received is sent to described application window corresponding to described keyboard in described receiver module.
4. the system realizing muliple keyboards and input simultaneously according to claim 3, it is characterized in that, also comprise removing module, described removing module is used for:
Identify the keyboard identifier of described keyboard disconnected, delete the window identifier of keyboard identifier in mapping relations table described in described mapping relations table module and correspondence;
Or/and identify the window identifier of described application window of closing, delete the window identifier of keyboard identifier in mapping relations table described in described mapping relations table module and correspondence;
Or/and remove the mapping relations of the application window of the described keyboard set up and correspondence, delete the window identifier of keyboard identifier in mapping relations table described in described mapping relations table module and correspondence.
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 CN102750151A (en) | 2012-10-24 |
CN102750151B true CN102750151B (en) | 2016-04-13 |
Family
ID=47030374
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210203831.XA Active 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) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102052977B1 (en) * | 2013-03-11 | 2019-12-06 | 삼성전자 주식회사 | Multi Input Control Method and System thereof, and Electronic Device supporting the same |
CN103593063B (en) * | 2013-12-03 | 2017-01-18 | 广东威创视讯科技股份有限公司 | Method and device for using multiple input methods of time division |
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 |
CN109145542B (en) * | 2018-08-31 | 2022-07-12 | 广东虹勤通讯技术有限公司 | Authority distribution method and device for realizing independent work of multiple input devices |
CN112799526B (en) * | 2021-01-29 | 2022-11-18 | 瑞芯微电子股份有限公司 | Method and system for simultaneously displaying and operating multiple mice in single system |
CN115543157B (en) * | 2022-12-01 | 2023-04-07 | 中国人民解放军国防科技大学 | 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 active Active
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 |
Also Published As
Publication number | Publication date |
---|---|
CN102750151A (en) | 2012-10-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102750151B (en) | A kind of method and system realizing muliple keyboards and input simultaneously | |
CN101876984A (en) | Data management system and data relation query method and device thereof | |
CN101102565B (en) | A processing method, device and equipment of user data in communication terminal | |
CN103346897B (en) | A kind of group's Adding Way and relevant device, system | |
CN102437970B (en) | The method of data acquisition in a kind of instant messaging and client | |
CN105184134A (en) | Smart watch based information display method and smart watch | |
CN104239343A (en) | User input information processing method and device | |
US20170339119A1 (en) | Message display method, apparatus, and device | |
CN105468264A (en) | Method and apparatus for controlling application in control mode and terminal device | |
CN111694495A (en) | Method, system and storage medium for rapidly docking third-party APP platform | |
CN102510421A (en) | Method and client for correlating dial plate of terminal to data application | |
CN105472178A (en) | Method for controlling voice communication by brain wave and system thereof | |
CN110633438B (en) | News event processing method, terminal, server and storage medium | |
CN102752294A (en) | Method and system for synchronizing data of multiple terminals on basis of equipment capacity | |
CN105677152A (en) | Voice touch screen operation processing method and device and terminal | |
KR20130071136A (en) | Method and apparatus for providing short-cut number in a user device | |
CN207557886U (en) | A kind of KVM switcher and control system | |
CN104133671B (en) | The hardware interface screening arrangement and method of a kind of digital processing device | |
CN103634640A (en) | Method and system for controlling voice input of smart television terminal by using mobile terminal equipment | |
CN104348957A (en) | Short message viewing method | |
CN108572594A (en) | Generation method, device and the terminal device of smart machine control instruction | |
CN107103086B (en) | Data acquisition auditing method and system, and computer readable storage medium | |
CN102156549A (en) | Method and device for supporting multi-device coordination input | |
CN103176635B (en) | Multi-control touch method and system | |
WO2023078460A1 (en) | Information sending method, information sending apparatus, and electronic 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 | ||
CP03 | Change of name, title or address |
Address after: 510670 Guangdong Province, Guangzhou high tech Industrial Development Zone Kezhu Road No. 233 Patentee after: Wei Chong group Limited by Share Ltd Address before: 510663 Guangzhou province high tech Industrial Development Zone, Guangdong, Cai road, No. 6, No. Patentee before: Guangdong Weichuangshixun Science and Technology Co., Ltd. |