#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. ^j:: SetKeyDelay, 40 Loop, 200 { oldlength := 0 Loop, 4 { Send {Shift down}{Down}{Shift up} Sleep 200 Send ^C Sleep 100 length := StrLen(Clipboard) if (length < 5) continue if (oldlength + 1 == length) break oldlength := length Sleep 200 } Sleep 200 Send {Alt down}{Tab}{Alt up} Sleep 200 Click 555, 458 Sleep 500 Click 64, 140 Sleep 2000 Click 519, 510 Sleep 200 Click 519, 510 Sleep 400 Send {Alt down}{Tab}{Alt up} Sleep 200 Send {Enter} Sleep 200 Send {Alt down}{Tab}{Alt up} Sleep 200 Send {Right} Sleep 200 }