If omitted, the corresponding value will not be stored. MouseGetPos, OutputVarX, OutputVarY, OutputVarWin, OutputVarControl, Flag Parameters OutputVarX, OutputVarY Retrieves the current position of the mouse cursor, and optionally which window and control it is hovering over. MouseGetPos - Syntax & Usage | AutoHotkey v1 MouseGetPos