2013-04-13 207 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. 
     } 
} 
相关问题