If an autoit script tries to do WinGetTitle, WinSetState, WinActivate, WinSetOnTop... on a suspended or hanged window the script will freeze until the target window (process or thread) un-freeze or disappear. A workaround, if you suspect a window to get sometimes hanged, is to do asynchronous calls or time-outed calls. Asynchronous/time-outed calls can fail if the target window is hanged, but your script won't be frozen. So you get a chance to take further action. It is noticeable that WinGetSta