Sign in to follow this  
Followers 0
aiter

set script priority level

3 posts in this topic

I want to set the priority level of my compiled script to very low.

Is their a way to do it in the script itself?

I had a look at ProcessSetPriority and that works for other processes my program will call, but I am stymied as to how to set it in the script itself.

Share this post


Link to post
Share on other sites



This works just fine for me on a compiled script:

#include <AutoItConstants.au3>

ProcessSetPriority(@ScriptName, $PROCESS_LOW)

While 1
    Sleep(10)
WEnd

 

1 person likes this

When you're dead, you don't know you're dead - it's only difficult for those that know you. It's the same way when you're stupid...

My Scripts: SCCM UDFInclude Source with Compiled Script, Windows Firewall UDF

Share this post


Link to post
Share on other sites

Awesome - thanks a lot :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Similar Content

    • Rfsvieira
      Function priority by timer
      By Rfsvieira
      Hello, i havê been reading, and thinking.. Im on my tablet só i WLL try explain what im trying to do....
      Will havê an GUI with 8 timer input that havê to set timer, but wen our if 2 our more ends at some time it havê to run 1, then outher , then outher
      Timer 1, - input 5 minutes, timer 2 - input 10, timer 3 input 15, timer 4 - input 8,......
      At some time,  timer 1 will end ate some time of timer 2 / then it at some time will end at some time timer 2 and 3 
      How i said that wen it happpens first is 2 then 1, then outhers and if 1 is done then 1st is 3, will have more than 9 input boxes that can happen it end at some time, imagine if wen timer 1= 0 function1(), then after end funciona start countdown again, if timer 2 = 0 run function2(), then after end function2 start contdoen again, if both =0 at some time first run 1 then 2, and if wen ends 1, 2,3,4 are =0 :-( :-( :-(  im lost
      This work…???
       
      thank you!
       
      Thanks for time, any ideas??? 
       
    • ImOracle
      Process Priority
      By ImOracle
      Hi,
      I made a Tool that can set the Priority of Processes cause im sick of slow games.
      Thats it.
      v1.1 may include Icons next to the ListViewItems if i can figure out how that works and also a List in which you can enter Processes and the Priority level on which they should be so that if that process starts, its automatically set to that priority.
      And somewhen in the far future a gdiplus gui... i dont know
      This script also uses Melba23's ExtMsgBox.au3 and StringSize.au3, so i should give him credit for that i guess:

       
      Process Priority v1.0.au3