Jump to content
Sign in to follow this  
Systems By

Auto run script

Recommended Posts

Systems By

Hi everyone. I have a quick question. I have a script that runs when a user first starts up their computer. I want to be able to set a timer to run the script again after a defined amount of time just in case the user does not shut down his/hr computer. What would be the easiest way to do this?

Share this post


Link to post
Share on other sites
Systems By

Thanks for the tip. It worked. My only issue now is that my application uses 100% of the CPU while the timer is ticking away. Is there something I can do to keep this from happening?

Share this post


Link to post
Share on other sites
herewasplato

...my application uses 100% of the CPU...

Post your code that causes this - 'cuz the code that Valuater posted should not do that.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
Systems By

Post your code that causes this - 'cuz the code that Valuater posted should not do that.

I just figured it out :P I commented out the sleep after the tooltip. Thanks!

Share this post


Link to post
Share on other sites
herewasplato

I just figured it out :P I commented out the sleep after the tooltip. Thanks!

The CPU needs its sleep - just like I do... :-)

[size="1"][font="Arial"].[u].[/u][/font][/size]

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  

×