I have script Like This : Opt("TrayAutoPause",0) $var = Ping("www.google.com") If not @error Then WinActivate ( "testapp") ControlClick ( "testapp", "", "[Savetest]") ControlSend ( " :: Gujarat TPDS  - eFPS :: Version - 2.2.0.0  - [eFPS Bill]", "", "[NAME:btnSavebyFP]", "{enter}") WinWait(":: Aadhar/EID/Verification Number Entry ::") ControlClick(":: Aadhar/EID/Verification Number Entry ::", "", "[NAME:btnNext]") If WinExists ("Aadhar : Length Check") Then    ControlCli