A method, device, equipment and storage medium for simulating user operations
A technology that simulates users and input devices. It is used in instruments, error detection/correction, and calculations. It can solve problems that affect other operations of users and affect users' normal input operations.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] figure 1 It is a flow chart of a method for simulating user operations provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of simulating actual user operations on application programs. The method can be executed by a device for simulating user operations. The device It can be implemented by hardware and / or software, and is generally integrated into computer equipment, specifically including the following steps:
[0028] Step 110, obtaining a hidden playback instruction for the preset script, and playing the preset script in a hidden manner through the recorder;
[0029] Wherein, the preset script includes an input action of a preset input device. Optionally, the input action of a preset input device includes: an input action of a mouse and / or a keyboard. The preset script is pre-recorded, and when the user uses the preset input device to perform an input action, a corresponding input action event is captured.
[0030] Step...
Embodiment 2
[0037] figure 2 It is a flow chart of a method for simulating user operations provided by Embodiment 2 of the present invention. This embodiment is further refined on the basis of the above technical solution, specifically including:
[0038] Step 210, according to the window embedding operation, the window to be operated by the user is embedded in the recorder window as a sub-window;
[0039] Wherein, the embedding process of embedding the window to be operated by the user into the recorder window is basically consistent with the embedding of the Windows window, and accepts the message issued by the Windows system. The window that requires user operation is embedded in the recorder as a sub-window. After obtaining the handle of the sub-window, some messages such as mouse clicks or keyboard input can be sent to the sub-window, which is convenient for simulating user operations in the hidden recorder window mode.
[0040] Step 220, obtain the input action of the preset input ...
Embodiment 3
[0049] image 3 A schematic structural diagram of a device for simulating user operations provided by Embodiment 3 of the present invention. The device for simulating user operations specifically includes:
[0050] The preset script playing module 310 is used to obtain hidden playback instructions for the preset script, and play the preset script in a hidden manner through the recorder; wherein, the preset script includes the input action of the preset input device;
[0051] The focus preemption prevention module 320 is used to modify the library function implementation related to the window focus change logic in the system library through the hook technology to prevent the preemption of the recorder window focus point;
[0052] The input action event sending module 330 is used to send the message of the input action event in the preset script to the sub-window in the recorder window by using a preset message mechanism; wherein, the preset message mechanism is different from the...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


