DragToPoint
Positions the pointer in the last RememberPoint position, and then holds the mouse button and moves the mouse to the current pointer position.
Syntax
DragToPoint [buttons]
Argument | Description | |
---|---|---|
buttons | A value indicating which button is to be pressed. To press multiple mouse buttons simultaneously, add the values for each button to be pressed. | |
1 (default) | left button (button 1) | |
2 | right button (button 2) | |
4 | third (middle) button |
Example
This instruction positions the mouse pointer in the last RememberPoint location, presses the right mouse button, and then drags the pointer to the current pointer position.
DragToPoint 2
Notes
- DragtoPoint will have no effect if the RememberPoint command has not been used earlier in the script.
- This command does not work if you hold down any modifier keys (SHIFT, CTRL, ALT) when you run it.
- The DragToPoint command works only in applications that support dragging.