Unlock instant, AI-driven research and patent intelligence for your innovation.

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.

Active Publication Date: 2020-09-11
北京博睿宏远数据科技股份有限公司
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Some current software functions that simulate user operations generally need to be operated in the foreground window, affecting other operations of the user
More importantly, the current software that simulates user operations will snatch the focus of the current user operation window when playing scripts, affecting the normal input operations of users

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method, device, equipment and storage medium for simulating user operations
  • A method, device, equipment and storage medium for simulating user operations
  • A method, device, equipment and storage medium for simulating user operations

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a method and device for simulating user operation, equipment and a storage medium, and the method comprises the steps: obtaining a hidden play instruction fora preset script, and playing the preset script in a hidden mode through a recorder, wherein the preset script comprises an input action of preset input equipment; modifying library function implementation related to window focus change logic in a system library through a hook technology, and preventing preemption of a recorder window to a focus; sending a message of an input action event in the preset script to a sub-window in the recorder window by adopting a preset message mechanism, wherein the preset message mechanism is different from a message mechanism of an operating system; and analyzing the action type of the input action of the preset input equipment, and calling a system API to simulate user operation. According to the technical scheme of the embodiment of the invention, the focus of the current operation window of the user is not preempted in the operation process of simulating the user.

Description

technical field [0001] Embodiments of the present invention relate to automated testing technologies, and in particular to a method, device, equipment and storage medium for simulating user operations. Background technique [0002] The method of simulating the operation of a real user is mainly to implement some repetitive operations of the user through an application programming interface (Application Programming Interface, API) provided by the system. [0003] Some current software functions that simulate user operations generally need to be operated in the foreground window, affecting other operations of the user. More importantly, the current software that simulates user operations will snatch the focus of the current user's operation window when playing the script, affecting the normal input operation of the user. Contents of the invention [0004] Embodiments of the present invention provide a method, device, device, and storage medium for simulating user operations...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/34
CPCG06F11/3457
Inventor 程捷刘涛赵栋叶泽彬
Owner 北京博睿宏远数据科技股份有限公司