Created
June 18, 2014 06:50
-
-
Save daffodilistic/0014ea413069fffaf880 to your computer and use it in GitHub Desktop.
Maya Mental Ray Satellite Watchdog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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