Server hotkey setting method, device, equipment and readable storage medium

By obtaining the hotkey file in the server settings interface, determining the target hotkey function and scan code, updating the mapping table and making it effective, the problem of personalized customization of server hotkeys is solved, safe and convenient custom hotkey settings are achieved, and system flexibility and user experience are improved.

CN119248118BActive Publication Date: 2025-10-03INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411381394.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-10-03
Estimated Expiration
2044-09-30

AI Technical Summary

Technical Problem

In the prior art, personalized customization of server hotkeys is difficult to achieve, traditional hotkey configurations do not meet all user needs, and there are security risks.

Method used

By obtaining the hotkey file specified by the user in the setting interface, determining the target hotkey function and scan code, updating the mapping table, and taking effect when the server is restarted, a custom hotkey setting method and device are provided, including a hotkey file acquisition module, a target determination module, a mapping table update module and an effectiveness module.

Benefits of technology

It realizes safe and convenient server hotkey customization, improves system flexibility and personalization, reduces user technical requirements, avoids security risks, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248118B_ABST
    Figure CN119248118B_ABST
Patent Text Reader

Abstract

The present invention discloses a server hotkey setting method, apparatus, device, and readable storage medium, applicable to the field of hotkey setting. The method comprises: obtaining a hotkey file created by a user in a setting interface based on a hotkey customization form; determining a target hotkey function based on the option name in the hotkey file, and determining a target hotkey scan code based on the key name in the hotkey file; updating and saving a mapping table based on the target hotkey scan code and target hotkey function; storing the mapping relationship between keyboard scan codes and keyboard functions in the mapping table; and the updated mapping table taking effect when the server is restarted. The present invention solves the problem that personalized customization of server hotkeys is difficult to implement and user-unfriendly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of hotkey settings, and in particular to a server hotkey setting method, device, equipment and readable storage medium. Background Art

[0002] During server use and management, users or administrators may need to frequently enter the BIOS (Basic Input / Output System) to make configuration changes or troubleshoot problems. They may also need to quickly select boot items or enter the boot environment of PXE (Preboot Execution Environment), USB (Universal Serial Bus), or TF (TransFlash Card, an extremely small flash memory card). In this case, the convenience of hotkeys is demonstrated.

[0003] Traditional hotkey configurations do not always meet the needs of all users. Since BIOS hotkeys are usually fixed, changing hotkeys requires high user skills and may also pose security risks. Therefore, how to safely and conveniently customize hotkeys to meet user personalized needs is a technical problem that needs to be solved urgently. Summary of the Invention

[0004] In view of this, an object of the present invention is to provide a server hotkey setting method, device, equipment and readable storage medium, which solves the problem that personalized customization of server hotkeys is difficult to achieve in the prior art.

[0005] To solve the above technical problems, the present invention provides a server hotkey setting method, comprising:

[0006] Get the hotkey file that the user has set based on the hotkey customization form in the settings interface;

[0007] Determine a target hotkey function according to the option name of the hotkey file, and determine a target hotkey scan code according to the key name of the hotkey file;

[0008] updating a mapping table according to the target hotkey scan code and the target hotkey function, and saving the mapping table; the mapping relationship between keyboard scan codes and keyboard functions is stored in the mapping table;

[0009] When the server is restarted, the updated mapping table takes effect.

[0010] On the one hand, after determining the target hotkey function according to the option name of the hotkey file, the method further includes:

[0011] According to the target hotkey function, the hotkey file is saved in a folder of the same category of functions.

[0012] On the one hand, before updating the mapping table according to the target hotkey scan code and the target hotkey function, the method further includes:

[0013] The mapping relationship between the hotkey scan codes and the hotkey functions is set based on experience to obtain the mapping table.

[0014] On the one hand, after the updated mapping table takes effect, it also includes:

[0015] When the CheckForKey function detects that the user presses a hot key during the startup phase, it obtains the scan code corresponding to the hot key;

[0016] Searching whether there is a hot key scan code corresponding to the hot key based on the updated mapping table;

[0017] If it exists, then search for the target function corresponding to the hotkey, execute the target function, and enter the corresponding interface;

[0018] If it does not exist, the boot function is executed and an error message is displayed on the interface;

[0019] When the CheckForKey function does not detect that the user presses the hot key during the startup phase, the hot key prompt information in the hot key customization form is loaded and displayed; the hot key prompt information is used to inform the user how to perform the next operation; the hot key prompt information is automatically generated according to the mapping relationship in the mapping table.

[0020] On the one hand, after determining the target hotkey function according to the option name of the hotkey file and determining the target hotkey scan code according to the key name of the hotkey file, the method further includes:

[0021] Determining an effective condition according to an effective tag of the hotkey file;

[0022] Accordingly, when the server is restarted, the updated mapping table takes effect, including:

[0023] When the server is restarted, the updated mapping table is effective under the effectiveness condition.

[0024] On the one hand, the hotkey customization form also includes help information, which is used to explain the function and purpose of each option.

[0025] On the one hand, after determining the target hotkey function according to the option name of the hotkey file and determining the target hotkey scan code according to the key name of the hotkey file, the method further includes:

[0026] When the customized hotkey obtained based on the hotkey file conflicts with other hotkeys, a prompt is given and a hotkey conflict solution is provided.

[0027] The present invention also provides a server hotkey setting device, comprising:

[0028] Hotkey file acquisition module, used to obtain the hotkey file specified by the user based on the hotkey customization form in the setting interface;

[0029] a target determination module, configured to determine a target hotkey function according to an option name of the hotkey file, and determine a target hotkey scan code according to a key name of the hotkey file;

[0030] A mapping table updating module is used to update and save a mapping table according to the target hotkey scan code and the target hotkey function; the mapping table stores a mapping relationship between keyboard scan codes and keyboard functions;

[0031] The validation module is used to enable the updated mapping table to take effect when the server is restarted.

[0032] The present invention also provides a server hotkey setting device, comprising:

[0033] memory for storing computer programs;

[0034] The processor is configured to implement the steps of the above-mentioned server hotkey setting method when executing the computer program.

[0035] The present invention also provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned server hotkey setting method are implemented.

[0036] The present invention also provides a computer program product, comprising a computer program / instruction, which implements the steps of the above-mentioned server hotkey setting method when executed by a processor.

[0037] It can be seen from the above technical solution that the present invention obtains the hotkey file formulated by the user based on the hotkey customization form in the setting interface; determines the target hotkey function according to the option name of the hotkey file, and determines the target hotkey scan code according to the key name of the hotkey file; updates the mapping table according to the target hotkey scan code and the target hotkey function, and saves it; the mapping relationship between the keyboard scan code and the keyboard function is stored in the mapping table; when the server is restarted, the updated mapping table takes effect. The beneficial effect of the present invention is that: in the present invention, the user can formulate a hotkey file based on the hotkey customization form, and update the mapping table based on the hotkey file, thereby realizing the customization of the server hotkey. The present invention allows the user to customize the hotkeys and their functions according to needs to adapt to different usage scenarios, thereby improving the flexibility and personalization of the system. In particular, it is achieved by configuring the hotkey file and the mapping table, does not involve third-party tools, and does not pose any security risks; it has lower requirements on users and also improves the user experience.

[0038] In addition, the present invention also provides a server hotkey setting device, equipment and readable storage medium, which also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0040] Figure 1 A flow chart of a server hotkey setting method provided by an embodiment of the present invention;

[0041] Figure 2 A flowchart illustrating a method for customizing server hotkeys according to an embodiment of the present invention;

[0042] Figure 3 An example diagram of an operation process provided by an embodiment of the present invention;

[0043] Figure 4 A schematic structural diagram of a server hotkey setting device provided by an embodiment of the present invention;

[0044] Figure 5 A schematic structural diagram of a server hotkey setting device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0046] Hotkeys, also known as shortcut keys, are specific keys or key combinations used during the server startup process to quickly access certain functions, such as entering BIOS setup and selecting a boot device. Hotkeys simplify user operations, allowing users to perform critical tasks without having to memorize complex commands or menu paths. Generally, different devices and motherboards have different hotkey configurations. For example, common hotkeys for entering the BIOS Setup interface include F2, Del (Delete), and Esc (Exit).

[0047] During server use and management, users or administrators may need to frequently enter the BIOS to make configuration changes or troubleshoot problems, and may also need to quickly select boot items or enter the PXE, USB, or TF card boot environment. However, traditional hotkey configurations do not always meet the needs of all users. Specifically, users may have the following needs: (1) Flexibility and customization: Adapting to the user's personal preferences or specific workflows. For example, a user may want to use a key that is easier to remember or more convenient to operate as a hotkey; (2) Convenience: In a server room environment, physical access to the server may be difficult due to the small space or large number of servers. Custom hotkeys can help administrators access the required functions more quickly, especially in remote management. (3) Uniformity: There may be multiple brands and models of servers in the user's computer room. Generally speaking, the default hotkey designs of different brands are different. If the hotkey functions cannot be unified, it will cause great trouble to the administrator. The administrator needs to customize the functions to achieve hotkey unification.

[0048] The current technical implementation of hotkey settings can be divided into the following two categories: (1) Firmware customization: For advanced users or enterprise environments, custom firmware can be used to implement custom hotkey functions. This usually involves modifying the BIOS source code and then recompiling the BIOS image to include the customized hotkey configuration. This method requires professional skills and knowledge and is usually performed by BIOS engineers. (2) Third-party tools: Although using third-party tools to simulate hotkey behavior is feasible in some cases, such tools need to run in the OS (Operating System) environment and are not recommended for server environments because there may be security risks. Third-party tools may bypass the security mechanism of the BIOS, making the system vulnerable to attacks.

[0049] Therefore, setting up server hotkeys involves a lot of complexities, including the basic functionality of the BIOS, the purpose of the hotkeys, and the specific needs of the user. As server management becomes increasingly complex, customizing hotkeys has become an important means of improving efficiency. Through proper planning and implementation, users can fully utilize this functionality to better manage and maintain their server equipment. To this end, the present invention provides a server hotkey setting method that addresses these issues and enables secure and low-demand server hotkey customization.

[0050] Please refer to Figure 1 , Figure 1 A flow chart of a method for setting a server hotkey is provided in an embodiment of the present invention. The method may include:

[0051] S101: Obtain a hotkey file defined by the user based on a hotkey customization form in a setting interface.

[0052] The execution subject of this embodiment is a terminal. The terminal can be a local terminal or a remote terminal. When the server starts, a hotkey customization form will be displayed in the settings interface, and the user can use the hotkey customization form in the settings interface to perform hotkey customization operations. If the user does not perform customization operations, the hotkey customization form in the settings interface can also be closed. The customization form includes option names and optional key names. For example, the option names may include Hotkey To Setup (a shortcut key for entering settings), Hotkey To Boot Menu (a shortcut key for entering the boot menu), Hotkey To PXE Boot (a shortcut key for starting the network), etc. Corresponding to each option name, there are multiple key names. For example, the optional key names corresponding to Hotkey To Setup (a shortcut key for entering settings) include: ESC, DEL, F1, F2, F3, etc. It should be noted that users can also customize and add additional option names. It is understandable that the option name is a name that can represent the function of the hotkey.

[0053] Furthermore, this embodiment may also allow users to customize hotkey macros, that is, a hotkey triggers a series of predefined operations or commands, thereby improving operational efficiency.

[0054] Furthermore, in order to make operation more convenient for users and reduce the knowledge requirements for users, the above hotkey customization form may also include help information, which is used to explain the function and purpose of each option.

[0055] Specifically, when a user formulates a hotkey file based on a custom form, help information can be configured for each option. When the user selects the option, help information can pop up to explain the function and purpose of the option for easy understanding by the user.

[0056] Furthermore, to avoid the problem of custom hotkeys not taking effect, you can also include the following steps:

[0057] When a custom hotkey based on a hotkey file conflicts with other hotkeys, a prompt will be given and a hotkey conflict solution will be provided.

[0058] Specifically, when a user executes a hotkey file, the system can help the user avoid invalid hotkeys. Specifically, when a hotkey is selected, the system determines whether the selected hotkey has other functions. If so, the system prompts the user that the key cannot be used; if not, the key can be used. Furthermore, when conflicts arise, the system provides suggestions for resolving hotkey conflicts, such as automatically adjusting the default settings of certain hotkeys.

[0059] S102: Determine a target hotkey function according to the option name of the hotkey file, and determine a target hotkey scan code according to the key name of the hotkey file.

[0060] After the user sets up a hotkey file on the setup interface, the user's selected hotkey function can be determined based on the option name in the hotkey file, and the target hotkey scan code selected by the user can be determined based on the key name in the hotkey file. The target hotkey scan code refers to the keyboard scan code corresponding to the key selected by the user.

[0061] Furthermore, in order to facilitate hotkey management, after determining the target hotkey function according to the option name of the hotkey file, the following steps may be further included:

[0062] Save the hotkey file in a folder with the same function category according to the target hotkey function.

[0063] Specifically, you can determine which category of hotkeys the hotkey file belongs to based on the target hotkey function. Of course, you can also place it in the Hotkey Setting submenu under the Advanced Form (Advanced Menu), and then further find submenus of the same category of functions in the Hotkey Setting submenu.

[0064] S103: updating a mapping table according to the target hotkey scan code and the target hotkey function, and saving the mapping table; the mapping relationship between the keyboard scan code and the keyboard function is stored in the mapping table.

[0065] It should be noted that the mapping table in this embodiment records the mapping relationship between keyboard scan codes and keyboard functions. The mapping table in this embodiment can record the mapping relationship between all keyboard scan codes and their corresponding keyboard functions. If a key is not a hotkey and does not have a keyboard function, its mapping is empty.

[0066] Furthermore, under default conditions, or during initialization (initialization will automatically enter the default conditions), the mapping table records the mapping relationship between the hotkey scan codes and the hotkey functions set based on experience.

[0067] Specifically, the mapping table in this embodiment only records the hot keys and does not record other keys. This ensures that the keyboard scan codes recorded in the mapping table are all keyboard scan codes of the hot keys, reduces the mapping complexity of the mapping table, and saves the storage space of the mapping table.

[0068] S104: When the server is restarted, the updated mapping table takes effect.

[0069] After the mapping table is updated and saved, the updated mapping table takes effect after the server is restarted, and the user-defined hotkey file takes effect, and the hotkey change / customization is completed.

[0070] Furthermore, after the updated mapping table takes effect, the following steps may be further included:

[0071] When the CheckForKey function detects that the user presses a hot key during the startup phase, it obtains the scan code corresponding to the hot key;

[0072] Find out whether there is a hot key scan code corresponding to the hot key based on the updated mapping table;

[0073] If it exists, search for the target function corresponding to the hotkey, execute the target function, and enter the corresponding interface;

[0074] If it does not exist, the boot function is executed and an error message is displayed on the interface;

[0075] When the CheckForKey function does not detect that the user presses the hot key during the startup phase, the hot key prompt information in the hot key customization form is loaded and displayed; the hot key prompt information is used to inform the user how to perform the next operation; the hot key prompt information is automatically generated according to the mapping relationship in the mapping table.

[0076] Specifically, the CheckForKey function monitors keyboard input to check if a key is pressed. When a key is detected, it returns the scan code for that key, which is then used by subsequent code. The returned scan code is then queried against the mapping table defined in hotkey_actions.c (the mapping table definition file). If the scan code is found in the mapping table, indicating a corresponding function, the corresponding hotkey function is executed. If the key does not have a corresponding function record in the mapping table, the boot process continues. In this embodiment, a hotkey prompt is generated based on the mapping relationship in the mapping table. This hotkey prompt can be used to inform the user how to proceed. For example, this hotkey prompt can clearly inform the user how to enter the Setup interface or perform other operations. For example, the hotkey prompt might read: "Press F2 to enter setup." This hotkey prompt is displayed on the screen, making it clear to the user what to do next. It should be noted that because different hotkeys have different corresponding prompts, the prompts need to be updated based on the settings. When a valid key is detected, this embodiment can determine whether the key is a hot key set in the mapping table based on the hot key scan code in the mapping table. If it is a hot key set in the mapping table, the function corresponding to the hot key is determined based on the mapping relationship corresponding to the hot key scan code in the mapping table, and the corresponding interface is entered. If no valid user key is detected or the hot key is not in the mapping table, a hot key prompt message can be set to prompt the user to prevent the user from mistakenly pressing a key to enter other interfaces, thereby improving security and enhancing user experience.

[0077] This embodiment does not limit the display format of hotkey prompt information. In addition to text prompts, multimedia elements such as icons and animations can also be added to make hotkey prompt information more intuitive and easy to understand. The display format of prompt information, such as color and font size, can also be automatically adjusted according to user preferences or system settings.

[0078] Furthermore, in order to increase the flexibility of hotkey settings, after determining the target hotkey function according to the option name of the hotkey file and determining the target hotkey scan code according to the key name of the hotkey file, the following steps may be further included:

[0079] Determine the validity conditions based on the validity tag of the hotkey file;

[0080] Accordingly, when the server is restarted, the updated mapping table takes effect, including:

[0081] When the server is restarted, the updated mapping table takes effect under the effective conditions.

[0082] The purpose of this step is to enhance the flexibility of hotkey configuration. While allowing users to define only the hotkey function, they can also define the conditions under which the hotkey will take effect. For example, it can only be effective during a specific time period or when a specific user is logged in.

[0083] Furthermore, this embodiment can also limit the setting permissions for the hotkey file. For example, different hotkey setting permissions can be provided for different user levels, such as administrators and ordinary users. Alternatively, when the user is an advanced user, the optional option names and optional hotkey functions in the hotkey customization form are more abundant, while when the user is a novice user, the hotkey settings can be simplified.

[0084] Furthermore, before obtaining the hotkey file defined by the user based on the hotkey customization form in the setting interface, the method further includes:

[0085] Get the user's historical hotkey records and current hotkey records;

[0086] Adjust the optional item names and optional hotkey functions in the hotkey customization form based on historical hotkey records and current hotkey records.

[0087] Specifically, this embodiment can obtain the user's hot key usage habits based on the user's historical hot key records and current hot key records, and set more friendly optional item names and optional hot key functions in the user's hot key customization form based on the hot key usage habits, so that the user can more conveniently set the hot keys of his personal usage habits, and the optional items in the hot key customization form are more streamlined, more targeted and personalized.

[0088] The server hotkey setting method provided by the embodiment of the present invention is applied, by obtaining the hotkey file formulated by the user based on the hotkey customization form in the setting interface; determining the target hotkey function according to the option name of the hotkey file, and determining the target hotkey scan code according to the key name of the hotkey file; updating the mapping table according to the target hotkey scan code and the target hotkey function, and saving it; the mapping relationship between the keyboard scan code and the keyboard function is stored in the mapping table; when the server is restarted, the updated mapping table takes effect. The beneficial effect of this method is that: in this method, the user can formulate a hotkey file based on the hotkey customization form, and update the mapping table based on the hotkey file, thereby realizing the customization of the server hotkey. This method allows the user to customize the hotkeys and their functions according to needs to adapt to different usage scenarios, thereby improving the flexibility and personalization of the system. In particular, it is implemented by configuring the hotkey file and the mapping table, does not involve third-party tools, and does not pose any security risks; it has lower requirements on users and also improves the user experience.

[0089] In addition, help information is provided to facilitate users to customize server hotkeys; and by saving hotkey files in a folder with the same function, the management of hotkey files is facilitated; and, hotkey prompt information is dynamically generated and displayed on the screen according to the user's hotkey settings, and the hotkey prompt information displayed on the screen is dynamically updated according to changes in the hotkey settings to guide user operations, thereby improving the friendliness and intuitiveness of the user interface; and, the CheckForKey function is implemented to monitor keyboard input, and query the mapping table based on the returned scan code to decide whether to execute the corresponding hotkey function.

[0090] In order to make the present invention easier to understand, please refer to Figure 2 and Figure 3 , Figure 2 This is a flow chart illustrating an exemplary method for customizing server hotkeys provided by an embodiment of the present invention. Figure 3 An example diagram of an operation process provided by an embodiment of the present invention may specifically include:

[0091] Step 1: Create a unicode file to define the option names, optional hotkey names, and help information displayed in the Setup interface. For example, create a HotkeyOption.uni code file, also known as a hotkey file. This hotkey file can define multiple option names or a single option name. For example, Hotkey To Setup (a shortcut key for entering settings), Hotkey To Boot Menu (a shortcut key for entering the boot menu), Hotkey To PXE Boot (a shortcut key for starting the network), etc. For each option, define its optional hotkey name, such as ESC, DEL, F1, F2, F3, etc.; and add detailed help information for each option, explaining its function and purpose.

[0092] Step 2: Create an Sdl file to define the scan codes (also called keyboard scan codes) for each hotkey to be used. For example, create a hotkeys.sdl file to list all available hotkeys and their corresponding scan codes, such as F1, F2, Esc, DEL, etc.

[0093] Step 3: Create an .sd file, define menu items like HotkeyToSetup, HotkeyToBootMenu, and HotkeyToPXEBoot, and place them in the Hotkey Setting submenu under the Advanced Form. For example, create the advanced_menu.sd file and define a form called Hotkey Setting containing the aforementioned menu items. These menu items correspond to the menu names displayed in Setup in Step 1. The optional hotkey names for each menu item are all keys that can be used as hotkeys. For example, under the HotkeyToSetup menu, the options are ESC, DEL, F1, F2, F3, and so on.

[0094] Step 4: Create a C file to define the hotkey-to-function mapping table and update the mappings in the table based on the hotkey settings above. For example, create hotkey_actions.c and use a data structure to store the default hotkeys and their corresponding functions. If the settings in setup are not the default values, use the UpdateHotkeyOption() function to update the hotkey mappings to match the options set in Setup.

[0095] Step 5: Create a .uni file to define the hotkey prompts that appear on the screen for different settings. Since different hotkeys have different prompts, you need to update the prompts based on the settings. For example, create a file called hotkey_prompts.uni to define the hotkey prompts that appear on the screen, such as "Press F2 to enter setup."

[0096] Step 6: After the server is powered on, hotkey prompts are printed on the screen during POST (a step in the computer startup process). During POST, the server determines the Setup hotkey settings and dynamically loads and displays the corresponding prompts defined in hotkey_prompts.uni. These prompts clearly inform the user how to enter the Setup interface or perform other operations.

[0097] Step 7: The CheckForKey function detects the currently pressed key. The CheckForKey function monitors keyboard input and checks whether a key is pressed. When a key is detected, it returns the scan code for that key, which is then used by the subsequent code.

[0098] Step 8: Check if the hotkey being pressed has a corresponding function record in the mapping table. Use the scan code returned by the CheckForKey function to query the mapping table defined in hotkey_actions.c. If the scan code exists in the mapping table, it means that the corresponding function exists.

[0099] Step 9: If the hotkey pressed in step 8 has a corresponding function record in the mapping table, the corresponding hotkey function is executed; if the hotkey pressed in step 8 does not have a corresponding function record in the mapping table, the boot process continues. The code logic is as follows: if the hotkey has a corresponding function, call the corresponding processing function; if the hotkey does not have a corresponding function, ignore the hotkey and continue the normal boot process.

[0100] The above steps reflect that the entire process from hotkey definition, user configuration, hotkey detection to function execution is integrated into one system, forming a closed-loop solution and enhancing the integrity of the system and user experience.

[0101] The following is an introduction to a server hotkey setting device provided by an embodiment of the present invention. The server hotkey setting device described below and the server hotkey setting method described above can be referenced to each other.

[0102] Please refer to Figure 4 , Figure 4 A schematic structural diagram of a server hotkey setting device provided in an embodiment of the present invention may include:

[0103] The hotkey file acquisition module 100 is used to acquire the hotkey file set by the user based on the hotkey customization form in the setting interface;

[0104] A target determination module 200 is configured to determine a target hotkey function according to an option name of the hotkey file, and to determine a target hotkey scan code according to a key name of the hotkey file;

[0105] A mapping table updating module 300 is used to update and save a mapping table according to the target hotkey scan code and the target hotkey function; the mapping table stores a mapping relationship between keyboard scan codes and keyboard functions;

[0106] The validation module 400 is configured to validate the updated mapping table when the server is restarted.

[0107] Based on the above embodiment, the server hotkey setting device may further include:

[0108] The saving module is used for, after determining a target hotkey function according to the option name of the hotkey file, saving the hotkey file in a folder of the same category function according to the target hotkey function.

[0109] Based on the above embodiment, the server hotkey setting device may further include:

[0110] The initialization module is used to set the mapping relationship between the hotkey scan code and the hotkey function based on experience before updating the mapping table according to the target hotkey scan code and the target hotkey function to obtain the mapping table.

[0111] Based on the above embodiment, the server hotkey setting device may further include:

[0112] A first detection module is configured to obtain a scan code corresponding to a hot key when a CheckForKey function detects that a user presses a hot key during a startup phase after the updated mapping table takes effect;

[0113] A search module, configured to search for a hot key scan code corresponding to the hot key based on the updated mapping table;

[0114] A first search result module is used to search for the target function corresponding to the hotkey if it exists, execute the target function, and enter the corresponding interface;

[0115] The second search result module is used to execute the boot function if the search result does not exist and prompt an error message through the interface display;

[0116] The second detection module is used to load the hot key prompt information in the hot key customization form and display the hot key prompt information when the CheckForKey function does not detect that the user presses the hot key during the startup phase; the hot key prompt information is used to inform the user how to perform the next operation; the hot key prompt information is automatically generated according to the mapping relationship in the mapping table.

[0117] Based on the above embodiment, the server hotkey setting device may further include:

[0118] An effectiveness condition determination module, configured to determine a target hotkey function according to an option name of the hotkey file, determine a target hotkey scan code according to a key name of the hotkey file, and then determine an effectiveness condition according to an effectiveness tag of the hotkey file;

[0119] Accordingly, the validation module 400 may include:

[0120] The validation unit is configured to validate the updated mapping table under the validation condition when the server is restarted.

[0121] Based on the above embodiment, the hotkey customization form may further include help information, where the help information is used to explain the function and purpose of each option.

[0122] Based on the above embodiment, the server hotkey setting device may further include:

[0123] The hotkey conflict module is used to determine the target hotkey function according to the option name of the hotkey file and the target hotkey scan code according to the key name of the hotkey file. When the custom hotkey obtained based on the hotkey file conflicts with other hotkeys, it will prompt and provide a hotkey conflict solution.

[0124] It should be noted that the order of the modules and units in the above-mentioned server hotkey setting device can be changed without affecting the logic.

[0125] The server hotkey configuration device provided by an embodiment of the present invention comprises a hotkey file acquisition module 100 for acquiring a hotkey file specified by a user in a configuration interface based on a hotkey customization form; a target determination module 200 for determining a target hotkey function based on the option name in the hotkey file and a target hotkey scan code based on the key name in the hotkey file; a mapping table update module 300 for updating and saving a mapping table based on the target hotkey scan code and the target hotkey function; the mapping table stores the mapping relationship between keyboard scan codes and keyboard functions; and an implementation module 400 for implementing the updated mapping table upon server restart. The device advantageously allows users to customize hotkeys based on the hotkey customization form and update the mapping table based on the hotkey file, thereby achieving server hotkey customization. The device allows users to customize hotkeys and their functions as needed to adapt to different usage scenarios, thereby increasing the flexibility and personalization of the system. In particular, by configuring hotkey files and mapping tables, this feature eliminates the need for third-party tools and poses no security risks. It also requires fewer user requirements and improves the user experience.

[0126] In addition, help information is provided to facilitate users to customize server hotkeys; and by saving hotkey files in a folder with the same function, the management of hotkey files is facilitated; and, hotkey prompt information is dynamically generated and displayed on the screen according to the user's hotkey settings, and the hotkey prompt information displayed on the screen is dynamically updated according to changes in the hotkey settings to guide user operations, thereby improving the friendliness and intuitiveness of the user interface; and, the CheckForKey function is implemented to monitor keyboard input, and query the mapping table based on the returned scan code to decide whether to execute the corresponding hotkey function.

[0127] Figure 5 A schematic diagram of the structure of a server hot key setting device provided by an embodiment of the present invention, such as Figure 5 As shown, the server hotkey setting devices include:

[0128] Memory 60, for storing computer programs;

[0129] The processor 61 is configured to implement the steps of the server hotkey setting method of the above embodiment when executing a computer program.

[0130] The server hotkey setting device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer, or a desktop computer.

[0131] The processor 61 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 61 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 61 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 61 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing content required to be displayed on the display screen. In some embodiments, the processor 61 may also include an artificial intelligence (AI) processor for handling computational operations related to machine learning.

[0132] The memory 60 may include one or more computer-readable storage media, which may be non-transitory. The memory 60 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 60 is at least used to store the following computer program 601, wherein, after the computer program is loaded and executed by the processor 61, it can implement the relevant steps of the server hotkey setting method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 60 may also include an operating system 602 and data 603, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 602 may include Windows, Unix, Linux, etc. The data 603 may include but is not limited to data of the server hotkey setting method, etc.

[0133] In some embodiments, the server hotkey setting device may further include a display screen 62 , an input / output interface 63 , a communication interface 64 , a power supply 65 , and a communication bus 66 .

[0134] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation to the server hotkey setting device, and may include more or fewer components than shown in the figure.

[0135] It is understandable that if the server hotkey setting method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the current technology, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and executes all or part of the steps of the various embodiments of the present invention. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, a magnetic disk, or an optical disk, and other media that can store program code.

[0136] Based on this, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned server hotkey setting method are implemented.

[0137] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from the other embodiments. Reference can be made to the descriptions of the identical or similar parts between the various embodiments. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and the relevant parts can be referred to the descriptions of the methods.

[0138] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0139] Finally, it should be noted that, in this document, relationships such as first and second, etc., are used solely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.

[0140] The above is a detailed introduction to the server hotkey setting device method, apparatus, equipment and readable storage medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A server hotkey setting method, characterized in that: include: Get the hotkey file that the user has set based on the hotkey customization form in the settings interface; Determine a target hotkey function according to the option name of the hotkey file, and determine a target hotkey scan code according to the key name of the hotkey file; updating a mapping table according to the target hotkey scan code and the target hotkey function, and saving the mapping table; the mapping relationship between keyboard scan codes and keyboard functions is stored in the mapping table; When the server is restarted, the updated mapping table takes effect; After the updated mapping table takes effect, it also includes: When the CheckForKey function detects that the user presses a hot key during the startup phase, it obtains the scan code corresponding to the hot key; Searching whether there is a hot key scan code corresponding to the hot key based on the updated mapping table; If it exists, then search for the target function corresponding to the hotkey, execute the target function, and enter the corresponding interface; If it does not exist, the boot function is executed and an error message is displayed on the interface; When the CheckForKey function does not detect that the user presses the hot key during the startup phase, the hot key prompt information in the hot key customization form is loaded and the hot key prompt information is displayed; the hot key prompt information is used to inform the user how to perform the next operation; the hot key prompt information is automatically generated according to the mapping relationship in the mapping table.

2. The server hotkey setting method according to claim 1, characterized in that: After determining the target hotkey function according to the option name of the hotkey file, the method further includes: According to the target hotkey function, the hotkey file is saved in a folder of the same category of functions.

3. The server hotkey setting method according to claim 1, characterized in that: Before updating the mapping table according to the target hotkey scan code and the target hotkey function, the method further includes: The mapping relationship between the hotkey scan codes and the hotkey functions is set based on experience to obtain the mapping table.

4. The server hotkey setting method according to claim 1, characterized in that: After determining the target hotkey function according to the option name of the hotkey file and determining the target hotkey scan code according to the key name of the hotkey file, the method further includes: Determining an effective condition according to an effective tag of the hotkey file; Accordingly, when the server is restarted, the updated mapping table takes effect, including: When the server is restarted, the updated mapping table is effective under the effectiveness condition.

5. The server hotkey setting method according to claim 1, characterized in that: The hotkey customization form also includes help information, which is used to explain the function and purpose of each option.

6. The server hotkey setting method according to claim 1, characterized in that: After determining the target hotkey function according to the option name of the hotkey file and determining the target hotkey scan code according to the key name of the hotkey file, the method further includes: When the customized hotkey obtained based on the hotkey file conflicts with other hotkeys, a prompt is given and a hotkey conflict solution is provided.

7. A server hotkey setting device, characterized in that: include: Hotkey file acquisition module, used to obtain the hotkey file specified by the user based on the hotkey customization form in the setting interface; a target determination module, configured to determine a target hotkey function according to an option name of the hotkey file, and determine a target hotkey scan code according to a key name of the hotkey file; A mapping table updating module is used to update and save a mapping table according to the target hotkey scan code and the target hotkey function; the mapping table stores a mapping relationship between keyboard scan codes and keyboard functions; An effective module, configured to make the updated mapping table effective when the server is restarted; Also includes: A first detection module is configured to obtain a scan code corresponding to a hot key when a CheckForKey function detects that a user presses a hot key during a startup phase after the updated mapping table takes effect; A search module, configured to search for a hot key scan code corresponding to the hot key based on the updated mapping table; A first search result module is used to search for the target function corresponding to the hotkey if it exists, execute the target function, and enter the corresponding interface; The second search result module is used to execute the boot function if the search result does not exist and prompt an error message through the interface display; The second detection module is used to load the hotkey prompt information in the hotkey customization form and display the hotkey prompt information when the CheckForKey function does not detect that the user presses the hotkey during the startup phase; the hotkey prompt information is used to inform the user how to perform the next operation; the hotkey prompt information is automatically generated according to the mapping relationship in the mapping table.

8. A server hotkey setting device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the server hotkey setting method according to any one of claims 1 to 6 when executing the computer program.

9. A readable storage medium, characterized in that The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the server hotkey setting method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • User-defined keyboard and implementing method thereof

    CN101158885A

  • BIOS-based multi-user management method and system

    CN111309389A