Retrieves the current position of the mouse cursor.
A Point object containing the x and y coordinates of the mouse cursor.
import { MouseGetPosSync } from '@ahmic/autoit-js';const position = MouseGetPosSync();console.log(position); // Output: { x: 100, y: 200 } Copy
import { MouseGetPosSync } from '@ahmic/autoit-js';const position = MouseGetPosSync();console.log(position); // Output: { x: 100, y: 200 }
https://www.autoitscript.com/autoit3/docs/functions/MouseGetPos.htm
Retrieves the current position of the mouse cursor.