Reload with some previous actions Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
newbieforever
Posts: 493
Joined: 24 Aug 2016, 03:34

Reload with some previous actions

02 Mar 2019, 08:56

Hi!

How to achieve that some actions are done (e.g. deleting a file) every time the script is exited by Reload (Reload command or Reload from tray menu) (and maybe other actions are done if the script is exited by other reasons)?
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Reload with some previous actions  Topic is solved

02 Mar 2019, 09:12

https://www.autohotkey.com/docs/commands/OnExit.htm#ExitReason

Code: Select all

onexit("exitfunc")

exitfunc(reason, code) {
  if (reason == "Reload")
  	; something
}
or

Code: Select all

exitfunc() {
  if (a_exitreason == "Reload")
  	; something
}
newbieforever
Posts: 493
Joined: 24 Aug 2016, 03:34

Re: Reload with some previous actions

04 Mar 2019, 04:44

You are a schatz, swagfag!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 167 guests