[go: up one dir, main page]

CN1591336B - Method for simulating computer keyboard or mouse operation - Google Patents

Method for simulating computer keyboard or mouse operation Download PDF

Info

Publication number
CN1591336B
CN1591336B CN 03153848 CN03153848A CN1591336B CN 1591336 B CN1591336 B CN 1591336B CN 03153848 CN03153848 CN 03153848 CN 03153848 A CN03153848 A CN 03153848A CN 1591336 B CN1591336 B CN 1591336B
Authority
CN
China
Prior art keywords
keyboard
mouse
analog
driven program
computer
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.)
Expired - Fee Related
Application number
CN 03153848
Other languages
Chinese (zh)
Other versions
CN1591336A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN 03153848 priority Critical patent/CN1591336B/en
Publication of CN1591336A publication Critical patent/CN1591336A/en
Application granted granted Critical
Publication of CN1591336B publication Critical patent/CN1591336B/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention discloses a method for simulating computer keyboard or mouse operation. It is characterized by that in the computer system a simulation drive program for simulating keyboard or mouse operation is set, and at least an input source equipment capable of simulating keyboard or mouse operation is defined, and a correspondent equipment drive program is set, and the described simulation drive program and the described equipment drive program can be called firstly when the system is started and resided in the computer system, so that when the keyboard or mouse simulation operation data correspondent to input of input source equipment are obtained by said equipment drive program and said simulation operation data are transferred into simulation drive program, the simulation drive program can utilize described simulation operation data to produce operation for simulating keyboard or mouse.

Description

The method of analog computer keyboard or mouse action
Technical field
The present invention relates to a kind of simulated operation method of electronic equipment, especially to the simulated operation method of computer equipment.
Background technology
The main input equipment of computing machine is keyboard or mouse, owing to many times need control computing machine with particular form, for example to computer remote control, this just needs the operation of simulating keyboard or mouse.In the method for present existing analog computer keyboard or mouse action, a kind of method is by hardware device, as programming waits and realizes this analoglike to keyboard controller.This method need rely on computer hardware, and the operation that provides such as the Basic Input or Output System (BIOS) of computer-internal (BIOS) drives and support, therefore realizes dumbly, and versatility is poor; Another method is that the application program by the upper strata realizes simulating, because will starting at computer system platform usually, upper level applications just can enter into the simulated operation that running status is carried out keyboard or mouse after structure is finished, therefore the operation that can simulate is incomplete, for example on the login interface when os starting (comprise login first, later login again and switch user etc.) and just can't use, so usable range and environment are restricted.
For example application number is " 01120316.1 ", the Chinese patent application that name is called " keyboard button simulating is in the method and the device of telepilot " discloses a kind of telepilot keyboard button simulating method of operating of utilizing, this method is by representing the data of keyboard corresponding to place, the address storage of telepilot respective keys in storage arrangement, when a conveyer receives operation from telepilot, the keyboard data that this operation is corresponding is sent to main system in memory storage, thereby realizes utilizing the operation of telepilot simulating keyboard.This analogy method is higher to the degree of dependence of hardware, make cost also higher, and the input source of this method is more single, and the dirigibility and the versatility of realistic simulation operation also are very restricted.
Summary of the invention
For solving above-mentioned prior art problems, task of the present invention be to provide a kind of simulated operation flexibly, the versatility method of analog computer keyboard or mouse action preferably.
For realizing above-mentioned task, the method for analog computer keyboard provided by the invention or mouse action comprises:
In computer system, be provided for the analog-driven program of simulating keyboard or mouse action;
Determine that at least one can simulating keyboard or the input source equipment of mouse action, the corresponding apparatus driver is set, described analog-driven program and described device driver at first are called when system start-up and reside in the computer system;
Device driver is obtained the keyboard or the mouse simulated operation data of corresponding input source equipment input, and gives the analog-driven program with this simulated operation data transfer, utilizes described simulated operation data to produce the operation of simulating keyboard or mouse by the analog-driven program.
Described method also comprises: the interface function that the analog-driven program is used to receive simulating keyboard or mouse action data is set.
Keyboard or mouse simulated operation data that the said equipment driver is imported source device by described interface function send described analog-driven program to.
In the method for the invention, the driver of described input source equipment detects the interface that connects source device according to the mode of setting, after receiving input signal, call described interface function and transmit the simulated data that produces keyboard or mouse action to the analog-driven program.
Described method also comprises, for the analog-driven program is provided with Status Flag, by described Status Flag control analog-driven program enable and disabled status between switch.
Described input source equipment comprises keyboard on the RTU (remote terminal unit) that can produce the input of mouse and/or keyboard or mouse, telepilot, joystick, keypad, touch pad, TrackPoint.
Described method also comprises: when computer operating system inquiry keyboard or mouse device, report and register virtual keyboard or mouse device by system driver to operating system.
Because the present invention is provided with the analog-driven program that is used for simulating keyboard or mouse action in computer system, and determine can simulating keyboard or the input source equipment of mouse action and the corresponding apparatus driver is set for this equipment, like this, by described analog-driven program and described device driver at first being called when the system start-up and residing in the computer system, the analog-driven program not only can be registered the existence of keyboard or mouse to computer operating system, keyboard or mouse simulated operation data that the corresponding input source equipment that also can utilize the corresponding apparatus driver to obtain is imported, the operation that produces simulating keyboard or mouse.Technique scheme does not need the hardware supported of computer system, can realize method of the present invention by software fully, and is therefore lower to the degree of dependence of hardware; Simultaneously, the present invention only needs for the different input source equipment that is adopted is provided with corresponding driver, just can realize any selection of input source equipment and use simultaneously, thereby have the dirigibility and the versatility of better simulating keyboard and mouse action.
Being also advantageous in that of scheme of the present invention, when computer starting, the analog-driven program is to the operating system report and registered a virtual keyboard or mouse device, begin in the time of thus, this analog-driven program promptly can be carried out complete simulation to the operation of keyboard or mouse, for example on the login interface of operating system, (comprise login first, later login again and switching user etc.), promptly can be by the operation of this analog-driven process simulation keyboard or mouse, thereby login, this is that the simulating keyboard realized of the application program mode on prior art upper strata or the method for mouse can't be accomplished.
Description of drawings
Fig. 1 is the initialization flowchart of the method for the invention;
Fig. 2 is the simulating keyboard or the mouse action process flow diagram flow chart of the method for the invention;
Fig. 3 is the long-range simulating keyboard or the mouse action process flow diagram flow chart of the method for the invention.
Embodiment
The present invention program's essence is the mode by the system simulation driver, to the operation of operating system analog computer keyboard or mouse.Therefore, from the angle of operating system, this analog-driven program has promptly been represented the keyboard or the mouse of a standard, can carry out complete simulation to the operation of keyboard or mouse, below the present invention concrete implementation and advantage is elaborated.
At first in computer system, be provided for the analog-driven program of simulating keyboard or mouse action, this analog-driven program can produce the simulated operation of keyboard or mouse according to the service data of input source equipment that is used for producing analog mouse or keyboard operation of computing machine outside.To determine that also at least one can simulating keyboard or the input source equipment of mouse action, the corresponding apparatus driver is set.That is to say no matter which type of input source equipment is computer system adopt, all will set in advance the driver of the input source equipment that can write to each other mutually with the analog-driven program.
For computer system, when system start-up, operating system all can inquiry keyboard or computer-related devices such as mouse, and it is detected, if the said equipment lacks or is in malfunction, operating system or stop running, or mask faulty equipment.Therefore, if carry out the simulation of mouse or keyboard, especially when the keyboard of computing machine or mouse do not exist, need this analog-driven program to report and register a virtual keyboard or mouse device to operating system, operating system approves that just this analog-driven program represented the keyboard or the mouse of a standard after accepting registration, therefore can provide corresponding interface to this driver, by the described interface of this analog-driven routine call, the operation that can produce keyboard or mouse.Like this, can simulating keyboard or the operation of mouse for just making at the beginning of the system start-up, the present invention at first makes described analog-driven program and described device driver be called when system start-up and resides in the computer system, no matter what source input equipments computing machine is connected with, when an input source equipment produces the operation of simulating keyboard or mouse, this input source equipment corresponding equipment driver obtains the keyboard or the mouse simulated operation data of corresponding input source equipment input, and give the analog-driven program with this simulated operation data transfer, utilize described simulated operation data to produce the operation of simulating keyboard or mouse by the analog-driven program.
In such scheme, for giving the analog-driven program, can utilize the method for shared memory cell or shared register with the simulating keyboard of input source equipment generation or the data transfer of mouse action, promptly utilize storage unit or register to realize the transmission of data.But, having better flexibility of operation for making analog-driven program of the present invention, the present invention is used to receive the interface function of simulating keyboard or mouse action data for the analog-driven program is provided with.Like this, as long as the driver of input source equipment correspondence sends the keyboard or the mouse simulated operation data of corresponding input source equipment input to described analog-driven program by calling described interface function, just can realize of the simulation of each input source equipment to keyboard or mouse action.
In the reality, any input source equipment can keep being connected with computing machine by the corresponding interface that is installed in computer-side, for example adopts wired, wireless (as infrared) mode.Among the present invention, described input source equipment can be the equipment that can produce independent keyboard or mouse input, also can be can either produce the keyboard input can produce the equipment of mouse input again.Therefore, input source equipment includes, but are not limited to following equipment: the keyboard on keypad, telepilot, mobile phone, PDA and other handheld device that can use do remote control, touch pad, TrackPoint, the remote terminal kind equipment, mouse etc.No matter adopt the sort of connected mode, the driver of input source equipment all can detect the interface of the connection source device that is installed in computer-side according to the mode of setting (as interrupt mode or timing inquiry mode etc.), after receiving input signal, call described interface function and transmit the data that produce keyboard or mouse action to the analog-driven program.
Among the present invention, because the analog-driven program externally provides the corresponding interface function, the input source equipment that no matter is connected on the described computing machine has several, its corresponding driver is when the operation input that receives input source equipment, by calling the operation that this interface function can produce keyboard or mouse, therefore, among the present invention, input source equipment can be one or more equipment.
From the above, the method of the invention is when specific implementation, can be by the software simulation of an analog-driven program realization to keyboard or mouse be installed on computers, therefore scheme of the present invention can realize by software fully, without any need for hardware supported, therefore be applicable to and realize various operating system platforms very convenient.And, adopting scheme of the present invention, input source can be very flexible.For example can be by the equipment of similar terminal or telepilot etc. as its input source, even can there be a plurality of input sources simultaneously, this is similar to is installing a plurality of real keyboards or mouse (keyboard of PS2 and USB for example can be installed simultaneously) simultaneously on a computing machine on the computing machine, and they can normally be worked, thereby can realize of the simulation of a plurality of input source equipment simultaneously to keyboard or mouse, and be independent of each other, and, can also normally work simultaneously with real keyboard or mouse.
The present invention also is provided with Status Flag for the analog-driven program, by described Status Flag control analog-driven program enable and disabled status between switch, whether keyboard or mouse device with the control simulation will be enabled, and promptly can enable or forbid the keyboard or the mouse action of analog-driven process simulation input source equipment at any time.For example, when using a computer by common mode, do not need the operation of simulating keyboard or mouse, just be provided with this state this moment is disabled status, forbids the analog-driven program thus and produces simulated operation.Need explanation, Status Flag can indicate the analog-driven program, also can indicate interface function, promptly can be used to control the analog-driven program, also can control the docking port function calls, to realize enabling or forbidding the keyboard of analog-driven process simulation input source equipment or the control of mouse action.
Fig. 1 is the initialization flowchart of the method for the invention.According to Fig. 1, at first be computer starting, start initially, analog-driven program and corresponding input source equipment corresponding equipment driver are called and resided in the internal memory of computer system.And, in follow-up start-up course, when operating system during at step 11 inquiry keyboard or mouse, send the inquiry test instruction to keyboard and mouse interface, the analog-driven program intercepts is after this instruction, send the keyboard of registration simulation or replying of mouse device in step 12 to operating system, operating system is after receiving registration reply, i.e. approval exists corresponding keyboard or mouse device.Because this logon mode is consistent with the logon mode of real keyboard or mouse device, so from the angle of operating system, by the keyboard of driver simulation or mouse device and keyboard or mouse device and indistinction really.Thus, operating system promptly receives the keyboard or the mouse action of being simulated by driver in step 13, i.e. the keyboard or the mouse of driver simulation are started working.Thus, as long as calling of input source arranged, driver promptly can be handled accordingly.So far, the initialization operation process is finished.
Fig. 2 is the simulating keyboard or the mouse action process flow diagram flow chart of the method for the invention, supposes in this example with the telepilot to be input source equipment, is used to produce the keyboard or the mouse action of needs simulation.According to Fig. 2, when telepilot after step 21 produces keyboard or mouse action, the data-signal of described operation is sent in the interface in the computing machine, after this data-signal is captured by the driver of telepilot, in step 22 it is resolved to operating parameter and calls the interface function that the analog-driven program provides, send described parameter to the analog-driven program, carry out the processing of simulating keyboard or mouse action by the analog-driven program.The analog-driven program is checked Status Flag in step 23, if be in initiate mode, then the analog-driven program produces corresponding keyboard or mouse action (step 24) on principal computer, if instead be in disabled status, then the analog-driven program is not then done any processing.So, the processing of simulating keyboard or mouse action operation is finished.Certainly, in the computer run process, can enable or forbid operation by Status Flag at any time by the keyboard or the mouse of analog-driven process simulation.
The method of simulating keyboard of the present invention or mouse can be applied on any computing machine.Fig. 3 is the long-range simulating keyboard or the mouse action process flow diagram flow chart of the method for the invention.The described flow process of Fig. 3 is based on following hardware environment: a principal computer and a computer terminal are connected to each other by network, real keyboard or mouse are installed on computer terminal, and the keyboard or the mouse of the software simulation of being realized by the analog-driven program of the present invention are installed on principal computer.Requirement is implemented in the purpose of host computer hands-operation by operating in keyboard or the mouse on the computer terminal.Thereby realize this principal computer being carried out long-range remote control by operational computations machine terminal device.
According to Fig. 3, by the keyboard of the analog-driven process simulation computer terminal of simulating keyboard in the principal computer or mouse or the operation of mouse.The user operates real keyboard or mouse (step 31) on computer terminal, corresponding keyboard or mouse action are sent on the principal computer by network in step 32.Terminal hander on the principal computer (being the driver of terminal device) receives the service data of the keyboard that sends or mouse in step 33 by the terminal interface on the principal computer after, call the interface function that the analog-driven program provides, notify corresponding keyboard of analog-driven process simulation or mouse action thus.At last, the analog-driven program produces corresponding keyboard or mouse action (step 34) on principal computer.So, by the keyboard or the mouse of operational computations machine terminal device, realized Remote to principal computer.

Claims (7)

1. the method for analog computer keyboard or mouse action is characterized in that comprising:
In computer system, be provided for the analog-driven program of simulating keyboard or mouse action;
Determine that at least one can simulating keyboard or the input source equipment of mouse action, the corresponding apparatus driver is set, described analog-driven program and described device driver at first are called when system start-up and reside in the computer system;
Device driver is obtained the keyboard or the mouse simulated operation data of corresponding input source equipment input, and gives the analog-driven program with this simulated operation data transfer, utilizes described simulated operation data to produce the operation of simulating keyboard or mouse by the analog-driven program.
2. the method for analog computer keyboard according to claim 1 or mouse action is characterized in that, described method also comprises: the interface function that the analog-driven program is used to receive simulating keyboard or mouse action data is set.
3. the method for analog computer keyboard according to claim 2 or mouse action is characterized in that, keyboard or mouse simulated operation data that device driver is imported source device by described interface function send described analog-driven program to.
4. the method for analog computer keyboard according to claim 3 or mouse action, it is characterized in that: the driver of input source equipment detects the interface that connects source device according to the mode of setting, after receiving input signal, call described interface function and transmit the simulated data that produces keyboard or mouse action to the analog-driven program.
5. the method for analog computer keyboard according to claim 2 or mouse action is characterized in that: for the analog-driven program is provided with Status Flag, by described Status Flag control analog-driven program enable and disabled status between switch.
6. according to the method for claim 1,2,3,4 or 5 described analog computer keyboards or mouse action, it is characterized in that: described input source equipment comprises keyboard on the RTU (remote terminal unit) that can produce the input of mouse and/or keyboard or mouse, telepilot, joystick, keypad, touch pad, TrackPoint.
7. according to the method for claim 1,2,3,4 or 5 described analog computer keyboards or mouse action, it is characterized in that, described method also comprises: when computer operating system inquiry keyboard or mouse device, report and register virtual keyboard or mouse device by system driver to operating system.
CN 03153848 2003-08-25 2003-08-25 Method for simulating computer keyboard or mouse operation Expired - Fee Related CN1591336B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 03153848 CN1591336B (en) 2003-08-25 2003-08-25 Method for simulating computer keyboard or mouse operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 03153848 CN1591336B (en) 2003-08-25 2003-08-25 Method for simulating computer keyboard or mouse operation

Publications (2)

Publication Number Publication Date
CN1591336A CN1591336A (en) 2005-03-09
CN1591336B true CN1591336B (en) 2010-09-22

Family

ID=34597886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 03153848 Expired - Fee Related CN1591336B (en) 2003-08-25 2003-08-25 Method for simulating computer keyboard or mouse operation

Country Status (1)

Country Link
CN (1) CN1591336B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750146A (en) * 2012-06-07 2012-10-24 惠州Tcl移动通信有限公司 Method for realizing simulated mouse control in intelligent terminal and intelligent terminal

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100451887C (en) * 2006-07-25 2009-01-14 上海振华港口机械(集团)股份有限公司 General Electric Control System Fault Location Method
CN102236455A (en) * 2010-04-29 2011-11-09 宏碁股份有限公司 Electronic device and virtual mouse starting method
CN102331872A (en) * 2011-05-30 2012-01-25 广州视睿电子科技有限公司 Method and device for realizing mouse middle key effect on touch screen
CN102331901A (en) * 2011-05-30 2012-01-25 广州视睿电子科技有限公司 Method and device for realizing mouse middle key effect on touch screen
CN102298446B (en) * 2011-08-20 2013-02-20 运城学院 Multi-mouse/multi-keyboard emulator
CN104750498B (en) * 2012-02-24 2018-12-18 青岛海信电器股份有限公司 A kind of method and electronic equipment controlling mouse module
CN103473110A (en) * 2012-06-08 2013-12-25 腾讯科技(深圳)有限公司 Equipment control method, device and system
CN102999373A (en) * 2012-12-06 2013-03-27 Tcl通讯(宁波)有限公司 Stimulator for stimulating press-key apparatus and implement method of stimulator
CN104216826A (en) * 2013-06-05 2014-12-17 腾讯科技(深圳)有限公司 Test method and device
CN104202638A (en) * 2014-08-27 2014-12-10 深圳市启望科文技术有限公司 Key remote control and method for controlling electronic device through same
US9798537B2 (en) * 2015-09-14 2017-10-24 Mastercard International Incorporated Isolating applications with a segmented architecture
CN109144300B (en) * 2018-07-27 2021-12-21 中国船舶重工集团公司第七0九研究所 Multipurpose remote mouse key control method and system
CN109918140A (en) * 2019-03-13 2019-06-21 厦门网宿有限公司 A kind of cloud application method of controlling operation thereof and device
CN112055050B (en) * 2020-08-04 2023-04-18 深圳航天智慧城市系统技术研究院有限公司 USB mouse and keyboard simulation system and method based on edge computing technology
CN112684914B (en) * 2020-12-31 2021-11-19 深圳雷柏科技股份有限公司 Kernel-driven-based method for realizing keyboard and mouse function modification and related equipment
CN114035697B (en) * 2021-11-26 2023-10-03 中国电子技术标准化研究院 A low-radiation and anti-electromagnetic interference keyboard and mouse simulation device and method
US12307022B2 (en) 2023-10-18 2025-05-20 Hcl Technologies Limited Method and system for automating keyboards for device testing
CN119356745A (en) * 2024-12-25 2025-01-24 深圳市迅龙软件有限公司 Startup firmware control method, device, computer equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750146A (en) * 2012-06-07 2012-10-24 惠州Tcl移动通信有限公司 Method for realizing simulated mouse control in intelligent terminal and intelligent terminal
CN102750146B (en) * 2012-06-07 2016-11-09 惠州Tcl移动通信有限公司 Based on the method and the IPTV that realize in the IPTV of Android system that analog mouse controls

Also Published As

Publication number Publication date
CN1591336A (en) 2005-03-09

Similar Documents

Publication Publication Date Title
CN1591336B (en) Method for simulating computer keyboard or mouse operation
CN101673146B (en) Keyboard-screen-mouse switcher using touchscreen
US8589141B2 (en) Resource sharing apparatus which disconnects an input device when detecting a standby indication of a switching command
CN101539897B (en) Multicomputer switching device and operation method thereof
CN105573637A (en) Operation method and device for touch screen equipment
CN1858692A (en) A control system for controlling multiple target computers via a portable computer
CN103970279A (en) Control method and system for cloud game
CN103514074A (en) MVB network card development method and platform
CN102736936B (en) Method for remotely interacting console programs
KR101284403B1 (en) System and method for customizing a scsi error response received from a scsi target in a storage network environment
CN105843758A (en) multi-computer switcher and operation method thereof
CN107817962B (en) Remote control method, device, control server and storage medium
CN101452413A (en) Automatic detection system and method for keyboard interface of notebook computer
CN103020068B (en) A kind of synchronous method and synchronous device
CN111813237A (en) Method for realizing remote control of virtual keyboard and mouse
CN107357747B (en) Identification method of external equipment interface and mobile terminal
US9753741B2 (en) Remote inking
CN107360316B (en) Incoming call processing method, mobile terminal and computer readable storage medium
US20170142245A1 (en) Electronic apparatus with shareable input devices and input device sharing method thereof
KR101284791B1 (en) Method and apparatus for implementing computer operating system using mobile terminal
CN102193640B (en) Computer switcher with programmable switching control
CN109857469B (en) Display control method and related products
CN111352357B (en) Robot control method and device and terminal equipment
CN100458728C (en) Method and system for simulating chip operation
CN105022578A (en) Input control system and method

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100922

Termination date: 20200825