FGR 0 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 Share this post Link to post Share on other sites
JLogan3o13 1,637 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! Share this post Link to post Share on other sites
FGR 0 Posted June 7, 2011 Thanks, i'm trying. Any idea not to lose focus while other programs load up? FGR. Share this post Link to post Share on other sites