2013-04-13 211 views

回答

0

嘗試以下操作「過程,存在act.exe」,從http://www.autohotkey.com/board/topic/50026-if-process-not-running-run-it/

解除我只能說明這個,所以你怎麼看「的過程,存在act.exe」在另一個腳本中使用。

#persistent 
SetTitleMatchMode,2 
Loop 
{ 
    Process,Exist, act.exe ; Sets errorlevel to process PID 
    IfWinNotExist, % "ahk_pid " errorlevel ; Expression for ahk_pid 
     { ; Block to do something. 
     Run, C:\Documents and Settings\Pat\Desktop\act.exe 
     Break ; Stops loop if run or it will continue forever. 
     } 
} 
相關問題