Code: Select all
~lbutton::
CoordMode, Mouse, Window
MouseGetPos, mx, my, buttonHwnd
This *is* what the doc says: "Relative: Coordinates are relative to the active window."
Is there a way to ensure that Windows has handled the event BEFORE AutoHotkey gets it?
How can I get the X, Y, hwnd of the window which was CLICKED instead of the window which was ACTIVE?