Please test and tell me how it works!
PostClick(hwnd, X, Y, Count=1, Delay=50) { ; By Infogulch p := y << 16 | (x & 0xffff) Loop, %Count% { PostMessage, 0x201, 1, p, , ahk_id %hwnd% If (Delay) Sleep Delay PostMessage, 0x202, 0, p, , ahk_id %hwnd% If (Delay) Sleep Delay } }
I've been using it myself for a game. I don't know what the difference is between this and ControlClick. I even had a glance in ahk's source, and they look like they do the same basic thing. But this works and ControlClick doesn't, so maybe you could tell me.