Method and system for simulating input of clipboard content in KVM scene

Automatically read and simulate the keyboard input clipboard content through the KVM input simulator, solving the problem that cannot be copied and pasted directly in KVM remote control, realizing visual input and speed control, improving operation efficiency and accuracy, and is suitable for remote management scenarios that require frequent input.

CN120295810APending Publication Date: 2025-07-11SUMA-USI ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510347146.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-24
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

The existing KVM remote control system cannot directly copy and paste clipboard content, resulting in high operation complexity and high input error rate. Especially in scenarios where frequent input is required, such as factory batch configuration management and system administrator password input, manual input is cumbersome and error-prone.

Method used

It provides a method and system for simulating input clipboard content in KVM scenarios. Through the KVM input simulator developed in Python, the system clipboard content automatically triggers the simulated keyboard input, supports visual input content display, shortcut key triggering and input speed control, including initializing the visual interface, periodic polling to monitor clipboard content changes, using shortcut keys to simulate keyboard input and adjust input speed.

Benefits of technology

It simplifies the operation process, improves the work efficiency and input accuracy of remote management, reduces human errors, and is suitable for remote KVM operating environments that require frequent text input, especially in scenarios where direct pasting does not support, improving operators' work efficiency and input accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120295810A_ABST
    Figure CN120295810A_ABST
Patent Text Reader

Abstract

The invention provides a method and system for simulating input of clipboard content in a KVM scene, and relates to the technical field of computer input simulation. The method comprises the steps that a visual interface is initialized, a clipboard monitoring thread is established, and change of the clipboard content is monitored through periodic polling; when the content of the clipboard changes, updating the display area, storing the current scrolling position, and synchronously displaying the content of the clipboard; using a shortcut key to trigger simulation keyboard input, responding to a hot key event to trigger an input process, and simulating character-by-character input of clipboard content; the input speed is adjusted through a sliding block on an interface, analog input is executed according to a set speed parameter, an input state flag is maintained to prevent repeated triggering, analog keyboard input can be triggered through a shortcut key, the clipboard content can be monitored in real time, the clipboard content can be automatically read, keyboard input is simulated, and the user experience is improved. Input speed control and visual input display are supported, and operation efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer input simulation, and particularly relates to a method and system for simulating input clipboard content in a KVM scenario. Background Art

[0002] In the existing remote server management, when using the KVM (Keyboard, Video, Mouse) remote control technology, there is a problem that content cannot be directly copied and pasted through the clipboard. The KVM remote control system generally does not support direct transmission of clipboard content. Therefore, when operating personnel remotely manage the server, they must rely on manual input. Especially in some scenarios that require frequent input, such as batch configuration management in factories, password input or configuration operations by system administrators, manual input is not only cumbersome but also error-prone.

[0003] In the traditional KVM remote control system, operating personnel cannot see the content being input. Especially when inputting invisible characters (such as passwords), it is very easy to make mistakes because the accuracy of the input cannot be confirmed. This further increases the operation complexity and error rate. Therefore, how to provide a convenient text input method in the KVM environment to solve the deficiency of copy and paste and improve the accuracy and efficiency of operations has become an urgent problem to be solved. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to propose a method and system for simulating input clipboard content in a KVM scenario, aiming to solve the problems in the prior art that due to the inability to directly copy and paste the clipboard in KVM remote control, the operation complexity is high and the input error rate is high. Through the method and system of the present invention, it is possible to automatically read the clipboard content and simulate keyboard input, support input speed control and visual input display, and improve operation efficiency and accuracy.

[0005] To achieve the above purpose, the present invention provides the following technical solutions:

[0006] Based on the above purpose, in the first aspect, the present invention provides a method for simulating input clipboard content in a KVM scenario, including the following steps:

[0007] Initialize the visual interface and establish a clipboard monitoring thread, and monitor the change of clipboard content through periodic polling;

[0008] When the clipboard content changes, update the display area, save the current scroll position, and synchronously display the clipboard content;

[0009] Use a shortcut key to trigger simulated keyboard input, respond to the hot key event to trigger the input process, and simulate character-by-character input of the clipboard content;

[0010] Adjust the input speed through the slider on the interface, perform simulated input according to the set speed parameter, and maintain the input status flag to prevent repeated triggering.

[0011] A method for simulating the input of clipboard content in a KVM scenario according to the present invention is implemented through a KVM input simulator developed based on the Python language, and automatically triggers simulated keyboard input by using the system clipboard content. This system supports functions such as displaying visual input content, triggering input through shortcut keys, and controlling input speed, greatly simplifying the operation process and improving the work efficiency of remote management.

[0012] As a further solution of the present invention, initialize the visual interface, including:

[0013] Create a main window, set the window title to "Simulate Input by Pressing F11", and load the application icon;

[0014] Set the window size, position, transparency, and topmost property;

[0015] Initialize the interface components, including a text display area, a scroll bar, a control panel, and a bottom information bar; among them, the control panel contains a topmost button and a speed adjustment slider.

[0016] As a further solution of the present invention, when monitoring the change of clipboard content through periodic polling, perform periodic polling to monitor the clipboard content at intervals of every 100 ms. If the content changes, update the display area and synchronously display the text; and retain the current scroll position and text selection range to ensure that the text display is not lost.

[0017] As a further solution of the present invention, monitoring the change of clipboard content through periodic polling includes the following steps:

[0018] Obtain the current text content of the clipboard;

[0019] Compare with the historical cache to judge content update;

[0020] Save the current interface scroll position and selection range;

[0021] Perform differential content update rendering;

[0022] Restore the browsing state and selection area.

[0023] As a further solution of the present invention, when using shortcut keys to trigger simulated keyboard input, use the pyautogui library to simulate keyboard input, trigger the input action through the F11 key, and the input process includes: releasing all keys, having a short delay, pressing the backspace key to clear extra characters, and inputting the clipboard content character by character; the text content is displayed in real time during the input process.

[0024] As a further solution of the present invention, when adjusting the input speed through the slider on the interface, a slider is created through the tkinter library to adjust the input speed, allowing users to adjust the input speed according to their needs. The input speed control is achieved through the slider, and users can dynamically adjust the input interval. The input speed range is from 0 seconds to 0.5 seconds per character.

[0025] As a further solution of the present invention, when the user dynamically adjusts the input interval, the set interval time t ∈ [0, 0.5] seconds; the actual interval Δt = t + ε is calculated, where ε is the system calibration coefficient; the value of ε is dynamically adjusted according to the response delay of the target system.

[0026] As a further solution of the present invention, when initializing the topmost button on the visualization interface for window topmost control, through the topmost button on the interface, it controls whether the program window is topmost, facilitating the operator to view the clipboard content at any time during input, capturing and handling problems such as icon loading failure and abnormal input process, and ensuring the stable operation of the program.

[0027] As a further solution of the present invention, in the method of simulating input clipboard content in the KVM scenario, after triggering the input process in response to the hotkey event, preprocessing operations are performed through backspace and key release. The preprocessing operations include:

[0028] Traverse and release all hotkey states;

[0029] Insert a 100ms delay to ensure the key is fully released;

[0030] Send a backspace key command to clear the remaining content in the target input area;

[0031] Perform a secondary 50ms delay to wait for the cleaning to complete.

[0032] In a second aspect, the present invention provides a system for simulating input clipboard content in the KVM scenario, including:

[0033] A clipboard monitoring module for real-time capturing and verifying the system clipboard content;

[0034] A visualization interface module that realizes dynamic rendering of input content using a hierarchical GUI architecture;

[0035] An input simulation engine based on a hotkey trigger mechanism for keyboard event monitoring;

[0036] A dynamic adjustment module for providing an interactive speed control slider;

[0037] An exception handling module including an input conflict avoidance and resource path compatibility unit.

[0038] As a further solution of the present invention, the clipboard monitoring module adopts a double-buffer verification mechanism, including:

[0039] A content comparison unit for comparing the current content of the clipboard with the historical cache;

[0040] A scrolling position recording unit for saving and restoring the browsing state of the text display area;

[0041] A selection range maintaining unit for maintaining the text area selected by the user.

[0042] As a further solution of the present invention, the input simulation engine includes:

[0043] A preprocessing unit that performs a backspace operation to clear the target input area;

[0044] A key release unit that ensures the complete release of the hot key;

[0045] A dynamic interval controller that converts the slider value into the interval parameter of typewrite().

[0046] As a further solution of the present invention, the dynamic adjustment module includes:

[0047] A speed mapping unit that converts the physical displacement of the slider into a time interval of 0 - 0.5 seconds;

[0048] A real - time response unit that supports dynamic parameter adjustment during input;

[0049] A visual feedback unit that displays the current speed parameter through the slider scale value.

[0050] Compared with the prior art, a method and system for simulating input clipboard content in a KVM scenario proposed by the present invention has the following beneficial effects:

[0051] 1. By simulating the input of clipboard content, the present invention can effectively avoid the cumbersome operations brought by manual input, especially in environments where the same or complex text needs to be frequently input (such as BIOS passwords, configuration commands, etc.). Triggering the simulation input through a shortcut key reduces the workload of the operator and improves the overall operation efficiency. Adjusting the input speed through the slider makes the input process more flexible, and the user can adjust the input speed according to actual needs to adapt to the requirements of different system responses.

[0052] 2. In traditional KVM operations, it is easy to make mistakes when manually entering content. Especially for complex passwords or configuration items, it is difficult to check whether the input is correct. However, through the visual input function of the present invention, the content being entered is displayed in real time, allowing users to clearly see what they are entering during the input process, thus avoiding configuration problems caused by input errors. At the same time, by clearing redundant characters and handling the delay of key releases before input through the program, repeated triggering and input errors are effectively avoided, ensuring the accuracy of the input.

[0053] 3. The present invention is applicable to various KVM remote operation scenarios that require simulating the input of clipboard content. Especially in an environment where direct paste operations are not supported, it can provide a convenient text input simulation function. For example, in operations such as configuring production line equipment, server management, and network device debugging, a large number of fixed configuration commands or passwords often need to be entered, and the present invention can greatly simplify this process. Due to the customizable input speed and dynamic adjustment, the system of the present invention can flexibly respond to changes in the system response speed in different application environments, ensuring the smooth progress of the input process.

[0054] 4. The present invention provides an intuitive graphical user interface (GUI), enabling users to easily manage the input process. The interface design is clear and concise, providing functions such as a text display area, a speed control slider, and input status information. Users can conveniently perform operation configurations and monitor the input process in real time. The topmost window function allows users to view the clipboard content at any time during the input process, ensuring the accuracy and integrity of the input and enhancing the operation experience. The present invention is developed based on Python and combines common Python libraries such as Python3 pyautogui, pynput, and tkinter, and can run on multiple operating systems (such as Windows, Linux, etc.). Therefore, it is not limited to a specific platform and has good cross-platform adaptability, meeting the needs of different users and environments.

[0055] In summary, the method and system for simulating the input of clipboard content in the KVM scenario provided by the present invention have significant advantages in improving input efficiency, accuracy, usability, and stability, and are especially suitable for remote management scenarios that require efficient and accurate text input. Its application can not only greatly improve the work efficiency of operators, but also reduce human errors and security risks while ensuring input accuracy, having broad practical value.

[0056] These aspects or other aspects of the present application will be more clearly understood in the following description of the embodiments. It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. Brief Description of the Drawings

[0057] To more clearly illustrate the technical solutions in the embodiments of the present invention or the related art, the following briefly introduces the drawings required for describing the exemplary embodiments or the related art. The drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation to the present invention. In the drawings:

[0058] Figure 1 It is a flowchart of a method for simulating input clipboard content in a KVM scenario according to an embodiment of the present invention.

[0059] Figure 2 It is a flowchart of initializing a visualization interface in a method for simulating input clipboard content in a KVM scenario according to an embodiment of the present invention.

[0060] Figure 3 It is a schematic diagram of a user interface for simulating input by pressing F11 in a method for simulating input clipboard content in a KVM scenario according to an embodiment of the present invention.

[0061] Figure 4 It is a schematic diagram of a user interface for switching the window topmost state by a button in a method for simulating input clipboard content in a KVM scenario according to an embodiment of the present invention.

[0062] Figure 5 It is a flowchart of a preprocessing operation in a method for simulating input clipboard content in a KVM scenario according to an embodiment of the present invention. Detailed implementation manners

[0063] Next, in combination with the drawings and the specific implementation manners, the present application is further described. It should be noted that, on the premise of no conflict, the following-described embodiments or technical features can be combined arbitrarily to form new embodiments.

[0064] To make the purpose, technical solutions and advantages of the present invention clearer and more understandable, the following further elaborates on the embodiments of the present invention in detail with reference to specific embodiments and the drawings. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0065] It should be noted that all the expressions using "first" and "second" in the embodiments of the present invention are used to distinguish two non-identical entities or non-identical parameters with the same name. It can be seen that "first" and "second" are only for the convenience of expression and should not be construed as a limitation to the embodiments of the present invention. In addition, the terms "include" and "have" and any of their variations are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units inherently includes other steps or units.

[0066] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0067] The flowcharts shown in the accompanying drawings are only illustrative, and do not necessarily include all contents and operations / steps, nor do they necessarily need to be executed in the described order. For example, some operations / steps can be decomposed, combined, or partially merged, so the actual execution order may change according to the actual situation.

[0068] Next, some embodiments of the present application will be described in detail in conjunction with the accompanying drawings. Without conflict, the following embodiments and the features in the embodiments can be combined with each other.

[0069] In order to solve the problems in the prior art that due to the inability to directly perform clipboard copy and paste in KVM remote control, the operation complexity is high and the input error rate is high. The present invention proposes a method and system for simulating the input of clipboard content in a KVM scenario. The KVM input simulator developed using the Python language is mainly used to monitor the clipboard content and simulate keyboard input through a shortcut key (FI). Based on the Python3 pyautogui and pynput modules, the software for visually simulating the input of clipboard content can trigger the simulation of keyboard input through a shortcut key and monitor the clipboard content in real time. This system provides functions such as input speed adjustment and visual display, and is applicable to the remote KVM operation environment that requires frequent text input, especially applicable to the scenario of inputting text in an environment that does not support direct paste.

[0070] See Figure 1 As shown, the embodiments of the present invention provide a method for simulating the input of clipboard content in a KVM scenario, and the method includes the following steps:

[0071] Step S10: Initialize the visual interface and establish a clipboard monitoring thread to monitor the change of the clipboard content through periodic polling.

[0072] Step S20: When the clipboard content changes, update the display area, save the current scroll position, and synchronously display the clipboard content.

[0073] Step S30: Use a shortcut key to trigger the simulation of keyboard input, respond to the hot key event to trigger the input process, and simulate the input of the clipboard content character by character.

[0074] Step S40: Adjust the input speed through the slider on the interface, perform the simulation input according to the set speed parameter, and maintain the input status flag to prevent repeated triggering.

[0075] A method for simulating the input of clipboard content in a KVM scenario according to the present invention is implemented through a KVM input simulator developed based on the Python language, and automatically triggers simulated keyboard input by using the system clipboard content. This system supports functions such as the display of visual input content, triggering input through shortcut keys, and input speed control, greatly simplifying the operation process, improving the work efficiency of remote management, being able to automatically read clipboard content and simulate keyboard input, supporting input speed control and visual input display, and enhancing operation efficiency and accuracy.

[0076] In this embodiment, referring to Figure 2 、 Figure 3 and Figure 4 as shown, initialize the visual interface, including the following steps:

[0077] Step S101: Create a main window, set the window title to "Simulate Input by Pressing F11", and load the application icon;

[0078] Step S102: Set the window size, position, transparency, and topmost property;

[0079] Step S103: Initialize the interface components, including a text display area, a scroll bar, a control panel, and a bottom information bar; among them, the control panel contains a topmost button and a speed adjustment slider.

[0080] In this embodiment, when monitoring the change of clipboard content through periodic polling, perform periodic polling to monitor the clipboard content at intervals of every 100 ms. If the content changes, update the display area and synchronously display the text; and retain the current scroll position and text selection range to ensure that the text display is not lost.

[0081] Among them, monitoring the change of clipboard content through periodic polling includes the following steps:

[0082] Obtain the current text content of the clipboard;

[0083] Compare with the historical cache to judge content update;

[0084] Save the current interface scroll position and selection range;

[0085] Execute differential content update rendering;

[0086] Restore the browsing state and selection area.

[0087] In this embodiment, when using a shortcut key to trigger simulated keyboard input, the pyautogui library is used to simulate keyboard input, and the input action is triggered by the F11 key. The input process includes: releasing all keys, having a short delay, pressing the backspace key to clear redundant characters, and inputting the clipboard content character by character; the text content is displayed in real time during the input process.

[0088] By simulating the input of clipboard content, the present invention can effectively avoid the cumbersome operations brought by manual input, especially in environments where the same or complex text needs to be input frequently (such as BIOS passwords, configuration commands, etc.). Triggering the simulated input through a shortcut key reduces the workload of the operator and improves the overall operation efficiency. Adjusting the input speed through a slider makes the input process more flexible, and the user can adjust the input speed according to actual needs to adapt to the requirements of different system responses.

[0089] When adjusting the input speed through the slider on the interface, the tkinter library is used to create a slider to adjust the input speed, allowing the user to adjust the input speed according to needs. The input speed control is achieved through the slider, and the user dynamically adjusts the input interval. The input speed range is from 0 seconds to 0.5 seconds / character.

[0090] Among them, when the user dynamically adjusts the input interval, the set interval time t ∈ [0, 0.5] seconds; calculate the actual interval Δt = t + ε, where ε is the system calibration coefficient; dynamically adjust the value of ε according to the response delay of the target system.

[0091] In traditional KVM operations, it is easy to make mistakes when manually inputting content. Especially for complex passwords or configuration items, it is difficult to check whether the input is correct. However, through the visual input function of the present invention, the content being input is displayed in real time, and the user can clearly see the content they input during the input process, avoiding configuration problems caused by input errors. At the same time, through the program to clear redundant characters before input and the delay processing of key releases, repeated triggering and input errors are effectively avoided, ensuring the accuracy of input.

[0092] In this embodiment, when initializing the top - most button on the visual interface for window top - most control, through the top - most button on the interface, it is controlled whether the program window is top - most, which is convenient for the operator to view the clipboard content at any time during input, capture and handle problems such as icon loading failure and abnormal input process, ensuring the stable operation of the program.

[0093] In the method for simulating the input of clipboard content in the KVM scenario of the present invention, after triggering the input process in response to the hot - key event, pre - processing operations are performed through backspace and key release. See Figure 5 as shown, the pre - processing operations include:

[0094] Step S201, traverse and release all hot - key states;

[0095] Step S202: Insert a 100 - ms delay to ensure that the key is fully released;

[0096] Step S203: Send a backspace key command to clear the remaining content in the target input area;

[0097] Step S204: Delay for 50 ms again to wait for the cleaning to complete.

[0098] The present invention is applicable to various KVM remote operation scenarios that require simulating the input of clipboard content. Especially in an environment where direct paste operations are not supported, it can provide a convenient text input simulation function. For example, in operations such as the configuration of production line equipment, server management, and network device debugging, a large number of fixed configuration commands or passwords often need to be input, and the present invention can greatly simplify this process. Due to the customizable input speed and dynamic adjustment, the system of the present invention can flexibly cope with the changes in the system response speed in different application environments, ensuring the smooth progress of the input process.

[0099] Therefore, the present invention provides an intuitive graphical user interface (GUI), enabling users to easily manage the input process. The interface design is clear and concise, providing functions such as a text display area, a speed control slider, and input status information. Users can conveniently perform operation configuration and real - time monitor the input process. The top - most window function allows users to view the clipboard content at any time during the input process, ensuring the accuracy and integrity of the input and enhancing the operation experience. The present invention is developed based on Python, combined with common Python libraries such as pyautogui, pynput, and tkinter, and can run on multiple operating systems (such as Windows, Linux, etc.). Therefore, it is not limited to a specific platform, has good cross - platform adaptability, and can meet the needs of different users and environments.

[0100] It should be noted that the above - mentioned drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present invention, rather than for restrictive purposes. It is easy to understand that the processes shown in the above - mentioned drawings do not indicate or limit the time sequence of these processes. Additionally, it is also easy to understand that these processes can be executed synchronously or asynchronously, for example, in multiple modules.

[0101] It should be understood that although the above is described in a certain order, these steps are not necessarily executed in the above order sequentially. Unless otherwise clearly stated in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, a part of the steps in this embodiment may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or steps or stages in other steps.

[0102] In the second aspect of the embodiments of the present invention, the present invention also provides a system for simulating input clipboard content in a KVM scenario, including:

[0103] A clipboard monitoring module for capturing and verifying system clipboard content in real time;

[0104] A visualization interface module that uses a hierarchical GUI architecture to achieve dynamic rendering of input content;

[0105] An input simulation engine based on a hotkey trigger mechanism for keyboard event monitoring;

[0106] A dynamic adjustment module for providing an interactive speed control slider;

[0107] An exception handling module that includes an input conflict avoidance and resource path compatibility unit.

[0108] In this embodiment, the clipboard monitoring module adopts a double-buffer verification mechanism, including:

[0109] A content comparison unit for comparing the current clipboard content with the historical cache;

[0110] A scroll position recording unit for saving and restoring the browsing state of the text display area;

[0111] A selection range maintaining unit for maintaining the text area selected by the user.

[0112] Among them, the input simulation engine includes:

[0113] A preprocessing unit that executes a backspace operation to clear the target input area;

[0114] A key release unit to ensure the complete release of the hotkey triggered;

[0115] A dynamic interval controller that converts the slider value into the interval parameter of typewrite().

[0116] In this embodiment, the dynamic adjustment module includes:

[0117] A speed mapping unit that converts the physical displacement of the slider into a time interval of 0 - 0.5 seconds;

[0118] A real - time response unit that supports dynamic parameter adjustment during the input process;

[0119] A visual feedback unit that displays the current speed parameter through the slider scale value.

[0120] Through the above - detailed steps, the system for simulating the input of clipboard content in the KVM scenario of the present invention is used to execute the steps of the method for simulating the input of clipboard content in the KVM scenario in the above - mentioned embodiments, which will not be elaborated here. To sum up, the method and system for simulating the input of clipboard content in the KVM scenario provided by the present invention have significant advantages in improving input efficiency, accuracy, usability, and stability, and are particularly suitable for remote management scenarios that require efficient and accurate text input. Its application can not only greatly improve the work efficiency of operators, but also reduce human errors and potential safety hazards while ensuring input accuracy, and has broad practical value.

[0121] The above are exemplary embodiments disclosed by the present invention. However, it should be noted that various changes and modifications can be made without departing from the scope of the embodiments disclosed by the present invention as defined by the claims. The functions, steps, and / or actions of the method claims according to the disclosed embodiments here do not need to be executed in any specific order. In addition, although the elements disclosed in the embodiments of the present invention can be described or claimed in individual form, they can also be understood as plural unless explicitly limited to the singular.

[0122] It should be understood that, as used herein, unless the context clearly supports an exception, the singular form "a" is also intended to include the plural form. It should also be understood that "and / or" as used herein refers to any and all possible combinations of one or more of the associated listed items. The above - mentioned serial numbers of the disclosed embodiments of the present invention are only for description and do not represent the superiority or inferiority of the embodiments.

[0123] Those of ordinary skill in the art should understand that: the discussion of any above - mentioned embodiment is only exemplary and is not intended to imply that the scope (including the claims) disclosed by the embodiments of the present invention is limited to these examples; under the idea of the embodiments of the present invention, the technical features between the above - mentioned embodiments or different embodiments can also be combined, and there are many other variations in different aspects of the above - mentioned embodiments of the present invention, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present invention shall be included within the protection scope of the embodiments of the present invention.

Claims

1. A method for simulating the content of the input clipboard in a KVM scenario, characterized in that, The method includes the following steps: Initialize the visualization interface and establish a clipboard monitoring thread to monitor changes in the clipboard content through periodic polling; When the clipboard content changes, update the display area, save the current scroll position, and synchronously display the clipboard content; Use a shortcut key to trigger simulated keyboard input, respond to hotkey events to trigger the input process, and simulate character-by-character input of the clipboard content; Adjust the input speed through the slider on the interface, perform simulated input according to the set speed parameter, and maintain the input status flag to prevent repeated triggering.

2. The method for simulating input clipboard content in the KVM scenario according to claim 1, wherein Initialize the visualization interface, including: Create a main window, set the window title to "Simulated Input by Pressing F11", and load the application icon; Set the window size, position, transparency, and topmost property; Initialize the interface components, including a text display area, a scroll bar, a control panel, and a bottom information bar; among them, the control panel contains a topmost button and a speed adjustment slider.

3. The method for simulating input clipboard content in the KVM scenario according to claim 2, wherein When monitoring changes in the clipboard content through periodic polling, perform periodic polling to monitor the clipboard content at intervals of every 100 ms. If the content changes, update the display area and synchronously display the text; and retain the current scroll position and text selection range to ensure that the text display is not lost.

4. The method for simulating the input clipboard content in the KVM scenario according to claim 3, wherein Monitoring changes in the clipboard content through periodic polling includes the following steps: Obtain the current text content of the clipboard; Compare with the historical cache to determine content updates; Save the current interface scroll position and selection range; Execute differential content update rendering; Restore the browsing state and selection area.

5. The method for simulating input clipboard content in the KVM scenario according to claim 4, wherein, When using a shortcut key to trigger simulated keyboard input, use the pyautogui library to simulate keyboard input, trigger the input action through the F11 key, and the input process includes: releasing all keys, a short delay, pressing the backspace key to clear extra characters, and character-by-character input of the clipboard content; the text content is displayed in real time during the input process.

6. The method for simulating input clipboard content in the KVM scenario according to claim 5, wherein When adjusting the input speed through the slider on the interface, create a slider through the tkinter library to adjust the input speed, allowing users to adjust the input speed according to their needs. The input speed control is implemented through the slider, and users can dynamically adjust the input interval. The input speed range is from 0 seconds to 0.5 seconds / character.

7. The method for simulating the input clipboard content in the KVM scenario according to claim 6, wherein When the user dynamically adjusts the input interval, set the interval time t ∈ [0, 0.5] seconds; calculate the actual interval Δt = t + ε, where ε is the system calibration coefficient; dynamically adjust the value of ε according to the response delay of the target system.

8. The method for simulating input clipboard content in the KVM scenario according to claim 1, wherein, In the method for simulating input of clipboard content in the KVM scenario, after responding to the hotkey event to trigger the input process, perform preprocessing operations through backspace and key release. The preprocessing operations include: Traverse and release all hotkey states; Insert a 100 ms delay to ensure that the keys are fully released; Send a backspace key instruction to clear the residual content in the target input area; Delay for 50 ms a second time to wait for the cleaning to complete.

9. A system for simulating the content of the input clipboard in a KVM scenario, characterized in that, For executing the method for simulating input of clipboard content in the KVM scenario as described in any one of claims 1-5, the system includes: A clipboard monitoring module for capturing and verifying the system clipboard content in real time; A visualization interface module that uses a layered GUI architecture to achieve dynamic rendering of the input content; An input simulation engine based on a hotkey trigger mechanism that listens for keyboard events; A dynamic adjustment module for providing an interactive speed control slider; An exception handling module, including an input conflict avoidance and resource path compatibility unit.

10. The system for simulating the input clipboard content in the KVM scenario according to claim 9, wherein, The clipboard monitoring module adopts a double-buffer verification mechanism, including: A content comparison unit for comparing the current content of the clipboard with the historical cache; A scroll position recording unit for saving and restoring the browsing state of the text display area; A selection range maintaining unit for maintaining the text area selected by the user; The input simulation engine includes: A preprocessing unit that performs a backspace operation to clear the target input area; A key release unit that ensures the complete release of the hot key; A dynamic interval controller that converts the slider value into the interval parameter of typewrite().