Skip to content

Instantly share code, notes, and snippets.

@daffodilistic
Created June 18, 2014 06:50
Show Gist options
  • Save daffodilistic/0014ea413069fffaf880 to your computer and use it in GitHub Desktop.
Save daffodilistic/0014ea413069fffaf880 to your computer and use it in GitHub Desktop.
Maya Mental Ray Satellite Watchdog
; NOTE - run this in SYSTEM account! Use Task Scheduler or System Service!
RaySatWatchdog()
Func RaySatWatchdog()
While 1 ; Opens up a WHILE loop, with 1 as a constant, so it is infinite
Local $aProcessList = ProcessList("raysat2014.exe")
For $i = 1 To $aProcessList[0][0]
ProcessSetPriority ( $aProcessList[$i][1] , 0 )
Next
Sleep (60000) ; Puts the script to sleep for 60 Seconds so it doesn't chew CPU power
WEnd
EndFunc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment