OnExit and shutdown
Posted: 03 May 2019, 09:52
Hi!
In my script "some actions" are executed correctly on ExitApp (hotkey F9). I suppose this should work for every other exit reason too, shouldn't it?
In my case (where "some actions" are quite complex) this fails on shutdown (or if the script is terminated from TaskManager). Am I correct when I assume that this is exclusively due to the peculiarities of the "some actions"?
Or can OnExit be designed differently in order to achieve correct behavior even in case of shutdown?
In my script "some actions" are executed correctly on ExitApp (hotkey F9). I suppose this should work for every other exit reason too, shouldn't it?
In my case (where "some actions" are quite complex) this fails on shutdown (or if the script is terminated from TaskManager). Am I correct when I assume that this is exclusively due to the peculiarities of the "some actions"?
Or can OnExit be designed differently in order to achieve correct behavior even in case of shutdown?
Code: Select all
OnExit("IrregExit")
IrregExit() {
;;; ... Some actions ...
}
RETURN
F9::
ExitApp
Return