autohotkey: sometimes button is not clicked
问题 I wrote such autohotkey script to auto-logon my program: SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. Run info.exe WinWait, User identification, Sleep 300 ControlSend, Edit1, user, User identification ControlSend, Edit2, password, User identification ControlClick, Button1, User identification The problem is - sometimes Button1 is not clicked. When i'm execution script in most