Code: Select all
else If A_ThisMenuItem=Settlements
{
setkeydelay 2
Loop, 10
{
WinActivate Settlements - Excel ahk_class XLMAIN
Send {f2}
Send {shift down}{home}{Shift up}
Send ^c
Sleep 25
Send {Enter}
Sleep 1000
Winactivate, Program-Production ahk_class FNWND3170
Click 721 194 ;; Reprint One Settlement
Send {shift down}{left 10}{shift up}
Send {delete}
Sleep 500
Send ^v
Sleep 1000
Click 144 71 ;; Run
Sleep 3000
Winactivate Save Print Output As ahk_class #32770
Sleep 100
Send ^v
Send {Enter}
}
Return
}