#author("2018-11-03T20:25:17+09:00","default:ryuichi","ryuichi")
#author("2018-11-03T20:25:55+09:00","default:ryuichi","ryuichi")
* 起動中のAHKスクリプトのプロセスを探す [#x1ee6f73]
#sh(vb){{
DetectHiddenWindows, ON
WinGet, id, list, ahk_class AutoHotkey
Loop, %id%
{
this_ID := id%A_Index%
WinGetTitle, title, ahk_id %this_ID%
script_path := RegExReplace(title, " - AutoHotkey v" A_AhkVersion )
; Skip myself
If InStr(script_path, A_ScriptFullPath)
continue
WinClose, %script_path% ahk_class AutoHotkey
}
}}
** 参考 [#h439c4da]
https://superuser.com/questions/1329713/how-to-close-all-running-scripts-and-restart-them-later