Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv
- #SingleInstance force
- SendMode Input
- SetWorkingDir %A_ScriptDir%
- refresh:=3000
- SetTimer, EXECheck, %refresh%
- EXECheck:
- if (PID:=ProcessExist("overwatch.exe")) && !ProcessExist("Lucio.exe")
- Run, Lucio.exe, C:\Users\jamhe\Documents\Macros\Overwatch
- else if !PID && ProcessExist("Lucio.exe")
- ProcessClose("Lucio.exe")
- if (PID:=ProcessExist("umvc3.exe")) && !ProcessExist("Cursor.exe")
- Run, Cursor.exe, C:\Users\jamhe\Documents\Macros\FGs
- else if !PID && ProcessExist("Cursor.exe")
- ProcessClose("Cursor.exe")
- return
- ;------Functions
- ProcessExist(Name:="") {
- Process, Exist, %Name%
- return Errorlevel
- }
- ProcessClose(Name) {
- Process, Close, %Name%
- return ErrorLevel
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement