I've a couple of scripts which sit running permanently in the tray (thanks Holger). When you shutdown or log off I want them to restore certain settings - is there any way to detect that Windows is shutting down or the user is logging off?
I was hoping OnAutoItExit() would help, but the following only seems to work when you choose 'Exit' from the tray.
while 1
sleep(1000)
WEnd
Func OnAutoItExit()
MsgBox(64, "Bye", "Going going ...")
EndFunc
I know this has been mentioned before, but I