Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv
  2. #SingleInstance force
  3. SendMode Input
  4. SetWorkingDir %A_ScriptDir%
  5. refresh:=3000
  6. SetTimer, EXECheck, %refresh%
  7.  
  8. EXECheck:
  9.     if (PID:=ProcessExist("overwatch.exe")) && !ProcessExist("Lucio.exe")
  10.         Run, Lucio.exe, C:\Users\jamhe\Documents\Macros\Overwatch
  11.     else if !PID && ProcessExist("Lucio.exe")
  12.         ProcessClose("Lucio.exe")
  13.  
  14.     if (PID:=ProcessExist("umvc3.exe")) && !ProcessExist("Cursor.exe")
  15.         Run, Cursor.exe, C:\Users\jamhe\Documents\Macros\FGs
  16.     else if !PID && ProcessExist("Cursor.exe")
  17.         ProcessClose("Cursor.exe")
  18.  
  19. return
  20. ;------Functions
  21. ProcessExist(Name:="") {
  22.     Process, Exist, %Name%
  23.     return Errorlevel
  24. }
  25. ProcessClose(Name) {
  26.     Process, Close, %Name%
  27.     return ErrorLevel
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement