A shortcut key implementation method, a computing device and a storage medium

By building a compatible module in the computing device and registering the shortcut key file, the problem of applications being unable to use shortcut keys on incompatible operating systems was solved, enabling the normal use of shortcut keys in the first operating system and improving the user experience.

CN114527883BActive Publication Date: 2026-03-27UNIONTECH SOFTWARE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-21
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In existing technologies, when applications run on incompatible operating systems, they cannot use keyboard shortcuts to complete target operations, resulting in functional deficiencies.

Method used

A compatible module is built in the computing device. Through this module, the application runs in the first operating system, generates and registers a second shortcut key file, generates a second input command in response to the input signal of the input device, and sends it to the application to complete the target operation.

Benefits of technology

It enables the normal use of keyboard shortcuts on incompatible operating systems, enhances the compatibility of the operating system with applications, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114527883B_ABST
    Figure CN114527883B_ABST
Patent Text Reader

Abstract

The application discloses a shortcut key implementation method, a computing device and a storage medium, and comprises the following steps: constructing a compatibility module in the computing device; running an application program in a first operating system through the compatibility module, the application program being adapted to run in a second operating system; generating a second shortcut key file according to a target operation to be performed in the 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 an input signal of an input device in response to receiving the input signal; and sending the second input instruction to the application program so as to complete the target operation by executing the second input instruction through the application program. By registering the second shortcut key file in the operating system, the application program can still normally use the shortcut key to complete the target operation when the application program is executed in the operating system which is not completely adapted, and the use experience of a user when using the operating system to run the application program which is not completely adapted is improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present application is a divisional application of the invention patent application filed on December 21, 2021, the original application number: 2021115666763, and the invention name: a shortcut key implementation method, a computing device, and a storage medium. TECHNICAL FIELD

[0002] The present application relates to the field of operating systems, in particular to a shortcut key implementation method, a computing device, and a storage medium. BACKGROUND

[0003] With the development of computer technology, more and more application programs have been developed. These application programs are sometimes only applicable to one operating system. At present, through a compatibility program such as wine, the application program can run in another operating system.

[0004] But when the application program runs in the operating system that is not adapted through the compatibility program, the function of the application program cannot be fully displayed. When the application program runs in the operating system that is not adapted, the function of the application program will be missing, for example, the shortcut operation required by the application program cannot be used, that is, the target operation is completed through the shortcut key.

[0005] Therefore, a new shortcut key implementation method is needed. SUMMARY

[0006] Therefore, the present application provides a shortcut key implementation method to try to solve or at least alleviate the above problems.

[0007] According to one aspect of the present application, a shortcut key implementation method is provided, which is suitable for being executed in a computing device, the computing device is in communication connection with an input device and runs a first operating system, and the method comprises the steps of: constructing a compatibility module in the computing device; running an application program in the first operating system through the compatibility module, the application program being suitable for running in a second operating system; generating a second shortcut key file according to a target operation to be executed in the 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 an input signal of the input device in response to receiving the input signal; 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.

[0008] Optionally, in the method according to the present application, the first shortcut key file is stored in the computing device, and generating the second shortcut key file according to the target operation to be executed in the application program comprises the steps of: generating an instruction registration message according to the second input instruction through the compatibility module; and generating the second shortcut key file according to the instruction registration message and the first shortcut key file.

[0009] Optionally, in the method according to the present application, the first shortcut file comprises 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 comprises the step of: modifying the first input instruction in the first shortcut file to 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.

[0010] Optionally, in the method according to the present application, the generating of the second input instruction according to the second shortcut file and the input signal comprises the step of: searching for an input instruction corresponding to the input signal in the second shortcut file according to the input signal to obtain the second input instruction.

[0011] Optionally, in the method according to the present application, the method further comprises the step of: registering an application corresponding to the second input instruction in the compatibility module to generate registration information.

[0012] Optionally, in the method according to the present application, the sending of the second input instruction to the application comprises the step of: determining the application corresponding to the second input instruction according to the registration information by the compatibility module, and sending the second input instruction to the application.

[0013] Optionally, in the method according to the present application, the method further comprises the step of: generating a script file according to the target operation and the input signal corresponding to the second input instruction.

[0014] Optionally, in the method according to the present application, the method further comprises the step of: when receiving the input signal of the input device, determining the target operation corresponding to the input signal according to the script file, and sending the target operation required to be executed by the application to the application so that the application executes the target operation corresponding to the input signal.

[0015] According to another aspect of the present application, a computing device is provided, 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, and the one or more programs comprise instructions for executing the shortcut implementation method according to the present application.

[0016] According to still another aspect of the present application, a computer readable storage medium storing one or more programs is provided, and the one or more programs comprise instructions which, when executed by a computing device, cause the computing device to execute the shortcut implementation method according to the present application.

[0017] The application discloses a shortcut key implementation method, which is suitable for being executed in a computing device. The computing device is connected with an input device and runs a first operating system. The method comprises the following steps: firstly, a compatible module is constructed in the computing device, so that an application program can run in the first operating system which is not originally adapted to the application program according to the compatible module, and the application program is originally adapted to run in a second operating system. Then, a second input instruction corresponding to a target operation in the application program is determined, and a second shortcut key file is registered in the first operating system according to the second input instruction, so that the second input instruction can be generated according to the second shortcut key file and an input signal of the input device when the input signal is received, and the first operating system can generate the second input instruction required by the application program according to the input signal. Finally, the second input instruction is sent to the application program, so that the target operation can be completed by executing the second input instruction through the application program. According to the application, the second shortcut key file is registered in the operating system, so that the application program can still normally use the shortcut key to complete the target operation when the application program is executed in the operating system which is not originally adapted to the application program, the adaptability of the operating system to the application program is enhanced, and the use experience of a user when the user uses the operating system to run the application program which is not completely adapted is improved. BRIEF DESCRIPTION OF DRAWINGS

[0018] 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. These aspects are indicative of various ways in which the principles disclosed herein can be practiced and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above- and other advantages of the application disclosed herein will become more apparent in light of the following detailed description, when taken in conjunction with the accompanying drawings in which like reference numerals refer to like elements in the figures, and wherein:

[0019] Figure 1 A schematic diagram of an operating system running in a computing device according to one exemplary embodiment of the application is shown;

[0020] Figure 2 A structural block diagram of a computing device 200 according to one exemplary embodiment of the application is shown;

[0021] Figure 3 A flowchart of a shortcut key implementation method 300 according to one exemplary embodiment of the application is shown;

[0022] Figure 4 A schematic diagram of registering a shortcut key according to one exemplary embodiment of the application is shown;

[0023] Figure 5 A schematic diagram of generating a second input instruction according to one exemplary embodiment of the application is shown; and

[0024] Figure 6A diagram showing a shortcut implementation architecture according to an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0025] Exemplary embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure can be embodied in various forms without being limited by 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 present disclosure to those skilled in the art. Like reference numerals refer to like elements throughout.

[0026] Figure 1 A diagram showing a computing device running an operating system according to an exemplary embodiment of the present application is shown. As shown, a first operating system 110 is running in a computing device 200, and a compatibility module 120 is also constructed, through which an application 130 can run in the first operating system. The application 130 is an application adapted to run in a second operating system, and is not adapted to run in the first operating system 110. The compatibility module 120 can provide running services for the application 130 according to a plurality of service interfaces of the first operating system 110. Specifically, when implementing the application 130 running in the first operating system 110, the compatibility module 120 determines the running services required by the application 130, acquires the plurality of service interfaces in the first operating system 110, matches the running services required by the application 130 with the service interfaces, so as to indirectly provide the running services for the application 130 by the first operating system 110 through the compatibility module 120. Figure 1

[0027] The present application does not limit the specific implementation of the compatibility module 120, and the compatibility module 120 can be implemented as a wine compatibility layer. The present application does not limit the types of the first operating system 110 and the second operating system, and the first operating system 110 and the second operating system are different types of operating systems. According to an embodiment of the present application, the first operating system 110 can be implemented as a linux system, and the second operating system can be implemented as a windows system. The application can be implemented as a Windows application, and the wine compatibility layer can simulate a Windows operating system environment in a Linux user space through a winserver, and also provide various services required by the process and thread of the Windows application, including inter-process communication, synchronization mechanism and object management, etc.

[0028] Figure 2 A structural block diagram of a computing device 200 according to an exemplary embodiment of the present application is shown. As shown, Figure 2 ​As shown in the basic configuration 202, the computing device 200 typically includes a system memory 206 and one or more processors 204. A memory bus 208 can be used for communicating between the processor 204 and the system memory 206.

[0029] Depending on the desired configuration, the processor 204 can be of any type, including but not limited to a microprocessor (μP), a microcontroller (μC), a digital signal processor (DSP), or any combination thereof. The processor 204 can include one or more levels of caching, such as a level one cache 210 and a level two cache 212, a processor core 214, and registers 216. The example processor core 214 can include an arithmetic logic unit (ALU), a floating point unit (FPU), a digital signal processing core (DSP Core), or any combination thereof. An example memory controller 218 can also be used with the processor 204, or in some implementations, the memory controller 218 can be an internal part of the processor 204.

[0030] Depending on the desired configuration, the system memory 206 can be of any type, including but not limited to volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. The system memory 206 can include an operating system 220, one or more programs 222, and program data 228. In some embodiments, the programs 222 can include instructions 223 for implementing the method 300 according to the present application, which can be executed by the one or more processors 204 using the program data 228.

[0031] The computing device 200 can also include a storage interface bus 234. The storage interface bus 234 enables communication between the storage devices 232 (e.g., removable storage 236 and non-removable storage 238) and the basic configuration 202 via the bus / interface controller 230. The operating system 220, the one or more programs 222, and the program data 224 can be stored in the removable storage 236 and / or the non-removable storage 238 as described above. These elements can be loaded into the system memory 206 and executed by the one or more processors 204 as described above, using the storage interface bus 234.

[0032] The computing device 200 can also include an interface bus 240 for facilitating 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. Example output devices 242 include a graphics processing unit 248 and an audio processing unit 250, which can be configured to facilitate communication to various external devices such as a display or speakers via one or more A / V ports 252. Example peripheral interfaces 244 include a serial interface controller 254 or a parallel interface controller 256, which can be configured to facilitate communication to various external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripheral devices (e.g., printer, scanner) via one or more I / O ports 258. An example

[0033] Network communication links can be one example of a communication media. Communication media can typically be embodied by computer readable instructions, data structures, program modules, and the like, in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. A "modulated data signal" can be a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media can include wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio frequency (RF), microwave, infrared (IR) and other wireless media. The term computer readable media as used herein can include both storage media and communication media.

[0034] In the computing device 200 according to the present application, the program 222 includes a plurality of program instructions of the shortcut implementation method 300, which can instruct the processor 204 to execute part of the steps in the shortcut implementation method 300 running in the computing device 200 of the present application, so that the parts in the computing device 200 implement the normal use of the shortcut by executing the shortcut implementation method 300 of the present application.

[0035] The computing device 200 can be implemented as a server, such as a file server, a database server, an application server, and the like, and the electronic device can be a personal digital assistant (PDA), a wireless web appliance, an application-specific device, or a hybrid device that can include any of the above functions. It can be implemented as a personal computer including desktop computer and notebook computer configurations, and in some embodiments, the computing device 200 is configured as the shortcut implementation method 300.

[0036] Figure 3 A flow chart of a shortcut key implementing method 300 according to an exemplary embodiment of the present application is shown. The shortcut key implementing method 300 is adapted to run in a computing device, in which a first operating system runs.

[0037] Firstly, step S310 is performed, and a compatibility module is constructed in the computing device. For an application program which is not able to adapt to all operating systems, in order to run the application program in an unadapted operating system, the compatibility module needs to be constructed. The compatibility module is able to provide running services for the application program according to a plurality of service interfaces of the first operating system.

[0038] Subsequently, step S320 is performed, and the application program adapted to run in a second operating system is run in the first operating system through the compatibility module. The application program only adapts to run in the second operating system, and is not adapted to run in the first operating system. When the compatibility module 120 implements running the application program 130 in the first operating system 110, the compatibility module 120 determines the running services required by the application program 130, acquires a plurality of service interfaces in the first operating system 110, matches the running services required by the application program 130 with the service interfaces, so that the first operating system 110 indirectly provides running services for the application program 130 through the compatibility module 120. When the application program runs, the application program uses the service interfaces matched by the compatibility module 120 to call hardware resources through the first operating system to implement running. The present application does not limit the type of the application program.

[0039] When the application program is run in the unadapted first operating system through the compatibility module, the function of the application program cannot be completely exhibited. When the application program is run in the unadapted first operating system, the function of the application program will be missing, for example, the application program cannot use the shortcut operation required by the application program, that is, the target operation is completed through the shortcut key. Therefore, step S330 is performed, and a second shortcut key file is generated according to the target operation to be performed in the application program, and the second shortcut key file is registered in the first operating system.

[0040] The shortcut key to be set is a target operation which is completed in the application. The shortcut key refers to an operation completed by certain specific keys, key sequence or key combination. The present application does not limit the form of the shortcut key and the corresponding target operation, and the developer or user can set the corresponding mode of the shortcut key and the target operation according to the use requirement, for example, the combination of the Fn key and the I key is used for screenshot, the combination of the Fn key and the L key is used for page up, etc. The present application does not limit the mode of the shortcut key, and the mapping table of the second input instruction of the shortcut key and the target operation can be set by constructing the mapping table, which includes the corresponding relationship between the second input instruction and the target operation. When the application receives the second input instruction, the target operation to be executed can be obtained from the mapping table. When the second shortcut key file is generated, the target operation can be determined, and the corresponding second input instruction is set according to the target operation, and the target operation is executed when the application receives the second input instruction.

[0041] Optionally, according to one embodiment of the present application, the target operation to be executed in the application is determined as "page up", then the second input instruction corresponding to "page up" is set as "Fn+I", and it is also set that the "page up" operation is executed when the application receives the second input instruction "Fn+I".

[0042] The computing device is in communication connection with the input device, and the present application 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 multiple triggering modes, and the input signal corresponding to each triggering mode is different; the triggering mode can be realized as certain specific keys, key sequence or key combination. The input device sends different input signals to the computing device through different triggering modes, realizes different input instructions, and completes multiple different target operations.

[0043] In order for the first operating system in the computing device to normally call the input device, the first operating system also has a driver corresponding to the input device. When the input device sends an input signal corresponding to the triggering mode to the computing device, the driver adds the input signal to the system hardware input queue (SHIQ). The first shortcut key file is stored in the computing device, and the first shortcut key file stores the corresponding relationship between the input signal and the first input instruction under the first operating system. The original input thread (RIT) in the first operating system will convert the input signal in the system hardware input queue into the corresponding first input instruction according to the first shortcut key file, and send it to the front-end thread connected to the original input thread and the application thread.

[0044] In order to make the first operating system convert the input signal into the second input instruction under the second operating system, it is necessary to generate the second shortcut key file according to the target operation to be executed in the application. Specifically, first, the instruction registration message is generated according to the second input instruction by the compatibility module, and the instruction registration message includes the second input instruction, which is used to modify the first shortcut key file. Then, the second shortcut key file is generated according to the instruction registration message and the first shortcut key file. When the second shortcut key file is generated according to the instruction registration message and the first shortcut key file, the first input instruction in the first shortcut key file is modified into the 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. At this time, when the first operating system receives the input instruction, it can convert the input signal into the second input instruction according to the second shortcut key file.

[0045] According to one embodiment of the present application, the first operating system is a linux system, the second operating system is a windows system, the compatibility module is implemented as a wine compatibility layer, and the application is implemented as a windows application suitable for running in the windows system. Figure 4 A schematic diagram of registering a shortcut key according to one exemplary embodiment of the present application is shown.

[0046] As shown in Figure 4 When the windows application is running in the linux system through the wine compatibility layer, in order to normally use the shortcut key set by the windows application, the user32.dll-RegiteHotKey shortcut key registration function is first called by the windows application to inform the wine compatibility layer.

[0047] Then, the winex11 module (wine-winex11.drv) in the wine compatibility layer calls the method of X11DRV_RegiteHotKey to register the second shortcut key file through the interface (DBUS_BUS_SESSION) of the dbus of the linux system, modify the first input instruction in the second shortcut key file into the second input instruction, so that the input signal corresponds to the second input instruction, and the corresponding code is as follows:

[0048] name_test = (char *) malloc (sizeof (char) * 256);

[0049] printf (name_test, "WINEPREFIX = %s%s / .. / .. / bin / wine%s%c%d", wine_get_config_dir (), wine_get_data_dir (), "sendkeys", vkey, modifiers);

[0050] pkeys = (char*)malloc(sizeof(char)*(strlen(keys)));

[0051] sprintf(pkeys, "%s", keys);

[0052] Subsequently, step S340 is performed, and a second input instruction is generated according to the second shortcut key file and the input signal in response to receiving the input signal of the input device. When the second input instruction is generated, the input signal corresponding input instruction in the second shortcut key file is searched according to the input signal, and the second input instruction is obtained. The input signal is a signal triggered by the shortcut key corresponding to the target operation in the input device, so that the normal use of the shortcut key is realized.

[0053] Finally, step S350 is performed, and the second input instruction is sent to the application program, so that the target operation is completed by executing the second input instruction through the application program. According to an embodiment of the present application, the first operating system runs a plurality of unadapted application programs through the compatibility module. The application program is also registered in the compatibility module, the application program corresponding to the second input instruction is registered in the compatibility module, and registration information is generated. The compatibility module determines the plurality of application programs corresponding to the second input instruction according to the registration information. When the second input instruction is sent to the application program, the compatibility 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, so that the application program can determine and execute the target operation according to the second input instruction.

[0054] Figure 5 A schematic diagram of generating a second input instruction according to an exemplary embodiment of the present application is shown. As shown in the figure: Figure 5 After the linux system captures the input signal, the second input instruction is generated according to the input signal, and the second input instruction is sent to the wine compatibility layer. The wine compatibility layer determines that the application program to be forwarded is the windows application according to the registration information, and sends the second input instruction to the windows application through the SendInput method provided by wine-user32.dll by calling the sendkey.exe program. The windows application can process the second input instruction and execute the target operation.

[0055] The sendkey.exe program sends the second input instruction to the windows application by executing the following code:

[0056] key_count = init_key_down (key, key_mode);

[0057] TRACE ("key down: (%s%c), %d, %d\n", key_mode_map[key_mode].string, key,

[0058] SendInput (key_count, keys_to_send, sizeof (INPUT) * key_count),

[0059] GetLastError ());

[0060] Sleep (10);

[0061] key_count = init_key_up (key_mode);

[0062] TRACE ("key up: (%s%c), %d, %d\n", key_mode_map[key_mode].string, key,

[0063] SendInput (key_count, keys_to_send, sizeof (INPUT) * key_count),

[0064] GetLastError ());

[0065] Figure 6 A diagram showing a shortcut implementation architecture according to an exemplary embodiment of the present application is shown. As shown: a linux system is included in the computing device as a first operating system, a wine compatibility layer as a compatibility module, and a Windows application running in the linux system according to the wine compatibility layer. Figure 6

[0066] First, a second shortcut file is registered. The Windows application calls RegisterHotKey to register the shortcut file, and a registration file is generated in the Wineserver; the wine compatibility layer registers the second shortcut file through an interface of the linux system by calling the RegisterHotKey function; the interface can be implemented as a dbus interface. When the linux system receives an input signal, a second input instruction is generated according to the second shortcut file; then a wine sendkey command is executed to send the second input instruction to the wine compatibility layer, and the wine compatibility layer receives the second input instruction, generates a WM_HOTKEY event according to the HotKey in the registration file, and sends the second input instruction to the Windows application for processing.

[0067] ​According to one embodiment of the present application, 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 receiving the input signal of the input device, 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 through the compatibility module, so that the application program executes the target operation corresponding to the input signal. The first operating system acquires the target operation to be executed by the application program according to the second input instruction, and establishes the direct mapping relationship between the input signal and the target operation by constructing the script file; when receiving the input signal, the target operation is determined according to the input signal, and the target operation to be executed by the application program is directly informed by the compatibility module. This way is not affected by the compatibility layer, and shortens the mapping chain of the input signal and the target operation, which can save computer resources and quickly make the application program respond to the target operation.

[0068] The application discloses a shortcut key implementation method, which is suitable for being executed in a computing device. The computing device is in communication connection with an input device and runs a first operating system. The method comprises the following steps: first, a compatibility module is constructed in the computing device, so that an application program can run in the first operating system which is not originally adapted according to the compatibility module, and the application program is originally adapted to run in a second operating system. Then, a second input instruction corresponding to a target operation in the application program is determined, and a second shortcut key file is registered in the first operating system according to the second input instruction, so that when receiving an input signal of the input device, the second input instruction can be generated according to the second shortcut key file and the input signal, thereby enabling the first operating system to generate the second input instruction required by the application program according to the input signal. Finally, the second input instruction is sent to the application program, so that the target operation is completed by executing the second input instruction through the application program. The second shortcut key file is registered in the operating system, so that when the application program is executed in the operating system which is not originally adapted, the shortcut key can still be normally used to complete the target operation, the adaptability of the operating system to the application program is enhanced, and the use experience of a user when using the operating system to run the application program which is not completely adapted is improved.

[0069] In the description provided herein, a large number of specific details are explained. However, it is to be understood that embodiments of the application can 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 the understanding of this description.

[0070] Similarly, it is to be understood that, in the above description of exemplary embodiments of the application, individual features of the application are sometimes broadly stated as comprising one or more of various inventive aspects, without notification that all branching schemes are present in combination in each of the various embodiments.

[0071] Those skilled in the art will understand that the modules, or units, or groups of the apparatus in the examples disclosed herein can be arranged in an apparatus as described in the examples, or alternatively can be located in one or more apparatuses different from the apparatus in the examples. The modules in the foregoing examples can be combined as a module or further divided into multiple sub-modules.

[0072] Those skilled in the art will appreciate that the modules in the apparatus in the examples can be adaptively changed and arranged in one or more apparatuses different from the examples. The modules or units or groups in the examples can be combined as a module or unit or group, and further divided into multiple sub-modules or sub-units or sub-groups. All combinations of all features disclosed in the specification and any method or device so disclosed can be taken in any combination, excepting that at least some of such features and / or processes are mutually exclusive, unless explicitly stated otherwise. Each feature disclosed in the specification can also be replaced by an alternative feature providing the same, equivalent or similar functionality unless explicitly stated otherwise.

[0073] Further, those skilled in the art will appreciate that the features of the different examples described herein can be combined in any combination, and that the features of the examples described herein are meant to be examples of features within the scope of the application and form different examples.

[0074] Further, some of the examples described herein are described as a method or combination of elements of a method implementable by a processor of a computer system or by other means of carrying out the function. Accordingly, a processor with the necessary instructions for carrying out such a method or element of a method forms a means for carrying out the method or element of a method. Furthermore, an element described herein of a device can be

[0075] The various techniques described herein can be implemented in connection with hardware or software or, where appropriate, with a combination of both. Thus, the methods and apparatus of the application, or certain aspects or portions thereof, can 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 code is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the subject application.

[0076] In the case of program code execution on programmable computers, the computing device generally includes 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. The storage medium is configured to store program code, which is executed by the processor for implementing the present shortcut implementation method.

[0077] In a further embodiment, embodiments of the present application can be implemented using computer-readable media having stored thereon computer-executable program code. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. Storage media can be any available media that can be accessed by a computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of computer-executable instructions or data structures and that can be accessed by a computer. Also, functional

[0078] As used herein, unless otherwise indicated, the use of the ordinal adjectives "first", "second", "third", etc., merely to distinguish different instances of an object to which the adjective refers, and are not intended to denote a given sequence or order of such objects. Thus, a "first" object stirred under certain circumstances is not intended to denote that same object stirred second under different circumstances.

[0079] While the present application has been described in terms of several embodiments, those skilled in the art will recognize that the application can be practiced with modifications and alterations limited only by the spirit and scope of the inventiveness. In addition, it should be appreciated that variations to the embodiments of the present application can become apparent to those of ordinary skill in the art upon reading the foregoing description. The instant embodiments are to be considered as illustrative and not restrictive, and the application is not to be limited to the details given herein but can be modified within the scope and range of equivalents of the inventiveness. Therefore, numerous modifications and variations are possible in light of the above teachings. Note that the terms "comprise", "comprising", "include", "including", and the like can mean "consist of" or "consist essentially of" or "includin

Claims

1. A method for implementing keyboard shortcuts, suitable for execution in a computing device, said computing device being communicatively connected to an input device and running a first operating system, said method comprising the steps of: A compatible module is built into the computing device; The application runs in the first operating system through the compatibility module. The application is only adapted to run in the second operating system and is not suitable for running in the first operating system. The compatibility module provides running services for the application according to the service interface of the first operating system. A second shortcut key file is generated based on the target operation to be performed in the application, and the second shortcut key file is registered in the first operating system; In response to receiving an input signal from the input device, a second input instruction is generated based on the second shortcut key file and the input signal; The second input instruction is sent to the application so that the application can execute the second input instruction to complete the target operation; The computing device stores a first shortcut key file, and the step of generating a second shortcut key file based on the target operation to be performed in the application includes the following steps: The compatibility module generates an instruction registration message based on the second input instruction. Generate a second shortcut key file based on the instruction registration message and the first shortcut key file; The first shortcut key file includes the input signal of the input device and a first input command corresponding to the input signal. The step of generating a second shortcut key file based on the command registration message and the first shortcut key file includes the following steps: According to the second input instruction in the instruction registration message, the first input instruction in the first shortcut key file is modified to the second input instruction, so that the input signal corresponds to the second input instruction.

2. The method as described in claim 1, wherein, The step of generating the second input command based on the second shortcut key file and the input signal includes the following steps: Based on the input signal, the corresponding input instruction is searched in the second shortcut key file to obtain the second input instruction.

3. The method as described in claim 1 or 2, wherein, The method further includes the following steps: Register the application corresponding to the second input instruction in the compatibility module and generate registration information.

4. The method of claim 3, wherein, Sending the second input command to the application includes the following steps: The compatibility module determines the application corresponding to the second input instruction based on the registration information and sends the second input instruction to the application.

5. The method of claim 4, wherein, The method further includes the following steps: A script file is generated based on the target operation and the input signal corresponding to the second input instruction.

6. The method of claim 5, wherein, The method further includes the following steps: When an input signal is received from the input device, the target operation corresponding to the input signal is determined according to the script file, and the target operation that the application needs to execute is sent to the application so that the application can execute the target operation corresponding to the input signal.

7. A computing device, comprising: One or more processors; Memory; as well as One or more means, the one or more means comprising instructions for performing the method according to any one of claims 1-6.

8. A computer-readable storage medium storing one or more programs, said one or more programs including instructions that, when executed by a computing device, cause the computing device to perform the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • A method for implementing keyboard shortcuts, a computing device, and a storage medium.

    CN113961086B