Skip to content

Instantly share code, notes, and snippets.

@AllanChain
Created December 12, 2020 02:01
Show Gist options
  • Save AllanChain/072d24d130e36b1a9d9bdf962653d69b to your computer and use it in GitHub Desktop.
Save AllanChain/072d24d130e36b1a9d9bdf962653d69b to your computer and use it in GitHub Desktop.
CoordMode, Mouse, Screen
WinActivate, FRD-AL10
WinGetPos, X, Y, Width, Height, FRD-AL10
if ErrorLevel
MsgBox, Error
ButtonX := X + (Width / 2)
ButtonY := Y + (Height * 5 / 6)
MouseMove, ButtonX, ButtonY
; MsgBox %X%, %Y%, %Width%, %Height%, %ButtonX%, %ButtonY%
Loop, 100
{
Sleep, 1000 ; Wait Window First
Click
}
Esc::ExitApp ; Exit script with Escape key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment