Sign in to follow this  
Followers 0
FGR

Start up script

3 posts in this topic

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



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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

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

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
Sign in to follow this  
Followers 0