Code: Select all
NumpadEnter::
For each, coord in [[900, 800], [831, 1056], [1455, 713]] {
move(coord.1, coord.2), DllCall("mouse_event", "UInt", LBDN := 2)
Sleep, 25 ; Milliseconds after button down
DllCall("mouse_event", "UInt", LBUP := 4)
Sleep, 25 ; Milliseconds after button up
}
Return
move(x, y) {
Static SysX := 65535 / A_ScreenWidth, SysY := 65535 / A_ScreenHeight
WinGetPos, winX, winY,,, A
DllCall("mouse_event", "UInt", ABSMOVE := 32769, "UInt", (x + winX) * SysX, "UInt", (y + winY) * SysY)
}