CN113961086A - Shortcut key implementation method, computing device and storage medium - Google Patents

Shortcut key implementation method, computing device and storage medium Download PDF

Info

Publication number
CN113961086A
CN113961086A CN202111566676.3A CN202111566676A CN113961086A CN 113961086 A CN113961086 A CN 113961086A CN 202111566676 A CN202111566676 A CN 202111566676A CN 113961086 A CN113961086 A CN 113961086A
Authority
CN
China
Prior art keywords
input
application program
operating system
input instruction
instruction
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
CN202111566676.3A
Other languages
Chinese (zh)
Other versions
CN113961086B (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.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202210177153.8A priority Critical patent/CN114527883A/en
Priority to CN202111566676.3A priority patent/CN113961086B/en
Publication of CN113961086A publication Critical patent/CN113961086A/en
Application granted granted Critical
Publication of CN113961086B publication Critical patent/CN113961086B/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/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0238Programmable keyboards

Abstract

The invention discloses a shortcut key implementation method, a computing device and a storage medium, and the method comprises the following steps: building a compatible module in a computing device; running an application in a first operating system through a compatible module, the application being adapted to run in a second operating system; generating a second shortcut key file according to target operation to be executed in an application program, and registering the second shortcut key file in the first operating system; generating a second input instruction according to the second shortcut key file and the input signal in response to receiving the input signal of the input device; and sending the second input instruction to the application program so as to execute the second input instruction through the application program to complete the target operation. According to the method and the device, the second shortcut key file is registered in the operating system, so that when the application program is executed in the non-adaptive operating system, the shortcut key can still be normally used for completing the target operation, and the use experience of a user when the user runs the non-fully-adaptive application program by using the operating system is improved.

Description

Shortcut key implementation method, computing device and storage medium
Technical Field
The present invention relates to the field of operating systems, and in particular, to a shortcut key implementation method, a computing device, and a storage medium.
Background
With the development of computer technology, more and more applications are developed. These applications are sometimes only applicable to one operating system. Currently, the application program can be run in another operating system through a compatible program such as a wire.
However, when the compatible program causes the application program to run on the operating system which is not suitable for the application program, the function of the application program cannot be completely revealed. When the application program is thus run in the non-adapted operating system, the function of the application program may be lost, for example, the shortcut operation required by the application program cannot be used, i.e. the target operation is completed by means of the shortcut key.
Therefore, a new shortcut key implementation method is needed.
Disclosure of Invention
To this end, the present invention provides a shortcut key implementation in an attempt to solve or at least alleviate the above existing problems.
According to an aspect of the present invention, there is provided a shortcut implementation method adapted to be executed in a computing device, the computing device being communicatively connected to an input device and running a first operating system, the method comprising the steps of: building a compatible module in a computing device; running an application in a first operating system through a compatible module, the application being adapted to run in a second operating system; generating a second shortcut key file according to target operation to be executed in an application program, and registering the second shortcut key file in the first operating system; generating a second input instruction according to the second shortcut key file and the input signal in response to receiving the input signal of the input device; and sending the second input instruction to the application program so as to execute the second input instruction through the application program to complete the target operation.
Optionally, in a method according to the present invention, a first shortcut file is stored in a computing device, and generating a second shortcut file according to a target operation to be executed in an application includes: generating an instruction registration message according to the second input instruction through the compatible module; and generating a second shortcut key file according to the instruction registration message and the first shortcut key file.
Optionally, in the method according to the present invention, the first shortcut file includes an input signal of the input device and a first input instruction corresponding to the input signal, and the generating of the second shortcut file according to the instruction registration message and the first shortcut file includes the steps of: and modifying the first input instruction in the first shortcut key file into a second input instruction according to the second input instruction in the instruction registration message, so that the input signal corresponds to the second input instruction.
Optionally, in the method according to the present invention, generating the second input instruction according to the second shortcut file and the input signal includes the steps of: and searching an input instruction corresponding to the input signal in the second shortcut key file according to the input signal to obtain a second input instruction.
Optionally, in the method according to the present invention, further comprising the step of: and registering the application program corresponding to the second input instruction in the compatible module to generate registration information.
Optionally, in the method according to the present invention, sending the second input instruction to the application program includes the steps of: and the compatible module determines an application program corresponding to the second input instruction according to the registration information and sends the second input instruction to the application program.
Optionally, in the method according to the present invention, further comprising the step of: and generating a script file according to the target operation and the input signal corresponding to the second input instruction.
Optionally, in the method according to the present invention, further comprising the step of: when an input signal of the input device is received, the target operation corresponding to the input signal is determined according to the script file, and the target operation required to be executed by the application program is sent to the application program, so that the application program can execute the target operation corresponding to the input signal.
According to another aspect of the present invention, there is provided a computing device comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing the shortcut implementation method in accordance with the present invention.
According to yet another aspect of the present invention, there is provided a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform a shortcut implementation method in accordance with the present invention.
The invention discloses a shortcut key implementation method which is suitable for being executed in computing equipment. The computing device is in communication connection with the input device and runs a first operating system, and the method comprises the following steps: a compatible module is firstly constructed in the computing equipment, so that an application program can run in a first operating system which is not adapted originally according to the compatible module, and the application program is originally suitable for running in a second operating system. And then determining a second input instruction corresponding to the target operation in the application program, and registering a second shortcut key file in the first operating system according to the second input instruction, so that when an input signal of the input device is received, a second input instruction is generated according to the second shortcut key file and the input signal, and the first operating system can generate a second input instruction required by the application program according to the input signal. And finally, sending the second input instruction to the application program so as to execute the second input instruction through the application program to finish the target operation. According to the method and the device, the second shortcut key file is registered in the operating system, so that when the application program is executed in the non-adaptive operating system, the shortcut key can still be normally used for finishing the target operation, the adaptability of the operating system to the application program is enhanced, and the use experience of a user when the operating system is used for running the non-adaptive application program is improved.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 illustrates a schematic diagram of an operating system running in a computing device according to an exemplary embodiment of the invention;
FIG. 2 illustrates a block diagram of a computing device 200, according to an exemplary embodiment of the invention;
FIG. 3 illustrates a flowchart of a method 300 for implementing a shortcut key in accordance with an exemplary embodiment of the present invention;
FIG. 4 illustrates a schematic diagram of registering a shortcut key in accordance with an exemplary embodiment of the present invention;
FIG. 5 illustrates a schematic diagram of generating a second input instruction according to an exemplary embodiment of the invention; and
fig. 6 illustrates a shortcut key implementation architecture diagram in accordance with an exemplary embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art. Like reference numerals generally refer to like parts or elements.
FIG. 1 shows a schematic diagram of an operating system running in a computing device according to an exemplary embodiment of the invention. As shown in fig. 1, a computing device 200 is running a first operating system 110, and a compatible module 120 is also constructed, through which compatible module 120 application 130 can run in the first operating system. The application 130 is an application adapted to run in the second operating system and is not adapted to run in the first operating system 110. The compatible module 120 is capable of providing the running service to the application 130 according to a plurality of service interfaces of the first operating system 110. Specifically, when the compatible module 120 is implemented to run the application 130 in the first operating system 110, the compatible module 120 determines a running service required by the application 130, acquires a plurality of service interfaces in the first operating system 110, and matches the running service required by the application 130 with the service interfaces, so that the first operating system 110 indirectly provides the running service for the application 130 through the compatible module 120.
The specific implementation manner of the compatible module 120 is not limited in the present invention, and the compatible module 120 may be implemented as a phone compatible layer. In the present invention, the types of the first operating system 110 and the second operating system are not limited, and the first operating system 110 and the second operating system are different types of operating systems. According to one embodiment of the invention, the first operating system 110 may be implemented as a linux system and the second operating system may be implemented as a windows system. The application program can be realized as Windows application, the wire compatible layer can simulate Windows operating system environment in Linux user space through the winserver, and simultaneously provides various services required by the running of the processes and the threads of the Windows application, including inter-process communication, a synchronization mechanism, object management and the like.
FIG. 2 illustrates a block diagram of a computing device 200, according to an exemplary embodiment of the invention. As shown in FIG. 2, in a basic configuration 202, a computing device 200 typically includes a system memory 206 and one or more processors 204. A memory bus 208 may be used for communication between the processor 204 and the system memory 206.
Depending on the desired configuration, the processor 204 may be any type of processing, including but not limited to: a microprocessor (μ P), a microcontroller (μ C), a digital information processor (DSP), or any combination thereof. The processor 204 may include one or more levels of cache, such as a level one cache 210 and a level two cache 212, a processor core 214, and registers 216. Example processor cores 214 may include Arithmetic Logic Units (ALUs), Floating Point Units (FPUs), digital signal processing cores (DSP cores), or any combination thereof. The example memory controller 218 may be used with the processor 204, or in some implementations the memory controller 218 may be an internal part of the processor 204.
Depending on the desired configuration, system memory 206 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 206 may include an operating system 220, one or more programs 222, and program data 228. In some embodiments, the program 222 may be arranged to execute the instructions 223 of the method 300 according to the invention on an operating system by one or more processors 204 using the program data 228.
Computing device 200 may also include a storage interface bus 234. The storage interface bus 234 enables communication from the storage devices 232 (e.g., removable storage 236 and non-removable storage 238) to the basic configuration 202 via the bus/interface controller 230. Operating system 220, programs 222, and at least a portion of data 224 can be stored on removable storage 236 and/or non-removable storage 238, and loaded into system memory 206 via storage interface bus 234 and executed by one or more processors 204 when computing device 200 is powered on or programs 222 are to be executed.
Computing device 200 may also include an interface bus 240 that facilitates communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to the basic configuration 202 via the bus/interface controller 230. The example output device 242 includes a graphics processing unit 248 and an audio processing unit 250. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 252. Example peripheral interfaces 244 can include a serial interface controller 254 and a parallel interface controller 256, which can be configured to facilitate communications with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 258. An example communication device 246 may include a network controller 260, which may be arranged to communicate with one or more other computing devices 200 over a network communication link via one or more communication ports 264.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
In a computing device 200 according to the present invention, the program 222 includes program instructions for a shortcut implementation method 300 that may direct the processor 204 to perform some of the steps of the shortcut implementation method 300 that is run in the computing device 200 of the present invention so that various parts in the computing device 200 implement normal use of the shortcut by performing the shortcut implementation method 300 of the present invention.
Computing device 200 may be implemented as a server, e.g., a file server, a database, a server, an application server, etc., which may be, for example, a Personal Digital Assistant (PDA), a wireless web-browsing device, an application-specific device, or a hybrid device that include any of the above functions. May be implemented as a personal computer including both desktop and notebook computer configurations, and in some embodiments, the computing device 200 is configured to implement the method 300 as a shortcut.
Fig. 3 shows a flow diagram of a method 300 for implementing a shortcut key in accordance with an exemplary embodiment of the present invention. The shortcut implementation method 300 is adapted to run in a computing device having a first operating system running therein.
Step S310 is performed first, and a compatible module is built in the computing device. For applications that are not able to adapt to all operating systems, a compatible module needs to be built in order to run the application in the unadapted operating system. The compatible module can provide running services for the application program according to the plurality of service interfaces of the first operating system.
Subsequently, step S320 is executed to execute the application program in the first operating system through the compatible module, and the application program is suitable for being executed in the second operating system. The application is adapted to run only in the second operating system and is not adapted to run in the first operating system. When the compatible module 120 is implemented to run the application 130 in the first operating system 110, the compatible module 120 determines a running service required by the application 130, acquires a plurality of service interfaces in the first operating system 110, and matches the running service required by the application 130 with the service interfaces, so that the first operating system 110 indirectly provides the running service for the application 130 through the compatible module 120. When the application program runs, the service interface matched with the compatible module 120 is used, and the hardware resource is called by the first operating system to run. The present invention does not limit the kind of the application program.
The functions of the application program cannot be completely revealed when the application program runs on the first operating system which is not adapted to the application program through the compatible module. When the application is thus run in the first operating system that is not adapted, the function of the application is lost, for example, the shortcut operation required by the application cannot be used, that is, the target operation is completed by means of a shortcut key. For this, step S330 is performed, a second shortcut file is generated according to a target operation to be performed in the application, and the second shortcut file is registered in the first operating system.
The operation completed by the shortcut key needing to be set in the application program is the target operation. A shortcut key refers to an operation performed by a certain specific key, sequence of keys or combination of keys. The invention does not limit the form of the shortcut key and the corresponding target operation, and developers or users can set the corresponding mode of the shortcut key and the target operation according to the use requirement, such as: the combination of the Fn key and the I key is used for screen capture, and the combination of the Fn key and the L key is used for page turning up and the like; the method does not limit the mode of the shortcut key, can be set by constructing a mapping table of a second input instruction of the shortcut key and the target operation, the mapping table comprises the corresponding relation between the second input instruction and the target operation, and when the application program receives the second input instruction, the target operation to be executed can be obtained from the mapping table. And when the second shortcut key file is generated, determining target operation, setting a corresponding second input instruction according to the target operation, and executing the target operation when the application receives the second input instruction.
Optionally, according to an embodiment of the present invention, it is determined that a target operation to be executed in the application program is "page up", then a second input instruction corresponding to "page up" is set to "Fn + I", and when the application receives the second input instruction "Fn + I", the "page up" operation is executed.
The computing device is in communication connection with the input device, the invention does not limit the type of the input device, and the input device can be realized as a keyboard. When the input device is triggered, the input device sends an input signal corresponding to the triggering mode to the computing device. The input device has a plurality of triggering modes, and input signals corresponding to each triggering mode are different; the triggering mode can be realized as certain specific keys, key sequences or key combinations. The input device sends different input signals to the computing device through different triggering modes, different input instructions are achieved, and various different target operations are completed.
In order to enable the first operating system in the computing device to call the input device normally, the first operating system is further provided with a driver corresponding to the input device. When the input device sends an input signal corresponding to the trigger mode to the computing device, the driver adds the input signal to a System Hardware Input Queue (SHIQ). The computing device stores a first shortcut key file, and the first shortcut key file stores a corresponding relation between an input signal and a first input instruction under a first operating system. An original input thread (RIT) in the first operating system converts input signals in a system hardware input queue into corresponding first input instructions according to the first shortcut key file, and sends the corresponding first input instructions to a front-end thread and an application program thread which are connected with the original input thread at the moment.
In order for the first operating system to convert the input signal into a second input instruction under the second operating system, a second shortcut key file needs to be generated according to a target operation to be executed in the application program. Specifically, the method comprises the following steps: firstly, generating an instruction registration message according to a second input instruction through the compatible module, wherein the instruction registration message comprises the second input instruction and is used for modifying the first shortcut key file. And then, generating a second shortcut key file according to the instruction registration message and the first shortcut key file. And when generating a second shortcut key file according to the instruction registration message and the first shortcut key file, modifying the first input instruction in the first shortcut key file into a second input instruction according to a second input instruction in the instruction registration message, so that the input signal corresponds to the second input instruction. At this time, after receiving the input instruction, the first operating system can convert the input model into a second input instruction according to the second shortcut key file.
According to one embodiment of the invention, the first operating system is a linux system, the second operating system is a windows system, the compatible module is implemented as a wire compatible layer, and the application program is implemented as a windows application adapted to run in the windows system. Fig. 4 illustrates a schematic diagram of registering a shortcut key according to an exemplary embodiment of the present invention.
As shown in fig. 4, when a windows application runs through a windows-compatible layer in a linux system, in order to normally use a shortcut key set by the windows application, first, the windows application calls a user32.dll-RegiteHotKey shortcut key registration function to notify the windows-compatible layer.
Then a winex11 module (win-winex 11. DRV) in the win compatible layer calls the method of the X11DRV _ registerhotkey, registers a second shortcut key file through a DBUS interface (DBUS _ BUS _ SESSION) of the linux system, modifies a first input instruction in the second shortcut key file into a second input instruction, and enables the input signal to correspond to the second input instruction, and the corresponding codes are as follows:
name_test = ( char* )malloc(sizeof(char) * 256);
printf(name_test,"WINEPREFIX=%s %s/../../bin/wine %s %c %d",wine_get_config_dir(),wine_get_data_dir(),"sendkeys",vkey,modifiers);
pkeys = ( char* )malloc(sizeof(char) * (strlen(keys)));
sprintf(pkeys,"%s",keys);
subsequently, step S340 is executed to generate a second input instruction according to the second shortcut key file and the input signal in response to receiving the input signal of the input device. And when the second input instruction is generated, searching the input instruction corresponding to the input signal in the second shortcut key file according to the input signal to obtain the second input instruction. The input signal is a signal triggered by the shortcut key corresponding to the target operation on the input equipment, so that the normal use of the shortcut key is realized.
Finally, step S350 is executed to send the second input instruction to the application program, so that the second input instruction is executed by the application program to complete the target operation. According to one embodiment of the invention, the first operating system runs a plurality of unadapted applications through the compatible module. The application program is also registered in the compatible module, and the application program corresponding to the second input instruction is registered in the compatible module to generate registration information. And the compatible module determines that the second input instruction corresponds to a plurality of application programs according to the registration information. When the second input instruction is sent to the application program, the compatible module determines the application program corresponding to the second input instruction according to the registration information, and sends the second input instruction to the application program, and the application program can determine and execute the target operation according to the second input instruction.
FIG. 5 illustrates a schematic diagram of generating a second input instruction according to an exemplary embodiment of the invention. As shown in fig. 5: and after capturing the input signal, the linux system generates a second input instruction according to the input signal and sends the second input instruction to the wire compatible layer. And the wire compatible layer determines that the application program to be forwarded is a windows application according to the registration information, calls a SendInput method provided by the wire-user 32.dll through a sendkey. The Windows application can process the second input instruction and execute the target operation.
Exe program executes the following code to send a second input instruction to the windows application:
key_count = init_key_down(key, key_mode);
TRACE("key down: (%s%c), %d, %d\n", key_mode_map[key_mode].string, key,
SendInput(key_count, keys_to_send, sizeof(INPUT)*key_count),
GetLastError());
Sleep(10);
key_count = init_key_up(key_mode);
TRACE("key up: (%s%c), %d, %d\n", key_mode_map[key_mode].string, key,
SendInput(key_count, keys_to_send, sizeof(INPUT)*key_count),
GetLastError());
fig. 6 illustrates a shortcut key implementation architecture diagram in accordance with an exemplary embodiment of the present invention. As shown in fig. 6: the computing device comprises a linux system serving as a first operating system, a wire compatible layer serving as a compatible module, and a Windows application running in the linux system according to the wire compatible layer.
First, a second shortcut key file registration is performed. The Windows application calls a register HotKey to register a shortcut key file and generates a registration file in Wieserver; the phone compatible layer calls an interface of the linux system to register a second shortcut key file through a register HotKey function; the interface may be implemented as a dbus interface. When the linux system receives an input signal, generating a second input instruction according to a second shortcut key file; and then executing a wire sendkey command to send the second input instruction to a wire compatible layer, receiving the second input instruction by the wire compatible layer, generating a WM _ HOTKEY event according to the HotKey in the registration file, and sending the WM _ HOTKEY event to the second input instruction to be processed by the Windows application.
According to an embodiment of the present invention, the first operating system further generates a script file according to the target operation and the input signal corresponding to the second input instruction. When an input signal of the input equipment is received, the target operation corresponding to the input signal is determined according to the script file, and then the target operation required to be executed by the application program is sent to the application program through the compatible module, so that the application program can execute the target operation corresponding to the input signal. The first operating system acquires target operation to be executed by the application program according to the second input instruction, and establishes a direct mapping relation between the input signal and the target operation in a script file constructing mode; when the input signal is received, the target operation is determined according to the input signal, and the compatible module directly informs the application program of the target operation to be executed. The method is not influenced by a compatible layer, the mapping chain of the input signal and the target operation is shortened, computer resources can be saved, and the application program can respond to and execute the target operation quickly.
The invention discloses a shortcut key implementation method which is suitable for being executed in computing equipment. The computing device is in communication connection with the input device and runs a first operating system, and the method comprises the following steps: a compatible module is firstly constructed in the computing equipment, so that an application program can run in a first operating system which is not adapted originally according to the compatible module, and the application program is originally suitable for running in a second operating system. And then determining a second input instruction corresponding to the target operation in the application program, and registering a second shortcut key file in the first operating system according to the second input instruction, so that when an input signal of the input device is received, a second input instruction is generated according to the second shortcut key file and the input signal, and the first operating system can generate a second input instruction required by the application program according to the input signal. And finally, sending the second input instruction to the application program so as to execute the second input instruction through the application program to finish the target operation. According to the method and the device, the second shortcut key file is registered in the operating system, so that when the application program is executed in the non-adaptive operating system, the shortcut key can still be normally used for finishing the target operation, the adaptability of the operating system to the application program is enhanced, and the use experience of a user when the operating system is used for running the non-adaptive application program is improved.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects.
Those skilled in the art will appreciate that the modules or units or groups of devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. Modules or units or groups in embodiments may be combined into one module or unit or group and may furthermore be divided into sub-modules or sub-units or sub-groups. All of the features disclosed in this specification, and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except that at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification may be replaced by an alternative feature serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the shortcut key implementation method of the present invention in accordance with instructions in the program code stored in the memory.
By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer-readable media includes both computer storage media and communication media. Computer storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of computer readable media.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to practitioners skilled in this art. The disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention.

Claims (10)

1. A shortcut implementation method adapted to be executed in a computing device communicatively coupled to an input device and running a first operating system, the method comprising the steps of:
building a compatible module in the computing device;
running an application in the first operating system by the compatible module, the application adapted to run in a second operating system;
generating a second shortcut key file according to target operation to be executed in an application program, and registering the second shortcut key file in the first operating system;
in response to receiving an input signal of the input device, generating a second input instruction according to the second shortcut key file and the input signal;
and sending the second input instruction to an application program so as to execute the second input instruction through the application program to complete target operation.
2. The method of claim 1, wherein the computing device has a first shortcut file stored therein, and the generating a second shortcut file according to a target operation to be performed in the application program comprises:
generating an instruction registration message according to the second input instruction through the compatible module;
and generating a second shortcut key file according to the instruction registration message and the first shortcut key file.
3. The method of claim 2, wherein the first shortcut file includes an input signal of the input device and a first input instruction corresponding to the input signal, and the generating a second shortcut file according to the instruction registration message and the first shortcut file includes the steps of:
and modifying the first input instruction in the first shortcut key file into a second input instruction according to the second input instruction in the instruction registration message, so that the input signal corresponds to the second input instruction.
4. The method of claim 3, wherein the generating of the second input instruction according to the second shortcut file and the input signal comprises the steps of:
and searching an input instruction corresponding to the input signal in the second shortcut key file according to the input signal to obtain a second input instruction.
5. The method according to any one of claims 1-4, wherein the method further comprises the step of:
and registering the application program corresponding to the second input instruction in the compatible module to generate registration information.
6. The method of claim 5, wherein sending the second input instruction to an application program comprises:
and the compatible module determines an application program corresponding to the second input instruction according to the registration information and sends the second input instruction to the application program.
7. The method of claim 6, wherein the method further comprises the steps of:
and generating a script file according to the target operation and the input signal corresponding to the second input instruction.
8. The method of claim 7, wherein the method further comprises the steps of:
when an input signal of the input equipment is received, determining a target operation corresponding to the input signal according to the script file, and sending the target operation required to be executed by the application program to the application program so that the application program can execute the target operation corresponding to the input signal.
9. A computing device, comprising:
one or more processors;
a memory; and
one or more apparatuses comprising instructions for performing the method of any of claims 1-8.
10. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform the method of any of claims 1-8.
CN202111566676.3A 2021-12-21 2021-12-21 Shortcut key implementation method, computing device and storage medium Active CN113961086B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210177153.8A CN114527883A (en) 2021-12-21 2021-12-21 Shortcut key implementation method, computing device and storage medium
CN202111566676.3A CN113961086B (en) 2021-12-21 2021-12-21 Shortcut key implementation method, computing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111566676.3A CN113961086B (en) 2021-12-21 2021-12-21 Shortcut key implementation method, computing device and storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202210177153.8A Division CN114527883A (en) 2021-12-21 2021-12-21 Shortcut key implementation method, computing device and storage medium

Publications (2)

Publication Number Publication Date
CN113961086A true CN113961086A (en) 2022-01-21
CN113961086B CN113961086B (en) 2022-04-01

Family

ID=79473400

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202210177153.8A Pending CN114527883A (en) 2021-12-21 2021-12-21 Shortcut key implementation method, computing device and storage medium
CN202111566676.3A Active CN113961086B (en) 2021-12-21 2021-12-21 Shortcut key implementation method, computing device and storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202210177153.8A Pending CN114527883A (en) 2021-12-21 2021-12-21 Shortcut key implementation method, computing device and storage medium

Country Status (1)

Country Link
CN (2) CN114527883A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114465914A (en) * 2022-04-12 2022-05-10 杭州银行股份有限公司 Server cluster construction method, computing device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080126785A1 (en) * 2006-07-10 2008-05-29 Chong Benedict T Method and apparatus for virtualization of appliances
CN103870295A (en) * 2012-12-13 2014-06-18 联想(北京)有限公司 Switching method and electronic device
CN105335176A (en) * 2014-07-22 2016-02-17 中兴通讯股份有限公司 Method and apparatus for calling application installed in electronic device
CN106201492A (en) * 2016-06-30 2016-12-07 北京金山安全软件有限公司 Hot key implementation method and device and electronic equipment
US9804872B1 (en) * 2014-12-03 2017-10-31 Parallels International Gmbh Method for emulation of a virtual OS bookmark on a host desktop
CN107766055A (en) * 2017-09-29 2018-03-06 郑州云海信息技术有限公司 A kind of client linux system installation method based on GUI module
CN108009000A (en) * 2016-10-31 2018-05-08 江苏神州信源系统工程有限公司 A kind of method that historical record in Windows virtual machines is obtained under virtualized environment
CN112988252A (en) * 2021-04-26 2021-06-18 统信软件技术有限公司 Operating system starting method and computing device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080126785A1 (en) * 2006-07-10 2008-05-29 Chong Benedict T Method and apparatus for virtualization of appliances
CN103870295A (en) * 2012-12-13 2014-06-18 联想(北京)有限公司 Switching method and electronic device
CN105335176A (en) * 2014-07-22 2016-02-17 中兴通讯股份有限公司 Method and apparatus for calling application installed in electronic device
US9804872B1 (en) * 2014-12-03 2017-10-31 Parallels International Gmbh Method for emulation of a virtual OS bookmark on a host desktop
CN106201492A (en) * 2016-06-30 2016-12-07 北京金山安全软件有限公司 Hot key implementation method and device and electronic equipment
CN108009000A (en) * 2016-10-31 2018-05-08 江苏神州信源系统工程有限公司 A kind of method that historical record in Windows virtual machines is obtained under virtualized environment
CN107766055A (en) * 2017-09-29 2018-03-06 郑州云海信息技术有限公司 A kind of client linux system installation method based on GUI module
CN112988252A (en) * 2021-04-26 2021-06-18 统信软件技术有限公司 Operating system starting method and computing device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
VMWARE官方文档: ""配置键盘与鼠标配置文件"", 《HTTPS://DOCS.VMWARE.COM/CN/VMWARE-FUSION/11/COM.VMWARE.FUSION.USING.DOC/GUID-003F98BE-B8DE-48CC-937A-4A6E2D06439F.HTML》 *
一点通: "在Mac上运行Windows的5种最佳方案", 《HTTPS://ZHUANLAN.ZHIHU.COM/P/96717301》 *
不详: "Wine Developer"s Guide/Debugging Wine", 《HTTPS://WIKI.WINEHQ.ORG/WINE_DEVELOPER%27S_GUIDE/DEBUGGING_WINE》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114465914A (en) * 2022-04-12 2022-05-10 杭州银行股份有限公司 Server cluster construction method, computing device and storage medium

Also Published As

Publication number Publication date
CN113961086B (en) 2022-04-01
CN114527883A (en) 2022-05-24

Similar Documents

Publication Publication Date Title
CN111930283B (en) Message display method and computing device
CN114691240A (en) Drive hardware configuration information loading method, device and system and computing equipment
CN110795343A (en) Test system, test method and computing device
CN113961086B (en) Shortcut key implementation method, computing device and storage medium
CN112379888A (en) Code change analysis method
CN114691226A (en) Multi-operating-system switching operation method, computing device and storage medium
CN112860240B (en) Script verification method, script signature method and computing device
CN113312188A (en) Data processing method, data interaction system and computing equipment
CN107368498B (en) Method and device for optimizing lock waiting timeout of MySQ L pessimistic lock
CN111447178A (en) Access control method, system and computing device
CN113885758B (en) Virtual screen generation method, computing device and storage medium
CN113535275A (en) Hybrid application construction method and device and computing equipment
CN112925539B (en) Application updating method, computing device and storage medium
CN111563259B (en) Puppet process detection method and device, readable storage medium and computing device
CN113515388A (en) Process scheduling method and device, computing equipment and readable storage medium
CN114168937A (en) Resource access method, computing device and readable storage medium
CN114721672A (en) Application installation method, computing device and storage medium
CN114003290A (en) Application program running method and device related to instruction replacement
CN112181516A (en) Application software execution method and computing device
CN113867825B (en) Multi-system operation method, computing equipment and storage medium
CN114338390B (en) Server configuration method, computing device and storage medium
CN113568879B (en) File attribute adding method, computing device and storage medium
US20080059103A1 (en) System and Method for Implementing a Programmable DMA Master With Date Checking Utilizing a Drone System Controller
CN113904962B (en) Resource access method and device and computing equipment
CN113467695B (en) Task execution method and device, computing device and storage medium

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