#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. #SingleInstance, force run, C:\PurseCorrection\PurseCorrectionConsole.exe, C:\PurseCorrection Sleep, 2000 WinActivate, [ C:\PurseCorrection\PurseCorrectionConsole.exe] Sleep, 2000 Send !{1} Sleep, 2000 Send {Enter} Sleep, 2000 Send !{Y} Send {Enter}