看板 EzHotKey 關於我們 聯絡資訊
請問大家 由於想要在A.ahk執行時再自動執行B.ahk(使用#persistent來做一直循環) 所以在A.ahk裡面多加了一行啟動Run C:\Users\....來啟動B.ahk 但是也想要A.ahk的部分跑完後自動關閉A.ahk也順便關閉B.ahk 不曉得這樣做可不可以呢? 感謝各位^^" -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.135.213.134
Lumania:關閉自己是用exitapp 01/19 09:45
Lumania:關閉別人的話,在run 時要取得對方的processID 01/19 09:48
Lumania:有對方的processID 就可以用process去關掉對方 01/19 09:49
ScorAlan:謝謝L大 01/19 14:58
想再請問 剛剛我有試了一下Notepad.exe以及其他的小程式可以正常取回ProcessID 但在A.ahk上面 Run, C:\Users\....\B.ahk, , , PID . . . . . . . process, close, PID 沒辦法取回PID 導致process指令沒辦法關閉B.ahk 不知道這該怎麼解決呢?^^" ※ 編輯: ScorAlan 來自: 114.43.4.121 (01/19 15:56)
Lumania:run, ...\autohotkey.exe ..\b.ahk, , , PID 試試 01/19 16:56
ScorAlan:感謝L大 成功取得到PID了^_^ 01/19 17:52