Sign in to follow this  
Followers 0
vickerps

Launching Script After Boot Up

6 posts in this topic

Hi guy

I have wrote a script that requires you to reboot i have used the runonce key in the registry to launch the script after the reboot however it seem to launch the app before windows has fully loaded I.e now taskbar and processor still doing lots of work which makes the app lose focus. Is there anyway to get the app to appear after XP has finished the loading process.

Share this post


Link to post
Share on other sites



It is a very asked feature... For now you cant.

I may try check the mouse pointer type and wait that is a "Arrow" for 4 seconds or so...

Share this post


Link to post
Share on other sites

Depending on what you are trying to do, you might be able to get around the loss of focus by careful coding. :D

Example: Instead of assuming / relying on having focus for the Send command, try the Control*** commands (ControlSend; ControlSetText; etc) which don't require focus.

HTH

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

What if you make a link with 'FileCreateShortcut' to your compiled script (I think) in the @StartupCommonDir ?

This will only start if the explorer is loaded you know...

Maybe you can write every step to an ini-file so you're script knows everytime what the next step is...

Edited by Holger

Share this post


Link to post
Share on other sites

Hi guy

I have wrote a script that requires you to reboot i have used the runonce key in the registry to launch the script after the reboot however it seem to launch the app before windows has fully loaded I.e now taskbar and processor still doing lots of work which makes the app lose focus. Is there anyway to get the app to appear after XP has finished the loading process.

I remember Larry saying that the Run key runs after windows is up, and it's tested out that way for me.

"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

Thanks that works great all i have to do is send a inidelete after the event to stop run on the next reboot.

Lets hope Bill sort out the runonce option (Hunk of Junk) :D

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