For example:
Code: Select all
Class StartupClass {
__New() {
OnExit() ; What goes in here?
}
}
Class ExitClass {
OnExitFunction() {
MsgBox, Closing down!
}
}
Code: Select all
Class StartupClass {
__New() {
OnExit() ; What goes in here?
}
}
Class ExitClass {
OnExitFunction() {
MsgBox, Closing down!
}
}
AHK Docs wrote:Code: Select all
; Register an object to be called on exit: OnExit(ObjBindMethod(MyObject, "Exiting")) class MyObject { Exiting() { MsgBox, MyObject is cleaning up prior to exiting... /* this.SayGoodbye() this.CloseNetworkConnections() */ } }
Users browsing this forum: jollyjoe and 352 guests