Mouse Activity Emulation
Moves the mouse pointer to screen position "x,y"; values of x and y are in pixels, "0,0" being the upper-left corner of the active window.
You can use WinSpy utility to find out the current absolute coordinates of the mouse pointer.
Examples:
\ moving mouse pointer to screen position "400, 400" MOUSE-MOVE: 400 400 \ moving mouse pointer to the upper left corner of the screen MOUSE-MOVE: 0 0
Moves the mouse pointer to a specified position relative to the current mouse position.
Arguments of word MOUSE-MOVER: can take both positive and negative values:
You can use WinSpy utility to find out the current absolute coordinates of the mouse pointer.
Examples:
\ moving the mouse pointer 100 pixels to the right \ and 100 pixels down MOUSE-MOVER: 100 100 \ moving the mouse pointer 250 pixels to the right \ and 100 pixels up MOUSE-MOVER: 250 -100 \ moving the mouse pointer 250 pixels to the right MOUSE-MOVER: 250 0
Moves the mouse pointer to the position "x,y" the in currently active window relative to the upper left corner of this window.
Example:
\ moving the mouse pointer to the upper left corner of active window MOUSE-MOVEW: 0 0 \ moving the mouse pointer to the position 100 pixels to the right \ and 100 pixels down from the upper left corner of active window MOUSE-MOVEW: 100 100
MOUSE-LBDN
MOUSE-LBUP
MOUSE-LBCLK
MOUSE-LBDCLK
These key words emulate, respectively, the following actions of left mouse button: pressing the button, releasing the button, left click, and left doubleclick.
Examples:
\ moving the mouse pointer to a required position \ and double-clicking with the left button MOUSE-MOVE: 600 500 MOUSE-LBDCLK \ pressing the left button, waiting for 4 seconds \ and releasing the button MOUSE-LBDN PAUSE: 4000 MOUSE-LBUP
This is a postfix word which puts on stack two numbers which are the current coordinates of the mouse pointer.
Example:
\ printing to console coordinates \ of the mouse pointer (for instance: 404 657): MOUSE-POS . . CR
MOUSE-RBDN
MOUSE-RBUP
MOUSE-RBCLK
MOUSE-RBDCLK
These key words emulate various actions of right mouse button. They work similarly to the corresponding words for the left button.
See also: