CursorClass.
Returns the screen position of the pointer. Therefore you should use the results of Cursor.GetPosition() as arguments to MoveMouse() or Click() only for Desktop, not for individual windows.
point = Cursor.GetPosition()
| Variable | Description |
|---|---|
| point | The current mouse pointer position. POINT. |
GetPosition returns a record of type POINT, which has two fields:
| Field | Description |
|---|---|
| x | The x-coordinate. INTEGER. |
| y | The y- coordinate. INTEGER. |
The position returned is relative to the entire screen.
POINT pCursor pCursor = Cursor.GetPosition()