Code: Select all
OnExit("ExitFunc")
MsgBox("Press ESC")
ESC::ExitApp
ExitFunc()
{
MsgBox("press OK to exit")
}
There is certainly not too many, but maybe too few..
docs:
https://lexikos.github.io/v2/docs/commands/OnExit.htm wrote: The function can optionally define parameters as shown below.
...
If an OnExit function declares parameters, its first parameter is one of the following words: