Closing Programs

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Havoc
Posts: 1
Joined: 16 Mar 2018, 18:39

Closing Programs

17 Mar 2018, 05:21

I want to bind f10 to open a separate ahk program and ^f10 to close that same program, but I can't get it to close. the program is called Hops.ahk. Idk if that makes a difference, i'm very new to ahk.
Rohwedder
Posts: 7647
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Closing Programs

17 Mar 2018, 06:39

Hallo,
try:

Code: Select all

^F10::Run Hops.ahk
F10::
	SetTitleMatchMode, 2
	DetectHiddenWindows, On
	WinClose, Hops.ahk ahk_class AutoHotkey
Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: DataLife, Google [Bot] and 118 guests