CN111240501B - Method for realizing mouse and cursor control based on computer keyboard - Google Patents

Method for realizing mouse and cursor control based on computer keyboard Download PDF

Info

Publication number
CN111240501B
CN111240501B CN202010054149.3A CN202010054149A CN111240501B CN 111240501 B CN111240501 B CN 111240501B CN 202010054149 A CN202010054149 A CN 202010054149A CN 111240501 B CN111240501 B CN 111240501B
Authority
CN
China
Prior art keywords
key
pressed
cursor
mouse
function
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
Application number
CN202010054149.3A
Other languages
Chinese (zh)
Other versions
CN111240501A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202010054149.3A priority Critical patent/CN111240501B/en
Publication of CN111240501A publication Critical patent/CN111240501A/en
Application granted granted Critical
Publication of CN111240501B publication Critical patent/CN111240501B/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/03541Mouse/trackball convertible devices, in which the same ball is used to track the 2D relative movement
    • 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/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/0202Constructional details or processes of manufacture of the input device
    • 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

Abstract

The embodiment of the application discloses a method for realizing mouse control and cursor control based on a computer keyboard, which comprises the following steps: a mouse control starting key and a mouse control function key are preset, and when the main control module obtains signals input by the mouse control starting key and the mouse control function key at the same time, a mouse function signal corresponding to the mouse control function key is output; the terminal responds to the mouse function signal output by the main control module and executes the mouse function corresponding to the mouse function signal; a cursor control starting key and a cursor control function key are preset, and when the main control module acquires signals input by the cursor control starting key and the cursor control function key at the same time, a cursor function signal corresponding to the cursor control function key is output; the terminal responds to the cursor function signal output by the main control module and executes the cursor function corresponding to the cursor function signal. The keyboard main control edits on the basis of the original general key position mapping information, keys far away from the right hand can be output through key position combination, the functions of a mouse are simulated to operate, the hands do not need to move greatly, and the input efficiency is improved.

Description

Method for realizing mouse and cursor control based on computer keyboard
Technical Field
The embodiment of the application relates to the technical field of keyboard program control, in particular to a method for realizing mouse and cursor control based on remapping of keys of a computer keyboard program.
Background
As is well known, the mouse and cursor control have become important tools in the process of using a computer, the existing control mode is to control a mouse pointer through the mouse and control cursor movement through a direction key, but some office workers need to input a large amount of information (such as staff or programmers) daily through a keyboard, in the input process, the right hand can leave the original key position to move the mouse or move the cursor through the direction key, and then return to the original position after editing operation, so that the back and forth movement of the right hand can greatly influence the input speed, and meanwhile, in special occasions such as a server room, a console in a coal mine tunnel, a civil engineering site and the like, some places only allow the keyboard to be inserted, the mouse cannot be inserted, and some environments are bad and cannot use the mouse, so that the input speed and the experience of information are also influenced, and the keyboard is very necessary to control the mouse and the cursor movement.
Disclosure of Invention
Therefore, the embodiment of the application provides a method for realizing mouse and cursor control based on a computer keyboard, so as to solve the problems that in the prior art, the keyboard cannot control the mouse and the cursor to influence the information input speed and cannot adapt to special scenes.
In order to achieve the above purpose, the embodiment of the present application provides the following technical solutions:
according to a first aspect of embodiments of the present application, there is provided a method for implementing mouse and cursor control based on a computer keyboard, the method including:
a mouse control starting key and a mouse control function key are preset, and when the main control module obtains signals input by the mouse control starting key and the mouse control function key at the same time, a mouse function signal corresponding to the mouse control function key is output;
the terminal responds to the mouse function signal output by the main control module and executes the mouse function corresponding to the mouse function signal;
a cursor control starting key and a cursor control function key are preset, and when the main control module acquires signals input by the cursor control starting key and the cursor control function key at the same time, a cursor function signal corresponding to the cursor control function key is output;
the terminal responds to the cursor function signal output by the main control module and executes the cursor function corresponding to the cursor function signal.
Optionally, the terminal responds to the mouse function signal output by the main control module, and executes a mouse function corresponding to the mouse function signal, and the method further includes the following steps:
when the main control module loses the pressing signal of the mouse control start key, the main control module stops controlling the mouse function;
the terminal responds to the cursor function signal output by the main control module and executes a cursor function corresponding to the cursor function signal, and the method further comprises the following steps:
when the main control module loses the pressing signal of the cursor function starting key, the main control module stops controlling the cursor function.
Optionally, the mouse control start key is a SPACE key on a keyboard; the cursor control start key is a CAPS LOCK key on the keyboard.
Optionally, the keyboard uses a matrix circuit; when the key on the keyboard is pressed, the main control module searches the mapping information of the key mapping table corresponding to the key and outputs the mapping information to the computer terminal.
Optionally, when the SPACE key is pressed and the duration exceeds a set time threshold and the I key is pressed at the same time, the terminal executes the operation of moving the mouse pointer upwards; when the SPACE key is pressed and the duration exceeds a set time threshold and the K key is pressed at the same time, the terminal executes the downward movement operation of the mouse pointer; when the SPACE key is pressed and the duration exceeds the set time threshold and the J key is pressed at the same time, the terminal executes the operation of moving the mouse pointer leftwards; when the SPACE key is pressed and the time length exceeds the set time threshold and the L key is pressed at the same time, the terminal executes the operation of moving the mouse pointer to the right; when the SPACE key is pressed and the time length exceeds the set time threshold and the U key is pressed at the same time, the terminal executes the upward movement operation of the mouse wheel; when the SPACE key is pressed and the time length exceeds the set time threshold and the O key is pressed at the same time, the terminal executes the downward movement operation of the mouse wheel; when the SPACE key is pressed and the duration exceeds the set time threshold and the D key is pressed at the same time, the terminal executes the operation of clicking the left mouse button; and when the SPACE key is pressed and the duration exceeds the set time threshold and the F key is pressed at the same time, the terminal executes the operation of clicking the right mouse button.
Optionally, when the CAPS LOCK key is pressed and the duration exceeds the set time threshold and the I key is pressed at the same time, the terminal performs an operation of moving the cursor upwards, which is the same as a signal sent by clicking an upward key in the keyboard; when the CAPS LOCK key is pressed and the duration exceeds a set time threshold and the K key is pressed at the same time, the terminal executes the downward movement operation of the cursor, and the downward movement operation is the same as the signal sent by clicking the downward key in the keyboard; when the CAPS LOCK key is pressed and the duration exceeds a set time threshold and the J key is pressed at the same time, the terminal executes the operation of moving the cursor leftwards, and the operation is the same as the signal sent by clicking the leftwards key in the keyboard; when the CAPS LOCK key is pressed and the duration exceeds a set time threshold and the L key is pressed at the same time, the terminal executes the rightward movement operation of the cursor, and the operation is the same as the signal sent by clicking the rightward key in the keyboard; when the CAPS LOCK key is pressed and the duration exceeds a set time threshold and the U key is pressed at the same time, the terminal executes the operation of turning UP the PAGE by the cursor, and the operation is the same as the signal sent by clicking a key PAGE UP in the keyboard; when the CAPS LOCK key is pressed and the duration exceeds a set time threshold and the O key is pressed at the same time, the terminal executes the operation of turning DOWN the PAGE by the cursor, and the operation is the same as the signal sent by clicking a key PAGE DOWN in the keyboard; when the CAPS LOCK key is pressed and the duration exceeds a set time threshold and the H key is pressed at the same time, the terminal executes the operation that the cursor jumps to the current line head, and the operation is the same as the signal sent by clicking a key HOME in the keyboard; when the CAPS LOCK key is pressed and the duration exceeds a set time threshold and the semicolon key is pressed at the same time, the terminal executes the operation that the cursor jumps to the END of the current row, and the operation is the same as the signal sent by clicking a key END in the keyboard; when the CAPS LOCK key is pressed and the duration exceeds a set time threshold and the N key is pressed at the same time, the terminal executes the operation of deleting the cursor leftwards, which is the same as the signal sent by clicking the key back pack in the keyboard; when the CAPS LOCK key is pressed and the duration exceeds the set time threshold and the M key is pressed at the same time, the terminal executes the operation of deleting the cursor rightwards, which is the same as the signal sent by clicking the key DELETE in the keyboard.
According to a second aspect of embodiments of the present application, there is provided an electronic device, including: the device comprises a memory and a processor, wherein the processor and the memory are communicated with each other through a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions capable of performing any of the methods as provided in the first aspect.
According to a third aspect of embodiments of the present application, a computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of any of the methods as provided in the first aspect.
The embodiment of the application provides a method for realizing mouse and cursor control based on a computer keyboard, which comprises the steps of presetting a mouse control starting key and a mouse control function key, and outputting a mouse function signal corresponding to the mouse control function key when a main control module obtains signals input by the mouse control starting key and the mouse control function key simultaneously; the terminal responds to the mouse function signal output by the main control module and executes the mouse function corresponding to the mouse function signal; a cursor control starting key and a cursor control function key are preset, and when the main control module acquires signals input by the cursor control starting key and the cursor control function key at the same time, a cursor function signal corresponding to the cursor control function key is output; the terminal responds to the cursor function signal output by the main control module and executes the cursor function corresponding to the cursor function signal. Through the combination of the mapping information of the common key positions and the re-editing, the functions of keys far away from the right hand and the simulated operation mouse can be output, the hands do not need to move greatly, the input efficiency is improved, and the method is rapid and convenient. The technology can be applied to all keyboards with mouse control start keys, mouse control function keys, cursor control start keys and cursor control function keys to operate the mouse and the cursor.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It will be apparent to those of ordinary skill in the art that the drawings in the following description are exemplary only and that other implementations can be obtained from the extensions of the drawings provided without inventive effort.
The structures, proportions, sizes, etc. shown in the present specification are shown only for the purposes of illustration and description, and are not intended to limit the scope of the invention, which is defined by the claims, so that any structural modifications, changes in proportions, or adjustments of sizes, which do not affect the efficacy or the achievement of the present invention, should fall within the scope of the invention.
Fig. 1 is a flowchart of a method for implementing mouse and cursor control based on a computer keyboard according to an embodiment of the present application;
FIG. 2 is a flowchart of an embodiment of a method for implementing mouse and cursor control based on a computer keyboard according to an embodiment of the present application;
fig. 3 is a schematic diagram of a keyboard structure and a logo of a method for implementing mouse and cursor control based on a computer keyboard according to an embodiment of the present application.
Detailed Description
Other advantages and advantages of the present invention will become apparent to those skilled in the art from the following detailed description, which, by way of illustration, is to be read in connection with certain specific embodiments, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 shows a method for implementing mouse and cursor control based on a computer keyboard according to an embodiment of the present application, where the method may include the following steps:
step 101: the method comprises the steps of presetting a mouse control starting key and a mouse control function key, and outputting a mouse function signal corresponding to the mouse control function key when a main control module obtains signals input by the mouse control starting key and the mouse control function key simultaneously.
Step 102: the terminal responds to the mouse function signal output by the main control module and executes the mouse function corresponding to the mouse function signal.
Step 103: the method comprises the steps of presetting a cursor control starting key and a cursor control function key, and outputting a cursor function signal corresponding to the cursor control function key when a main control module obtains the simultaneous input signals of the cursor control starting key and the cursor control function key.
Step 104: the terminal responds to the cursor function signal output by the main control module and executes the cursor function corresponding to the cursor function signal.
In a possible implementation manner, the terminal responds to the mouse function signal output by the main control module and executes a mouse function corresponding to the mouse function signal, and the method further includes the following steps:
when the main control module loses the pressing signal of the mouse control start key, the main control module stops controlling the mouse function.
In a possible implementation manner, the terminal responds to the cursor function signal output by the main control module and executes a cursor function corresponding to the cursor function signal, and the method further includes the following steps:
when the main control module loses the pressing signal of the cursor function starting key, the main control module stops controlling the cursor function.
In one possible implementation, the mouse control start key may be a SPACE key on a keyboard; the cursor control start key may be a CAPS LOCK key on a keyboard.
In order to make the method provided by the embodiments of the present application more clear, a further explanation will be made with reference to fig. 2 and 3.
As shown in fig. 2, the main control module may be a main control board. The main control module detects the signal input of the key and judges whether the signal is the signal of the special key: if not, outputting according to the normal key signals; if yes, judging the special key signal type
After judging the signal type of the special key, if the signal type is a SPACE key, judging whether other keys are pressed simultaneously: if the other keys are not pressed at the same time, outputting the special key signals as normal key signals; if other keys are combined and pressed simultaneously, judging whether the combined key is a mouse control function key: if yes, activating a mouse starting key and a mouse control key, and further outputting a mouse control signal; if not, the main control module does not respond.
After judging the signal type of the special key, if the signal type is CAPS LOCK case locking key, judging whether other keys are pressed simultaneously: if the other keys are not pressed at the same time, outputting the special key signals as normal key signals; if the other keys are combined and pressed simultaneously, judging whether the combined keys are cursor control function keys or not: if yes, activating a cursor starting key and a mouse control key, and further outputting a cursor control signal; if not, the main control module does not respond.
The keyboard respectively comprises a plurality of trigger buttons and a main control module connected with the trigger buttons, wherein the main control module is used for identifying the trigger buttons, the trigger buttons controlled by the mouse are named as mouse control starting keys, in the embodiment, the mouse control starting keys are set as SPACE keys, the SPACE keys are translated into SPACE keys, the SPACE keys are clicked to realize the function of inputting SPACE, and corresponding identifiers are arranged on the SPACE keys so as to be convenient for operators to identify.
It should be noted that, in the embodiment of the present application, the "short press" (i.e., "clicking") refers to that the duration of pressing the key does not exceed the set time threshold, and the "long press" in the embodiment of the present application refers to that the duration of pressing the key exceeds the set time threshold, where the key time threshold is related to various factors such as the key type, PCB board technology, CPU chip frequency, etc., for example: compared with the film keyboard, the television remote control keys have slow response, and the game keyboard mostly adopts ARM chips and has quicker response than the film keyboard. The key is turned on and then turned off, and the metal contact shake factor is also present, and the shake eliminating time of the shake eliminating modes of different materials is also different, which belongs to the field of key response and the technology is very mature, and does not belong to the technology discussed in the application, so that the "short press" and the "long press" are used for explaining that the turn-on time is exemplified by that the turn-on time is turned on for a short time after being turned on for a single time within less than 0.5 seconds, and the turn-on time is still turned on for a long press for more than 0.5 seconds. However, the specific time threshold is not limited in the present application, and may be adjusted according to actual situations.
When the SPACE key is pressed for a short time, a SPACE signal is output; and when the long-time pressing of the SPACE key and the pressing of the non-mouse control function key are carried out, no response is generated, and when the long-time pressing of the SPACE key and the pressing of the mouse control function key are carried out, the keyboard control mouse function is started, wherein after the long-time pressing signal of the SPACE key is received by the main control module, the main control module responds to the long-time pressing signal of the SPACE key, searches key position mapping table information, starts the mouse control function, and when the long-time pressing signal of the SPACE key is lost by the main control module, the main control module stops controlling the mouse function.
In this embodiment, as shown in fig. 3, the keyboard uses a matrix circuit, which is formed by connecting a transverse C line and a longitudinal L line with a main control module, switches are arranged at the intersections of the lines, each switch corresponds to a key, the default line is in an off state, the main control continuously scans the matrix circuit, when the keyboard key is pressed, the main control detects that a certain transverse C line and a longitudinal L line are connected, and the main control module correspondingly searches its own key mapping table and transmits the mapping information to the computer terminal through the USB bus after processing.
For example: pressing the key A, the main control detects that the line C3 and the line L1 are conducted, checks the letter a corresponding to the C3-L1 in the mapping table, and outputs a information to the computer terminal through the USB port. If the shift+A combination key is pressed for a long time, the main control detects that the lines C4-L0 and C3-L1 are conducted, capital letters A are correspondingly arranged in the mapping table, and the capital letters A are output to the computer end
Wherein, the mouse control key mapping information includes but is not limited to the following combination modes:
mode one: when clicking the SPACE key, outputting SPACE key information; when the "SPACE" key is pressed for a long time and the non-mouse control function key is pressed at the same time, no response is generated.
Mode two: when the SPACE key is pressed for a long time and the mouse control function key is pressed at the same time, the mouse control is started.
Mode three: when the main control module loses the long-time pressing signal of the SPACE key, the main control module stops controlling the mouse function.
Mode four: when the SPACE key is clicked and the I key is pressed at the same time, the main control module receives signals input by the SPACE key and the I key at the same time, the main control module outputs a mouse pointer upward movement signal, and the terminal executes the operation of upward movement of the mouse pointer.
Mode five: when the SPACE key is pressed for a long time and the K key is pressed at the same time, the main control module receives signals input by the SPACE key and the K key at the same time, the main control module outputs a mouse pointer downward movement signal, and the terminal executes the operation of the downward movement of the mouse pointer.
Mode six: when the SPACE key is pressed for a long time and the J key is pressed at the same time, the main control module receives signals input by the SPACE key and the J key at the same time, the main control module outputs a signal for moving the mouse pointer leftwards, and the terminal executes the operation of moving the mouse pointer leftwards.
Mode seven: when the SPACE key is pressed for a long time and the L key is pressed at the same time, the main control module receives signals input by the SPACE key and the L key at the same time, the main control module outputs a signal for moving the mouse pointer to the right, and the terminal executes the operation of moving the mouse pointer to the right.
Mode eight: when the SPACE key is pressed for a long time and the U key is pressed at the same time, the main control module receives signals input by the SPACE key and the U key at the same time, the main control module outputs an upward movement signal of the mouse wheel, and the terminal executes the upward movement operation of the mouse wheel.
Mode nine: when the SPACE key is pressed for a long time and the O key is pressed at the same time, the main control module receives signals input by the SPACE key and the O key at the same time, the main control module outputs a downward movement signal of the mouse wheel, and the terminal executes downward movement operation of the mouse wheel.
Mode ten: when the SPACE key is pressed for a long time and the D key is pressed at the same time, the main control module receives signals input by the SPACE key and the D key at the same time, the main control module outputs a signal for clicking the left mouse button, and the terminal executes the operation of clicking the left mouse button.
Mode eleven: when the SPACE key is pressed for a long time and the F key is pressed at the same time, the main control module receives signals input by the SPACE key and the F key at the same time, the main control module outputs a right click signal of the single click mouse, and the terminal executes the operation of the right click mouse.
The control modes only send out the operation signals of the mouse, and the moving speed of the mouse pointer and the speed of the roller are controlled by the terminal system.
Meanwhile, the cursor function can be controlled simultaneously by the method, in the embodiment, the cursor control starting key is set as a CAPS LOCK key, chinese is translated into a case locking key, and in the embodiment, the cursor control key position mapping information content specifically comprises but is not limited to the following combination modes:
mode one: when clicking the CAPS LOCK key, outputting case locking key information; when the "CAPS LOCK" key is pressed for a long time and the non-cursor control function key is pressed at the same time, there is no response.
Mode two: when the "CAPS LOCK" key is pressed for a long time and the cursor control function key is pressed at the same time, cursor control is started.
Mode three: when the main control module loses the long-press signal of the CAPS LOCK key, the main control module stops controlling the cursor function.
Mode four: when the ' CAPS LOCK ' key is pressed for a long time and the ' I ' key is pressed at the same time, the main control module receives signals input by the ' CAPS LOCK ' key and the ' I ' key at the same time, the main control module outputs a moving signal for upward movement of a cursor, and the terminal executes the operation for upward movement of the cursor, and at the moment, the moving signal is the same as the signal sent by clicking an upward key ' in a keyboard.
Mode five: when the 'CAPS LOCK' key is pressed for a long time and the 'K' key is pressed at the same time, the main control module receives signals input by the 'CAPS LOCK' key and the 'K' key at the same time, the main control module outputs a moving signal of downward movement of a cursor, and the terminal executes the downward movement operation of the cursor, and at the moment, the moving signal is the same as the signal sent by clicking a downward key 'r' in the keyboard.
Mode six: when the 'CAPS LOCK' key is pressed for a long time and the 'J' key is pressed at the same time, the main control module receives signals input by the 'CAPS LOCK' key and the 'J' key at the same time, the main control module outputs a moving signal of the cursor moving leftwards, and the terminal executes the operation of the cursor moving leftwards, and at the moment, the moving signal is the same as the signal sent by clicking a leftwards key '≡' in the keyboard.
Mode seven: when the 'CAPS LOCK' key is pressed for a long time and the 'L' key is pressed at the same time, the main control module receives signals input by the 'CAPS LOCK' key and the 'L' key at the same time, the main control module outputs a movement signal of rightward movement of a cursor, and the terminal executes rightward movement operation of the cursor, and at the moment, the movement signal is the same as the signal sent by clicking a rightward key 'to' in the keyboard.
Mode eight: when the CAPS LOCK key is pressed for a long time and the U key is pressed at the same time, the main control module receives signals input by the CAPS LOCK key and the U key at the same time, the main control module outputs a PAGE-UP signal, and the terminal executes the PAGE-UP operation of the cursor, and is the same as the signal sent by clicking the PAGE UP key on the keyboard.
Mode nine: when the CAPS LOCK key is pressed for a long time and the O key is pressed at the same time, the main control module receives signals input by the CAPS LOCK key and the O key at the same time, the main control module outputs a PAGE-DOWN signal, and the terminal executes the PAGE-DOWN operation of the cursor, and at the same time, the signal is the same as the signal sent by clicking the PAGE DOWN key on the keyboard.
Mode ten: when the CAPS LOCK key is pressed for a long time and the H key is pressed at the same time, the main control module receives signals input by the CAPS LOCK key and the H key at the same time, the main control module outputs a signal that a cursor jumps to the current head of a line, and the terminal executes the operation that the cursor jumps to the current head of a line, and the signal is the same as the signal sent by clicking the HOME key on the keyboard.
Mode eleven: when the CAPS LOCK key is pressed for a long time and the number dividing key is pressed at the same time, the main control module receives the CAPS LOCK key and the CAPS LOCK key at the same time; the key input signal is the same as the signal sent by the END key on the single-click keyboard when the main control module outputs the signal that the cursor jumps to the END of the current line and the terminal executes the operation that the cursor jumps to the END of the current line.
Twelve ways: when the 'CAPS LOCK' key is pressed for a long time and the 'N' key is pressed at the same time, the main control module receives signals input by the 'CAPS LOCK' key and the 'N' key at the same time, the main control module outputs a signal for deleting the cursor left, and the terminal executes the operation for deleting the cursor left, and the signal is the same as the signal sent by 'BACKSPACES' on the single-click keyboard.
Thirteen modes: when the 'CAPS LOCK' key is pressed for a long time and the 'M' key is pressed at the same time, the main control module receives signals input by the 'CAPS LOCK' key and the 'M' key at the same time, the main control module outputs a signal for deleting the cursor to the right, and the terminal executes the operation for deleting the cursor to the right, and the signal is the same as the signal sent by clicking the 'DELETE' key on the keyboard.
In summary, in the method for implementing mouse and cursor control based on the computer keyboard provided in the embodiments of the present application, a mouse control start key and a mouse control function key are preset, and when a main control module obtains signals input by the mouse control start key and the mouse control function key at the same time, a mouse function signal corresponding to the mouse control function key is output; the terminal responds to the mouse function signal output by the main control module and executes the mouse function corresponding to the mouse function signal; a cursor control starting key and a cursor control function key are preset, and when the main control module acquires signals input by the cursor control starting key and the cursor control function key at the same time, a cursor function signal corresponding to the cursor control function key is output; the terminal responds to the cursor function signal output by the main control module and executes the cursor function corresponding to the cursor function signal. The keyboard main control edits on the basis of the original general key position mapping information, keys far away from the right hand can be output through key position combination, the functions of a mouse are simulated to operate, the hands do not need to move greatly, and the input efficiency is improved.
Based on the same technical concept, the embodiment of the application also provides electronic equipment, which comprises: the device comprises a memory and a processor, wherein the processor and the memory are communicated with each other through a bus; the memory stores program instructions executable by the processor, which invokes the program instructions to perform any of the methods provided above.
Based on the same technical idea, the embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, which when being executed by a processor, implements the steps of any of the methods as provided above.
In the present specification, each embodiment of the method is described in a progressive manner, and identical and similar parts of each embodiment are referred to each other, and each embodiment mainly describes differences from other embodiments. For relevance, see the description of the method embodiments.
It should be noted that although the operations of the method of the present invention are depicted in the drawings in a particular order, this does not require or imply that the operations be performed in that particular order or that all illustrated operations be performed to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform.
Although the present application provides method operational steps as embodiments or flowcharts, more or fewer operational steps may be included based on conventional or non-inventive means. The order of steps recited in the embodiments is merely one way of performing the order of steps and does not represent a unique order of execution. When implemented by an apparatus or client product in practice, the methods illustrated in the embodiments or figures may be performed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment, or even in a distributed data processing environment). The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, it is not excluded that additional identical or equivalent elements may be present in a process, method, article, or apparatus that comprises a described element.
The units, devices or modules etc. set forth in the above embodiments may be implemented in particular by a computer chip or entity or by a product having a certain function. For convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, when implementing the present application, the functions of each module may be implemented in the same or multiple pieces of software and/or hardware, or a module that implements the same function may be implemented by multiple sub-modules or a combination of sub-units, or the like. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller can be regarded as a hardware component, and means for implementing various functions included therein can also be regarded as a structure within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
From the above description of embodiments, it will be apparent to those skilled in the art that the present application may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, a mobile terminal, a server, or a network device, etc.) to perform the methods described in the various embodiments or some parts of the embodiments of the present application.
Various embodiments in this specification are described in a progressive manner, and identical or similar parts are all provided for each embodiment, each embodiment focusing on differences from other embodiments. The subject application is operational with numerous general purpose or special purpose computer system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, notebook computers, tablet devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The foregoing embodiments have been provided for the purpose of illustrating the general principles of the present application and are not meant to limit the scope of the invention, but to limit the scope of the invention.

Claims (3)

1. A method for realizing mouse and cursor control based on a computer keyboard is characterized in that:
a mouse control starting key and a mouse control function key are preset, and when the main control module obtains signals input by the mouse control starting key and the mouse control function key at the same time, a mouse function signal corresponding to the mouse control function key is output;
the terminal responds to the mouse function signal output by the main control module and executes the mouse function corresponding to the mouse function signal;
a cursor control starting key and a cursor control function key are preset, and when the main control module acquires signals input by the cursor control starting key and the cursor control function key at the same time, a cursor function signal corresponding to the cursor control function key is output;
the terminal responds to the cursor function signal output by the main control module and executes a cursor function corresponding to the cursor function signal;
the terminal responds to the mouse function signal output by the main control module, executes the mouse function corresponding to the mouse function signal, and further comprises the following steps:
when the main control module loses the pressing signal of the mouse control start key, the main control module stops controlling the mouse function;
the terminal responds to the cursor function signal output by the main control module and executes a cursor function corresponding to the cursor function signal, and the method further comprises the following steps:
when the main control module loses the pressing signal of the cursor control starting key, the main control module stops controlling the cursor function;
the mouse control starting key is a SPACE key on the keyboard; the cursor control starting key is a CAPS LOCK key on a keyboard;
a keyboard using a matrix circuit; when a key on the keyboard is pressed, the main control module searches the mapping information of the key mapping table corresponding to the key and outputs the mapping information to the computer terminal;
when the SPACE key is pressed and the duration exceeds a set time threshold and the I key is pressed at the same time, the terminal executes the operation of moving the mouse pointer upwards;
when the SPACE key is pressed and the duration exceeds a set time threshold and the K key is pressed at the same time, the terminal executes the downward movement operation of the mouse pointer;
when the SPACE key is pressed and the duration exceeds the set time threshold and the J key is pressed at the same time, the terminal executes the operation of moving the mouse pointer leftwards;
when the SPACE key is pressed and the time length exceeds the set time threshold and the L key is pressed at the same time, the terminal executes the operation of moving the mouse pointer to the right;
when the SPACE key is pressed and the time length exceeds the set time threshold and the U key is pressed at the same time, the terminal executes the upward movement operation of the mouse wheel;
when the SPACE key is pressed and the time length exceeds the set time threshold and the O key is pressed at the same time, the terminal executes the downward movement operation of the mouse wheel;
when the SPACE key is pressed and the duration exceeds the set time threshold and the D key is pressed at the same time, the terminal executes the operation of clicking the left mouse button;
when the SPACE key is pressed and the duration exceeds a set time threshold and the F key is pressed at the same time, the terminal executes the operation of clicking the right mouse button;
when the CAPS LOCK key is pressed and the duration exceeds a set time threshold and the I key is pressed at the same time, the terminal executes the operation of moving the cursor upwards, which is the same as the signal sent by clicking the upward key in the keyboard;
when the CAPS LOCK key is pressed and the duration exceeds a set time threshold and the K key is pressed at the same time, the terminal executes the downward movement operation of the cursor, and the downward movement operation is the same as the signal sent by clicking the downward key in the keyboard;
when the CAPS LOCK key is pressed and the duration exceeds a set time threshold and the J key is pressed at the same time, the terminal executes the operation of moving the cursor leftwards, and the operation is the same as the signal sent by clicking the leftwards key in the keyboard;
when the CAPS LOCK key is pressed and the duration exceeds a set time threshold and the L key is pressed at the same time, the terminal executes the rightward movement operation of the cursor, and the operation is the same as the signal sent by clicking the rightward key in the keyboard;
when the CAPS LOCK key is pressed and the duration exceeds a set time threshold and the U key is pressed at the same time, the terminal executes the operation of turning UP the PAGE by the cursor, and the operation is the same as the signal sent by clicking a key PAGE UP in the keyboard;
when the CAPS LOCK key is pressed and the duration exceeds a set time threshold and the O key is pressed at the same time, the terminal executes the operation of turning DOWN the PAGE by the cursor, and the operation is the same as the signal sent by clicking a key PAGE DOWN in the keyboard;
when the CAPS LOCK key is pressed and the duration exceeds a set time threshold and the H key is pressed at the same time, the terminal executes the operation that the cursor jumps to the current line head, and the operation is the same as the signal sent by clicking a key HOME in the keyboard;
when the CAPS LOCK key is pressed and the duration exceeds a set time threshold and the semicolon key is pressed at the same time, the terminal executes the operation that the cursor jumps to the END of the current row, and the operation is the same as the signal sent by clicking a key END in the keyboard;
when the CAPS LOCK key is pressed and the duration exceeds a set time threshold and the N key is pressed at the same time, the terminal executes the operation of deleting the cursor leftwards, which is the same as the signal sent by clicking the key back pack in the keyboard;
when the CAPS LOCK key is pressed and the duration exceeds the set time threshold and the M key is pressed at the same time, the terminal executes the operation of deleting the cursor rightwards, which is the same as the signal sent by clicking the key DELETE in the keyboard.
2. An electronic device, comprising: a memory and a processor, the memory and the processor completing communication with each other via a bus, the memory storing program instructions executable by the processor, the processor invoking the program instructions to perform the method of claim 1.
3. A computer readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the method of claim 1.
CN202010054149.3A 2020-01-17 2020-01-17 Method for realizing mouse and cursor control based on computer keyboard Active CN111240501B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010054149.3A CN111240501B (en) 2020-01-17 2020-01-17 Method for realizing mouse and cursor control based on computer keyboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010054149.3A CN111240501B (en) 2020-01-17 2020-01-17 Method for realizing mouse and cursor control based on computer keyboard

Publications (2)

Publication Number Publication Date
CN111240501A CN111240501A (en) 2020-06-05
CN111240501B true CN111240501B (en) 2024-03-22

Family

ID=70874632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010054149.3A Active CN111240501B (en) 2020-01-17 2020-01-17 Method for realizing mouse and cursor control based on computer keyboard

Country Status (1)

Country Link
CN (1) CN111240501B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112274916A (en) * 2020-11-20 2021-01-29 杭州雾联科技有限公司 Keyboard and mouse input method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6469694B1 (en) * 1999-04-13 2002-10-22 Peter J. Mikan Mouse emulation keyboard system
CN101556504A (en) * 2009-01-04 2009-10-14 李兵 Flexible keyboard with mouse
CN108399012A (en) * 2018-02-23 2018-08-14 上海康斐信息技术有限公司 A kind of keyboard of integrating mouse function

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6469694B1 (en) * 1999-04-13 2002-10-22 Peter J. Mikan Mouse emulation keyboard system
CN101556504A (en) * 2009-01-04 2009-10-14 李兵 Flexible keyboard with mouse
CN108399012A (en) * 2018-02-23 2018-08-14 上海康斐信息技术有限公司 A kind of keyboard of integrating mouse function

Also Published As

Publication number Publication date
CN111240501A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN103809896B (en) A kind of page switching method and device
US8743058B2 (en) Multi-contact character input method and system
JP4551869B2 (en) System and method for interfacing with a computer device
CN101650615B (en) Automatic switching method of cursor controller and keyboard of push type touchpad
CN102609404A (en) Document editing method realized through two-point touch technology
CN103620542A (en) A physical key simulating method and apparatus based on a touch screen
JP2006510334A (en) System and method for interfacing with a computer device
CN111240501B (en) Method for realizing mouse and cursor control based on computer keyboard
US20150042585A1 (en) System and electronic device of transiently switching operational status of touch panel
WO2004059423A2 (en) Systems and methods for interfacing with computer devices
CN107347111A (en) The control method and terminal of terminal
EP1573714A2 (en) Systems and metzhods for interfacing with computer devices
US20150103010A1 (en) Keyboard with Integrated Pointing Functionality
CN104516559A (en) Multi-point touch method of touch input device
CN113031817B (en) Multi-touch gesture recognition method and false touch prevention method
CN104375767A (en) Method for processing data and electronic equipment
KR20050074269A (en) Event processing for a navigation control device
CN104423657A (en) Information processing method and electronic device
CN105335080A (en) Operation input method and electronic equipment
CN111208912B (en) Input method and device
CN102033618A (en) Method and device for switching language input state
CN105224206A (en) A kind of method of operation input and electronic equipment
JPH03263116A (en) Stylus pen
KR101919716B1 (en) A input system managing key input event separately in a keyboard and a method thereof
CN104317415A (en) Method and system for realizing replacement of combined key with single key in mobile terminal virtual machine

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