起動中の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


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2018-11-03 (土) 20:25:55