In AutoIt, I always find that the system logs out by checking the active window handle, if the system is registered in the active window handle, it returns 0x0000000. In AutoIt, it would look like ...
If WinGetHandle("") == 0x00000000 Then MsgBox(0,"","We are logged out!")
Hope this helps ...
Copas
source share