Jump to content

set script priority level


aiter
 Share

Recommended Posts

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.

Link to comment
Share on other sites

  • Moderators

This works just fine for me on a compiled script:

#include <AutoItConstants.au3>

ProcessSetPriority(@ScriptName, $PROCESS_LOW)

While 1
    Sleep(10)
WEnd

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
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
 Share

×
×
  • Create New...