FGR Posted June 7, 2011 Share Posted June 7, 2011 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 More sharing options...
Moderators JLogan3o13 Posted June 7, 2011 Moderators Share Posted June 7, 2011 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 More sharing options...
FGR Posted June 7, 2011 Author Share Posted June 7, 2011 Thanks, i'm trying. Any idea not to lose focus while other programs load up? FGR. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now