Jump to content

Recommended Posts

Posted

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.

  • Moderators
Posted

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!

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
×
×
  • Create New...