Skip to content

Commit

Permalink
Update WeaselServerAutostart.ahk
Browse files Browse the repository at this point in the history
  • Loading branch information
rockbenben authored Sep 28, 2020
1 parent 1722ead commit a28aa67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WeaselServerAutostart.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

; 开机 5 秒后启动程序
Sleep, 5000
; 开机 20 秒后启动脚本
Sleep, 20000
; 监测应用是否有运行
Process, Exist, WeaselServer.exe
NewPID := ErrorLevel ; 由于 ErrorLevel 会经常发生改变, 所以要立即保存这个值.
if not NewPID
{
Run %A_WorkingDir%\WeaselServer.exe
}
return
return

0 comments on commit a28aa67

Please # to comment.