;WinWaitActive intermittently fails to find the "Exit Session Setting" window. ;If the window is moved my the mouse, it will then work. ;can anyone help? ; this changes the tws logout time to be a minute earlier than the pc clock time Opt("TrayAutoPause", 0) Opt("MouseCoordMode", 0) Opt("WinTitleMatchMode", 2) #include <File.au3> $logfile = "c:\log\twslogin2" & @YEAR & @MON & @MDAY & ".txt" TraySetIcon("Shell32.dll", 180) _FileWriteLog($logfile, "Starting") ; Live mode While 1 ;If (((@HOUR = 3 And (@MIN > 15 Or @MIN < 31))) Or (@HOUR = 15 And (@MIN > 15 Or @M