Move-Cursor
Command Description
Move the mouse to the specified coordinate position
Command Prototype
Mouse.Move(x, y, bStep,optionArgs)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
x | True | number | 0 | Move the mouse to the X-coordinate of the specified location, with the top corner of the screen as starting point (0,0) |
y | True | number | 0 | Move the mouse to the Y-coordinate of the specified location, with the top corner of the screen as starting point (0, 0) |
bStep | True | boolean | None | Whether to move the coordinates according to the current position of the mouse; default is false |
iDelayAfter | None | number | 300 | Delay time (in milliseconds) after executing the activity is 300 milliseconds |
iDelayBefore | None | number | 200 | The delay time (in milliseconds) before any operations are executed is by default 200 milliseconds |
Demo
TracePrint "--------------------Simulate Move--------------------"
// --------------------------------------------------------
// [Remarks] Simulate movement
// Input parameter 1:
// x--abscissa
// Input parameter 2:
// y--ordinate
// Input parameter 3:
// bStep--relative move
// Input parameter 4:
// optionArgs--Optional parameters (including: delay after execution/delay before execution).Type:Dict
// Command prototype: Mouse.Move(x, y, bStep,optionArgs)
// --------------------------------------------------------
Mouse.Move(1000, 500, false,{"iDelayAfter": 300, "iDelayBefore": 200})