起動中のAHKスクリプトのプロセスを探す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 } 参考https://superuser.com/questions/1329713/how-to-close-all-running-scripts-and-restart-them-later |
|