CN111240501A - 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
CN111240501A
CN111240501A CN202010054149.3A CN202010054149A CN111240501A CN 111240501 A CN111240501 A CN 111240501A CN 202010054149 A CN202010054149 A CN 202010054149A CN 111240501 A CN111240501 A CN 111240501A
Authority
CN
China
Prior art keywords
key
cursor
mouse
pressed
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.)
Granted
Application number
CN202010054149.3A
Other languages
Chinese (zh)
Other versions
CN111240501B (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

Images

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 master control module obtains that signals are simultaneously input by the mouse control starting key and the mouse control function key, 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 a 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 obtains that the cursor control starting key and the cursor control function key input signals simultaneously, a cursor function signal corresponding to the cursor control function key is output; and 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 master control edits on the basis of the original general key mapping information, can output keys far away from the right hand and simulate the mouse operation function through key combination, does not need to move greatly by both hands, and improves the input efficiency.

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 computer keyboard program key remapping.
Background
As is well known, mouse and cursor control have become important tools in the computer using process, the existing control method is to control the mouse pointer through the mouse, control the cursor movement through the direction key, but some office workers need to enter large amounts of information (e.g. clerks or programmers) quickly and 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 returns to the original position after the editing operation is carried out, so that the back-and-forth movement of the right hand can greatly influence the input speed, meanwhile, in some special occasions such as a server room, a console in a coal mine cave, a civil engineering construction site and the like, some occasions only allow the keyboard to be inserted, the mouse cannot be inserted, some occasions cannot use the mouse under severe environment, this also affects the speed and experience of inputting information, so it is necessary for the keyboard to control the mouse and cursor movement simultaneously.
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 object, the embodiments of the present application provide the following technical solutions:
according to a first aspect of the 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 master control module obtains that signals are simultaneously input by the mouse control starting key and the mouse control function key, 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 a 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 obtains that the cursor control starting key and the cursor control function key input signals simultaneously, a cursor function signal corresponding to the cursor control function key is output;
and 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 further includes the following steps:
when the main control module loses the pressing signal of the mouse control starting 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 the cursor function corresponding to the cursor function signal, and the method further comprises the following steps:
and 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 starting key is a CAPS LOCK key on the keyboard.
Optionally, the keyboard uses matrix circuitry; 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, the duration exceeds a set time threshold and the I key is pressed simultaneously, the terminal executes the operation of upward movement of the mouse pointer; when the SPACE key is pressed, the duration exceeds a set time threshold value and the K key is pressed simultaneously, the terminal executes the operation that the mouse pointer moves downwards; when the SPACE key is pressed, the duration of the SPACE key exceeds a set time threshold value and the J key is pressed simultaneously, the terminal executes the operation that the mouse pointer moves leftwards; when the SPACE key is pressed, the duration exceeds a set time threshold and an L key is pressed simultaneously, the terminal executes the operation that the mouse pointer moves rightwards; when the SPACE key is pressed, the duration of time exceeds a set time threshold value and a U key is pressed simultaneously, the terminal executes the operation that the mouse wheel moves upwards; when the SPACE key is pressed, the duration of time exceeds a set time threshold value and an O key is pressed simultaneously, the terminal executes the operation that the mouse wheel moves downwards; when the SPACE key is pressed, the duration of the SPACE key exceeds a set time threshold value and the D key is pressed simultaneously, the terminal executes the operation of clicking the left mouse button; and when the SPACE key is pressed, the duration of the SPACE key exceeds a set time threshold value and the F key is pressed simultaneously, the terminal executes the operation of clicking the right mouse button.
Optionally, when a CAPS LOCK key is pressed, the duration exceeds a set time threshold and an I key is pressed at the same time, the terminal executes the operation of upward movement of the cursor, and the operation is the same as the signal sent by an upward key in a single-click keyboard; when a CAPS LOCK key is pressed, the duration of the CAPS LOCK key exceeds a set time threshold and the K key is pressed simultaneously, the terminal executes the operation that the cursor moves downwards, and the operation is the same as the signal sent by the downward key in the single-click keyboard; when a CAPS LOCK key is pressed, the duration of the CAPS LOCK key exceeds a set time threshold and a J key is pressed simultaneously, the terminal executes the operation that the cursor moves leftwards, and the operation is the same as the signal sent by a left key in a single-click keyboard; when a CAPS LOCK key is pressed, the duration of the CAPS LOCK key exceeds a set time threshold and an L key is pressed simultaneously, the terminal executes the operation that the cursor moves rightwards, and the operation is the same as the signal sent by a right key in a single-click keyboard; when a CAPS LOCK key is pressed, the duration exceeds a set time threshold and a U key is pressed simultaneously, the terminal executes the operation of turning UP the PAGE of the cursor, and the operation is the same as the signal sent by a key PAGE UP in a single-click keyboard; when a CAPS LOCK key is pressed, the duration of the CAPS LOCK key exceeds a set time threshold and an O key is pressed simultaneously, the terminal executes the operation of turning DOWN the PAGE of the cursor, and the operation is the same as the signal sent by a key PAGE DOWN in a single-click keyboard; when a CAPS LOCK key is pressed, the duration exceeds a set time threshold and an H key is pressed simultaneously, the terminal executes the operation that the cursor jumps to the current head of a line, and the operation is the same as the signal sent by a key HOME in a single-click keyboard; when a CAPS LOCK key is pressed, the duration exceeds a set time threshold and a number-dividing key is pressed simultaneously, 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 a key END in a single-click keyboard; when a CAPS LOCK key is pressed, the duration exceeds a set time threshold and an N key is pressed simultaneously, the terminal executes the operation of deleting the cursor leftwards, and the operation is the same as the signal sent by a key BACKSPACE in a single-click keyboard; when the CAPS LOCK key is pressed, the duration of the CAPS LOCK key exceeds a set time threshold value and the M key is pressed simultaneously, the terminal executes the operation of rightward deletion at the cursor position, and the operation is the same as the signal sent by the key DELETE in the single-click keyboard.
According to a second aspect of embodiments of the present application, there is provided an electronic apparatus, including: 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 to be capable of performing any of the methods as provided by the first aspect.
According to a third aspect of embodiments herein, a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out 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, wherein a mouse control starting key and a mouse control function key are preset, and when a master control module obtains signals input by the mouse control starting key and the mouse control function key simultaneously, 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 a 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 obtains that the cursor control starting key and the cursor control function key input signals simultaneously, a cursor function signal corresponding to the cursor control function key is output; and 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 mapping information combination of the common key positions is edited, so that the keys far away from the right hand can be output and the mouse function of analog operation can be realized, the hands do not need to move greatly, the input efficiency is improved, and the operation is quick and convenient. The technology can be applied to all keyboards with a mouse control starting key, a mouse control function key, a cursor control starting key and a cursor control function key to operate a mouse and a 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 should be apparent that the drawings in the following description are merely exemplary, and that other embodiments can be derived from the drawings provided by those of ordinary skill in the art without inventive effort.
The structures, ratios, sizes, and the like shown in the present specification are only used for matching with the contents disclosed in the specification, so that those skilled in the art can understand and read the present invention, and do not limit the conditions for implementing the present invention, so that the present invention has no technical significance, and any structural modifications, changes in the ratio relationship, or adjustments of the sizes, without affecting the functions and purposes of the present invention, should still fall within the scope of the present invention.
Fig. 1 is a schematic 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 illustrating an embodiment of a method for implementing mouse and cursor control based on a computer keyboard according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a keyboard structure and an identifier of a method for implementing mouse and cursor control based on a computer keyboard according to an embodiment of the present application.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and features of the invention will become apparent to those skilled in the art from the following disclosure, and it is to be understood that the described embodiments are merely exemplary of the invention and that it is not intended to limit the invention to the particular embodiments disclosed. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 illustrates 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: a mouse control starting key and a mouse control function key are preset, and when the main control module obtains that signals are simultaneously input by the mouse control starting key and the mouse control function key, a mouse function signal corresponding to the mouse control function key is output.
Step 102: and 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 that a cursor control starting key and a cursor control function key are preset, and when a main control module obtains signals input by the cursor control starting key and the cursor control function key simultaneously, a cursor function signal corresponding to the cursor control function key is output.
Step 104: and 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 may further include the following steps:
and when the main control module loses the pressing signal of the mouse control starting 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 may further include the following steps:
and 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 embodiment, 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 embodiment of the present application clearer, the method is further explained 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 signal; if yes, judging the type of the special key signal
After judging the signal type of the special key, if the signal type is SPACE SPACE key, judging whether other keys are pressed simultaneously: if other keys are not pressed simultaneously, outputting the special key signal as a normal key signal; if other combined keys are 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 has no response.
After judging the signal type of the special key, if the signal type is a CAPS LOCK case locking key, judging whether other keys are simultaneously pressed: if other keys are not pressed simultaneously, outputting the special key signal as a normal key signal; if the other combined keys are pressed simultaneously, judging whether the combined key is a cursor control function key: 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 has no response.
The keyboard comprises a plurality of trigger buttons and a main control module connected with the trigger buttons respectively, 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 to be SPACE keys, the SPACE keys are translated into SPACE keys, the SPACE keys are clicked to realize the SPACE input function, and corresponding marks are arranged on the SPACE keys so as to be convenient for operators to identify.
It should be noted that "short press" (i.e., "single press") in the embodiments of the present application means that the time period for pressing the key does not exceed a set time threshold, and "long press" in the embodiments of the present application means that the time period for pressing the key exceeds a set time threshold, where the key time threshold is related to various factors such as key type, PCB board process, and CPU chip frequency, for example: compared with the thin film keyboard, the television remote control keys have slow response, and the game keyboard mostly adopts an ARM chip and has quicker response than the thin film keyboard. The key has metal contact jitter factors before being switched off after being switched on, and the jitter elimination time of different materials is different, which belongs to the field of key response and is very mature in technology and does not belong to the discussion technology of the application, so that the short press and the long press are used for explaining that the switching-on time is switched off after being switched on once within less than 0.5 seconds and is switched on again into the short press after being switched on once within more than 0.5 seconds, and the switching-on time is still switched on into the long press after being switched on for more than 0.5 seconds. However, the present application does not limit the specific time threshold, and may adjust the time threshold according to actual situations.
When the SPACE key is pressed for a short time, a SPACE signal is output; when the 'SPACE' key is pressed for a long time and the non-mouse control function key is pressed, no response is made, when the 'SPACE' key is pressed for a long time and the mouse control function key is pressed, the keyboard control mouse function is started, wherein after the main control module receives a long pressing signal input by the 'SPACE' key, the main control module responds to the long pressing signal of the 'SPACE' key, searches key mapping table information and starts the control mouse function, and when the main control module loses the long pressing signal of the 'SPACE' key, 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 horizontal C line and a vertical L line with a main control module, switches are arranged at intersections of the lines, each switch corresponds to a key, the default line is in an off state, the main control module continuously scans the matrix line, when the keys of the keyboard are pressed, the main control module detects that a certain horizontal C line and the vertical L line are connected, the main control module correspondingly searches a key mapping table of itself, and transmits mapping information to a computer end through a USB bus after processing the mapping information.
For example: when the key A is pressed down, the main controller detects that the line C3 is conducted with the line L1, the letter a corresponding to the C3-L1 is checked in the mapping table, and the a information is output to the computer end through the USB port. If the shift + A combined key is pressed for a long time, the master control detects that the lines C4-L0 and C3-L1 are conducted, the corresponding upper-case letter A is in the mapping table, and the A is output to the computer end
The mapping information of the mouse control key position includes, but is not limited to, the following combination modes:
the first method is as follows: 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 made.
The second method comprises the following steps: when the SPACE key is pressed for a long time and the mouse control function key is pressed simultaneously, the mouse control is started.
The third method comprises the following steps: when the main control module loses the long pressing signal of the SPACE key, the main control module stops controlling the mouse function.
The method is as follows: when the SPACE key is clicked and the I key is pressed simultaneously, the main control module receives signals input by the SPACE key and the I key simultaneously, the main control module outputs a mouse pointer upward movement signal, and the terminal executes the operation of the upward movement of the mouse pointer.
The fifth mode is as follows: when the SPACE key is pressed for a long time and the K key is pressed simultaneously, the main control module receives signals input by the SPACE key and the K key simultaneously, the main control module outputs a downward movement signal of a mouse pointer, and the terminal executes the operation of downward movement of the mouse pointer.
The method six: when the SPACE key is pressed for a long time and the J key is pressed simultaneously, the main control module receives signals input by the SPACE key and the J key simultaneously, the main control module outputs a signal for moving the mouse pointer leftwards, and the terminal executes the operation for moving the mouse pointer leftwards.
The method is as follows: when the SPACE key is pressed for a long time and the L key is pressed simultaneously, the main control module receives signals input by the SPACE key and the L key simultaneously, the main control module outputs a signal for moving the mouse pointer to the right, and the terminal executes the operation for moving the mouse pointer to the right.
The method eight: when the SPACE key is pressed for a long time and the U key is pressed simultaneously, the main control module receives signals input by the SPACE key and the U key simultaneously, 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.
The method is 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 the downward movement operation of the mouse wheel.
The method comprises the following steps: when the SPACE key is pressed for a long time and the D key is pressed simultaneously, the main control module receives signals input by the SPACE key and the D key simultaneously, the main control module outputs a mouse left click signal, and the terminal executes the mouse left click operation.
The eleventh mode: when the SPACE key is pressed for a long time and the F key is pressed simultaneously, the main control module receives signals input by the SPACE key and the F key simultaneously, the main control module outputs a right mouse click signal, and the terminal executes the right mouse click operation.
The control modes only send out mouse operation signals, 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 this embodiment, the cursor control start key is set as a "CAPS LOCK" key, and chinese is translated into a "case LOCK key", and in this embodiment, the mapping information content of the cursor control key specifically includes but is not limited to the following combination:
the first method is as follows: when a 'CAPS LOCK' key is clicked, outputting capital and lower case locking key information; when the key of the 'CAPS LOCK' is pressed for a long time and the non-cursor control function key is pressed at the same time, no response is made.
The second method comprises the following steps: 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.
The third method comprises the following steps: and when the master control module loses the long press signal of the CAPS LOCK key, the master control module stops controlling the cursor function.
The method is as follows: when the key of the CAPS LOCK is pressed for a long time and the key of the I key is pressed at the same time, the main control module receives signals input by the key of the CAPS LOCK and the key of the I key at the same time, the main control module outputs a moving signal of the upward movement of the cursor, and the terminal executes the operation of the upward movement of the cursor, which is the same as the signal sent by the upward key "=" in the single-click keyboard.
The fifth mode is as follows: when the key CAPS LOCK is pressed for a long time and the key K is pressed at the same time, the main control module receives signals input by the key CAPS LOCK and the key K at the same time, the main control module outputs a moving signal of downward movement of a cursor, and the terminal executes the operation of downward movement of the cursor, which is the same as the signal sent by the downward key '↓' in the single-keystroke disk.
The method six: when the key CAPS LOCK is pressed for a long time and the key J is pressed simultaneously, the main control module receives signals input by the key CAPS LOCK and the key J simultaneously, the main control module outputs a moving signal of a cursor moving leftwards, and the terminal executes the operation of the cursor moving leftwards, and the operation is the same as a signal sent by a key "←" to the left in a single-stroke keyboard.
The method is as follows: when the key of the 'CAPS LOCK' is pressed for a long time and the key of the 'L' is pressed simultaneously, the main control module receives signals input by the key of the 'CAPS LOCK' and the key of the 'L', the main control module outputs a moving signal for moving the cursor rightwards, and the terminal executes the operation for moving the cursor rightwards, and the operation is the same as the signal sent by a key '→' rightwards in the single-stroke keyboard.
The method 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, the terminal executes the operation of turning UP the PAGE of the cursor, and the signal is the same as the signal sent by the PAGE UP key on the single-click keyboard.
The method is 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 signal for turning DOWN the PAGE, the terminal executes the operation of turning DOWN the PAGE by the cursor, and the signal is the same as the signal sent by the PAGE DOWN key on the single-click keyboard.
The method comprises the following steps: 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 the cursor jumps to the head of the current row, and the terminal executes the operation that the cursor jumps to the head of the current row, and the signal is the same as the signal sent by the HOME key on the single-click keyboard.
The eleventh mode: when the key of the CAPS LOCK is pressed for a long time and the number-dividing key is pressed at the same time, the main control module receives the key of the CAPS LOCK and the key of the number-dividing key at the same time; the signal of key input, the main control module outputs the signal that the cursor jumps to the END of the current row, the terminal executes the operation that the cursor jumps to the END of the current row, and the signal is the same as the signal sent by the END key on the single-stroke keyboard.
The method twelve: when the key CAPS LOCK is pressed for a long time and the key N is pressed simultaneously, the main control module receives signals input by the key CAPS LOCK and the key N simultaneously, the main control module outputs a signal for deleting the cursor leftwards, and the terminal executes the operation for deleting the cursor leftwards, which is the same as the signal sent by the key BACKSPACES on the single-key keyboard.
The method has a thirteen mode: when the CAPS LOCK key is pressed for a long time and the M key is pressed simultaneously, the main control module receives signals input by the CAPS LOCK key and the M key simultaneously, the main control module outputs a signal for right deletion at the cursor, and the terminal executes the operation for right deletion at the cursor, which is the same as the signal sent by the DELETE key on the single-click keyboard.
To sum up, according to the method for realizing mouse and cursor control based on the computer keyboard provided by the embodiment of the present application, by presetting the mouse control start key and the mouse control function key, when the main control module obtains signals simultaneously input by the mouse control start key and the mouse control function key, the 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 a 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 obtains that the cursor control starting key and the cursor control function key input signals simultaneously, a cursor function signal corresponding to the cursor control function key is output; and 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 master control edits on the basis of the original general key mapping information, can output keys far away from the right hand and simulate the mouse operation function through key combination, does not need to move greatly by both hands, and improves the input efficiency.
Based on the same technical concept, an embodiment of the present application further provides an electronic device, including: the processor and the memory are communicated with each other through a bus; the memory stores program instructions executable by the processor, the processor calling the program instructions to perform the method as any one of the methods provided above.
Based on the same technical concept, the present application also provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any one of the methods provided above.
In the present specification, each embodiment of the method is described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. Reference is made to the description of the method embodiments.
It is noted that while the operations of the methods of the present invention are depicted in the drawings in a particular order, this is not a requirement or suggestion that the operations must be performed in this particular order or that all of the illustrated operations must be performed to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
Although the present application provides method steps as in embodiments or flowcharts, additional or fewer steps may be included based on conventional or non-inventive approaches. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an apparatus or client product in practice executes, it may execute sequentially or in parallel (e.g., in a parallel processor or multithreaded processing environment, or even in a distributed data processing environment) according to the embodiments or methods shown in the figures. 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, the presence of additional identical or equivalent elements in a process, method, article, or apparatus that comprises the recited elements is not excluded.
The units, devices, modules, etc. set forth in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, in implementing the present application, the functions of each module may be implemented in one or more software and/or hardware, or a module implementing the same function may be implemented by a combination of a plurality of sub-modules or sub-units, and the like. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may therefore be considered as a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
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 the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be embodied 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, or the like, and includes several instructions for enabling a computer device (which may be a personal computer, a mobile terminal, a server, or a network device) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same or similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. The application is operational with numerous general purpose or special purpose computing 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 above-mentioned embodiments are further described in detail for the purpose of illustrating the invention, and it should be understood that the above-mentioned embodiments are only illustrative of the present invention and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (8)

1. A method for realizing mouse and cursor control based on computer keyboard is characterized in that:
a mouse control starting key and a mouse control function key are preset, and when the master control module obtains that signals are simultaneously input by the mouse control starting key and the mouse control function key, 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 a 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 obtains that the cursor control starting key and the cursor control function key input signals simultaneously, a cursor function signal corresponding to the cursor control function key is output;
and 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.
2. The method of claim 1, wherein the method comprises: 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, and the method further comprises the following steps:
when the main control module loses the pressing signal of the mouse control starting 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 the cursor function corresponding to the cursor function signal, and the method further comprises the following steps:
and when the main control module loses the pressing signal of the cursor function starting key, the main control module stops controlling the cursor function.
3. The method of claim 1, wherein the method comprises:
the mouse control starting key is an SPACE key on a keyboard; the cursor control starting key is a CAPS LOCK key on the keyboard.
4. The method of claim 1, wherein the method comprises: 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.
5. The method of claim 4, wherein the method comprises:
when the SPACE key is pressed, the duration exceeds a set time threshold and the I key is pressed simultaneously, the terminal executes the operation of upward movement of the mouse pointer;
when the SPACE key is pressed, the duration exceeds a set time threshold value and the K key is pressed simultaneously, the terminal executes the operation that the mouse pointer moves downwards;
when the SPACE key is pressed, the duration of the SPACE key exceeds a set time threshold value and the J key is pressed simultaneously, the terminal executes the operation that the mouse pointer moves leftwards;
when the SPACE key is pressed, the duration exceeds a set time threshold and an L key is pressed simultaneously, the terminal executes the operation that the mouse pointer moves rightwards;
when the SPACE key is pressed, the duration of time exceeds a set time threshold value and a U key is pressed simultaneously, the terminal executes the operation that the mouse wheel moves upwards;
when the SPACE key is pressed, the duration of time exceeds a set time threshold value and an O key is pressed simultaneously, the terminal executes the operation that the mouse wheel moves downwards;
when the SPACE key is pressed, the duration of the SPACE key exceeds a set time threshold value and the D key is pressed simultaneously, the terminal executes the operation of clicking the left mouse button;
and when the SPACE key is pressed, the duration of the SPACE key exceeds a set time threshold value and the F key is pressed simultaneously, the terminal executes the operation of clicking the right mouse button.
6. The method of claim 4, wherein the method comprises:
when a CAPS LOCK key is pressed, the duration of the CAPS LOCK key exceeds a set time threshold and an I key is pressed at the same time, the terminal executes the operation of upward movement of a cursor, and the operation is the same as a signal sent by an upward key in a single-click keyboard;
when a CAPS LOCK key is pressed, the duration of the CAPS LOCK key exceeds a set time threshold and the K key is pressed simultaneously, the terminal executes the operation that the cursor moves downwards, and the operation is the same as the signal sent by the downward key in the single-click keyboard;
when a CAPS LOCK key is pressed, the duration of the CAPS LOCK key exceeds a set time threshold and a J key is pressed simultaneously, the terminal executes the operation that the cursor moves leftwards, and the operation is the same as the signal sent by a left key in a single-click keyboard;
when a CAPS LOCK key is pressed, the duration of the CAPS LOCK key exceeds a set time threshold and an L key is pressed simultaneously, the terminal executes the operation that the cursor moves rightwards, and the operation is the same as the signal sent by a right key in a single-click keyboard;
when a CAPS LOCK key is pressed, the duration exceeds a set time threshold and a U key is pressed simultaneously, the terminal executes the operation of turning UP the PAGE of the cursor, and the operation is the same as the signal sent by a key PAGE UP in a single-click keyboard;
when a CAPS LOCK key is pressed, the duration of the CAPS LOCK key exceeds a set time threshold and an O key is pressed simultaneously, the terminal executes the operation of turning DOWN the PAGE of the cursor, and the operation is the same as the signal sent by a key PAGE DOWN in a single-click keyboard;
when a CAPS LOCK key is pressed, the duration exceeds a set time threshold and an H key is pressed simultaneously, the terminal executes the operation that the cursor jumps to the current head of a line, and the operation is the same as the signal sent by a key HOME in a single-click keyboard;
when a CAPS LOCK key is pressed, the duration exceeds a set time threshold and a number-dividing key is pressed simultaneously, 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 a key END in a single-click keyboard;
when a CAPS LOCK key is pressed, the duration exceeds a set time threshold and an N key is pressed simultaneously, the terminal executes the operation of deleting the cursor leftwards, and the operation is the same as the signal sent by a key BACKSPACE in a single-click keyboard;
when the CAPS LOCK key is pressed, the duration of the CAPS LOCK key exceeds a set time threshold value and the M key is pressed simultaneously, the terminal executes the operation of rightward deletion at the cursor position, and the operation is the same as the signal sent by the key DELETE in the single-click keyboard.
7. An electronic device, characterized by comprising: a memory and a processor, the memory and the processor communicating 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 any one of claims 1 to 6.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
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 true CN111240501A (en) 2020-06-05
CN111240501B 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)

Cited By (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

Cited By (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

Also Published As

Publication number Publication date
CN111240501B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
US8743058B2 (en) Multi-contact character input method and system
CN103809896B (en) A kind of page switching method and device
JP4551869B2 (en) System and method for interfacing with a computer device
US8214546B2 (en) Mode switching
US20090160805A1 (en) Information processing apparatus and display control method
CN103713848A (en) Mobile terminal and operation method thereof
JP2006510334A (en) System and method for interfacing with a computer device
JP2009282996A (en) System and method for interfacing with computer device
CN102253744A (en) Method for controlling touch panel and touch device using method
CN101576797A (en) Input method for digital terminal equipment with touch screen
CN104077066A (en) Portable device and operation method
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
US20100127977A1 (en) Pointing device, electronic device and operation method thereof
CN102243572A (en) Method for realizing full-screen keyboard of mobile Internet equipment
CN201926989U (en) Shortcut keyboard integrating mouse function
CN113031817B (en) Multi-touch gesture recognition method and false touch prevention method
CN104375767A (en) Method for processing data and electronic equipment
CN101807128B (en) Operation method of touch pad with multiple functional modes and integration system thereof
JP2006510136A (en) Navigation controller event processing
CN111752428A (en) Icon arrangement method and device, electronic equipment and medium
CN1297925C (en) Electronic apparatus combined notebook computer with panel computer
CN112162689A (en) Input method and device and electronic equipment
CN1916823A (en) Electronic device possesing functions of recognizing locus and recognizing push button key
CN103135848A (en) Touch screen human-computer interaction communication method

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