OnExit not triggered when script contains #InstallKeybdHook
Posted: 03 Aug 2017, 13:44
In the following, the OnExit routine is not triggered by the EXIT command:
However, remove the #InstallKeybdHook directive and it works just fine. I can find no documentation about #InstallKeybdHook or OnExit being related.
thank you
Joe Petree
Code: Select all
#InstallKeybdHook
OnExit, ExitRoutine
exit
ExitRoutine:
msgbox exiting test....
exitapp
thank you
Joe Petree