Set text [iRacing] to 'iRacing Simulator.exe'Begin Text Compare : [{PROCESSEXISTS:iRacing}] Equals '1' Write [Green] 'GREEN' to log Run application 'C:\Program Files\Oculus\Support\oculus-diagnostics\OculusMirror.exe' - wait until it startsElse Write [Red] 'RED' to logEnd Condition
Set text [iRacing] to 'iRacingSim64DX11.exe'Set text [DiRT2] to 'dirtrally2.exe'Set text [Oculus] to 'Oculus Mirror.exe'Begin Condition : ([{PROCESSEXISTS:iRacing}] Equals '1' AND [{PROCESSEXISTS:Oculus}] Equals '0') OR ([{PROCESSEXISTS:DiRT2}] Equals '1' AND [{PROCESSEXISTS:Oculus}] Equals '0') OR ([{PROCESSEXISTS:iRacingUI}] Equals '0' AND [{PROCESSEXISTS:Oculus}] Equals '0') Write [Green] 'iRacing / Dirt2 / ATS / ETS2 & Miror are Running' to log Run application 'C:\Program Files\Oculus\Support\oculus-diagnostics\oculcusbatch.bat' - wait until it startsElse Begin Condition : [{PROCESSEXISTS:iRacing}] Equals '0' OR [{PROCESSEXISTS:DiRT2}] Equals '0' Write [Red] 'Listed programs NOT running' to log Write [Red] 'RED Oculus not needed' to log Execute command, 'kill oculus' (and wait until it completes) End ConditionEnd Condition - Exit when condition met
Set text [iRacing] to 'iRacingSim64DX11.exe'Set text [DiRT2] to 'dirtrally2.exe'Set text [Oculus] to 'Oculus Mirror.exe'Start Indefinite Loop Begin Condition : [{PROCESSEXISTS:iRacing}] Equals '1' OR [{PROCESSEXISTS:DiRT2}] Equals '1' Begin Text Compare : [{PROCESSEXISTS:Oculus}] Equals '0' Write [Green] 'iRacing / Dirt2 / ATS / ETS2 & Miror are Running' to log Run application 'C:\Program Files\Oculus\Support\oculus-diagnostics\oculcusbatch.bat' - wait until it starts End Condition Else Begin Text Compare : [{PROCESSEXISTS:Oculus}] Equals '1' Write [Red] 'Listed programs NOT running' to log Write [Red] 'RED Oculus not needed' to log Execute command, 'kill oculus' (and wait until it completes) End Condition End Condition Pause 5 secondsEnd Loop