Mouse Action
Table of contents
Description
A mouse action simulates some kind of mouse event by a user. Generally speaking, this includes clicking the mouse, moving the mouse cursor, and scrolling the wheel of the mouse.
Parameters
Step Subtype
The specific operation to be performed. It can be one of the following values.
Button
The button to be clicked. It can be one of the following values.
| Value | Meaning |
|---|---|
| Left | Clicks the left mouse button. |
| Right | Clicks the right mouse button. |
| Middle | Clicks the middle mouse button (the scroll wheel). |
Click Type
The type of mouse click. It can be one of the following values.
| Value | Meaning |
|---|---|
| Normal | Presses and releases the mouse button. |
| Hold | Presses the mouse button without releasing after. |
| Release | Releases the mouse button without pressing before. |
Click Delay
The amount of time, in milliseconds, to wait between each individual operation in the step. Note that this also includes the holding and releasing of the modifier keys, if any are selected.
Click Count
For a normal click, specifies the number of clicks to perform. For the Wheel Up and Wheel Down subtypes, this also specifies the number of wheel scrolls to perform.
Ctrl?/Alt?/Shift?
If checked, each modifier will be held at the start of the step and released at the end of the step.
Relative Movement Type
For the Relative Move and Relative Move and Click subtypes, specifies the type of relative movement that will be performed. Note that positive movement in the X direction is to the right, and positive movement in the Y direction is down. It can be one of the following values.
Relative Object Name
For the Relative Move and Relative Move and Click subtypes, specifies the control or window to move relative to.
X/Y
For movement-based subtypes, specifies the amount of pixels or percentage to move or move relative to.
Remarks
When the Enter Step window is in a Mouse-Action context, the window is constantly listening for a macro hotkey press. When the hotkey press is detected, the values of X and Y will automatically populate with the current screen coordinates.
If the Step Subtype is set to Relative Move or Relative Move and Click, the algorithm will use the current values of Relative Movement Type and Relative Object Name to work backwards from absolute coordinates to determine what X and Y are in that specific context.