Changes the priority of a process.
ProcessSetPriority ( "process", priority )
Example()
Func Example()
; Run Notepad
Run ("notepad.exe")
; Wait 10 seconds for the Notepad window to appear.
Local $hWnd= WinWait ("[CLASS:Notepad]","",10)
; Set the priority of the Notepad process to "Idle/Low".
ProcessSetPriority ("notepad.exe",0)
; Wait for 2 seconds.
Sleep (2000)
; Close the Notepad window using the handle returned by WinWait.
WinClose ($hWnd)
EndFunc ;==>Example