Code: Select all
fullScriptPath = C:\Users\David\Dropbox\Scripts\AHK scripts\SomeText\Sometext.ahk
DetectHiddenWindows, On
WinClose, %fullScriptPath% ahk_class AutoHotkey
P.S. Using FK 4.29
Code: Select all
fullScriptPath = C:\Users\David\Dropbox\Scripts\AHK scripts\SomeText\Sometext.ahk
DetectHiddenWindows, On
WinClose, %fullScriptPath% ahk_class AutoHotkey
Code: Select all
WinClose, testfly.ahk
Thanks for the comment Marko! I've just tried this with a script on my end called 'Test.ahk', but unfortunately 'WinClose' didn't terminate it...Marko wrote: ↑Apr 19th, ’24, 20:35 Use WinClose by specifying the window title instead:
Code: Select all
WinClose, testfly.ahk
Still wondering about how I'm to actually do it in FK tbh.Marko wrote: ↑Apr 19th, ’24, 20:35 Use WinClose by specifying the window title instead:
Code: Select all
WinClose, testfly.ahk
Code: Select all
name:="test.ahk"
DetectHiddenWindows On
SetTitleMatchMode RegEx
IfWinExist, i)%Name%.* ahk_class AutoHotkey
{
WinClose
WinWaitClose, i)%Name%.* ahk_class AutoHotkey, , 2
}
Thanks for the input Marko! Unfortunately it didn't work still... Happy NY btw.Marko wrote: ↑Jan 6th, ’25, 18:00 How about this?Code: Select all
name:="test.ahk" DetectHiddenWindows On SetTitleMatchMode RegEx IfWinExist, i)%Name%.* ahk_class AutoHotkey { WinClose WinWaitClose, i)%Name%.* ahk_class AutoHotkey, , 2 }