Close another AHK script with button Topic is solved
Close another AHK script with button
is there any way to close ANOTHER ahk script using button?
Re: Close another AHK script with button
I don't understand how to do this, because I am bad at ahk , I got ready GUI with working buttons, but I need to close opened ahk script located in the same folder as gui
ahk name I need to close "FHome.ahk"
ahk name I need to close "FHome.ahk"
Code: Select all
SHOME:
DetectHiddenWindows, On
WinGet, AHKList, List, ahk_class AutoHotkey
Loop, %AHKList%
{
ID := AHKList%A_Index%
If (ID <> A_ScriptHwnd)
WinClose, ahk_id %ID%
}
Return
Re: Close another AHK script with button Topic is solved
That can be reduced to just this:
Code: Select all
DetectHiddenWindows, On
WinClose, % A_ScriptDir "\FHome.ahk"