Exit

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Shekhar Singh
Posts: 115
Joined: 06 Dec 2022, 02:35

Exit

Post by Shekhar Singh » 02 Feb 2023, 06:40

hi , i have a question out of curiosity .
LButton and RButton are necessary to close a script . Assuming we have remapped the keys than how will it be possible to exit the script .

teadrinker
Posts: 4309
Joined: 29 Mar 2015, 09:41
Contact:

Re: Exit

Post by teadrinker » 02 Feb 2023, 07:31

You can add the hotkey Esc:: ExitApp

User avatar
DuckingQuack
Posts: 219
Joined: 20 Jan 2023, 18:20

Re: Exit

Post by DuckingQuack » 02 Feb 2023, 07:42

Teadrinker’s solution is the best one and I use it in nearly every script I write. I just want to add that any condition you set that has a result of ExitApp will close the script, be it a hotkey or an if/else, etc…
Best of Luck,
The Duck

Post Reply

Return to “Ask for Help (v1)”