I use this mainly for login scripts where I am installing a program and using autoit to help automate the process. This waits for the desktop to appear after login process before running the install. Just place this code in the beginning of the script or edit it to your needs.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ;-------------------------------------------------------------------------------------- ; Wait for login to finsh $hwnd = WinGetHandle('Program Manager') ; Case sensitive $error = @error Do $hwnd = WinGetHandle('Program Manager') SplashTextOn('', "Waiting",120 , 75) ; can be removed Sleep(50) SplashOff() Until $hwnd <> "" < YOU CODE> ;---------------------------------------------------------------------------------------- |


Posted in
Tags: