Exit app

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jrachr
Posts: 545
Joined: 01 Mar 2021, 17:33

Exit app

03 May 2024, 07:45

Good Day. All the docs say when I press esc that Calc should close but it is not. Can anyone tell me why so I can fix this code. Tk's

Code: Select all

#NoEnv 
#Persistent 
#SingleInstance, Force
#NoTrayIcon




Run, "D:\Window's Shortcut's\Calculator - Shortcut.lnk"
Sleep 1000
SendInput, ^1
Sleep 1000
Winset, Alwaysontop, , A

Esc::ExitApp

Return
User avatar
mikeyww
Posts: 27161
Joined: 09 Sep 2014, 18:38

Re: Exit app

03 May 2024, 08:18

Which docs? Where are they?

I would have a look at the AHK documentation. ExitApp closes your AHK script.

To close a window, you can use WinClose.

Code: Select all

#Requires AutoHotkey v1.1.33.11
F2::Run calc
F3::WinClose Calculator
jrachr
Posts: 545
Joined: 01 Mar 2021, 17:33

Re: Exit app

03 May 2024, 09:06

By docs I was referring to the documentation. Sorry my bad. Tk's for quick fix. Cheer's

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: OrangeCat, sn1perwild and 106 guests