Jump to content

Start up script


Recommended Posts

Hello!

I have to run a script when Windows starts. The problem is they do not control the time all processes takes to load , and it seems that it sometimes loses focus, so the WinWait gets stuck and makes the end user can touch things. Is there any way I can run without losing the focus, as a high priority process or something to be sure it executes immediately?

Thank you very much

FGR

Link to comment
Share on other sites

  • Moderators

Not sure if this is exactly what you're looking for, but you can definitely set the priority on the process. You would add in something similar to this:

ProcessSetPriority("MyScript.exe", 4)

Priorities run from 0 (Idle/Low) to 5 (Real-Time), but I would not suggest going above 4.

"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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...