The MousePointerPosition function determines the position of the mouse pointer in twips, starting from the upper left corner of the desktop.
Syntax | ||||||
MousePointerPosition(x, y) | ||||||
Return value | ||||||
Type |
Description |
| ||||
Long |
0 if successfully executed |
| ||||
Parameter | ||||||
Use |
Name |
Type |
Passing |
Description | ||
Required |
X |
Double |
ByRef |
x-position of the mouse pointer in twips. | ||
Required |
Y |
Double |
ByRef |
y-position of the mouse pointer in twips. | ||