Page 1 of 1

OnMessage example doesn't support negative x, y coordinates

Posted: 04 May 2024, 12:06
by iseahound
https://www.autohotkey.com/docs/v2/lib/OnMessage.htm#ExLButtonDown

Code: Select all

    X := lParam & 0xFFFF
    Y := lParam >> 16
skibidi fr

Re: OnMessage example doesn't support negative x, y coordinates

Posted: 04 May 2024, 14:36
by Ragnar
OnMessage example doesn't support negative x, y coordinates
Yes, because the example was added in 2005, when only one monitor was usually used and therefore negative coordinates were irrelevant. If you want this example to take this into account, you need to make a specific suggestion for improvement, as the example itself is not wrong.

Re: OnMessage example doesn't support negative x, y coordinates

Posted: 06 May 2024, 02:00
by just me

Code: Select all

    X := lParam << 48 >> 48
    Y := lParam << 32 >> 48