Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
rockbenben authored Sep 23, 2020
1 parent 998a877 commit 4fd328c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions WeaselServerAutostart.ahk
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

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

0 comments on commit 4fd328c

Please # to comment.