Jump to content
Sign in to follow this  
K3vin

How to launch a clic @ a precise time?

Recommended Posts

Hello,

I'm gonna make a script that I'll launch when I go to bed; and @ 7AM (i'll go sleep @ 5AM)a clic on an application will be done, so that the application will load when I'm sleeping.

But I got one question : how can I set a precise hour to that script?

For now, I got that

; Double click at the current mouse pos
MouseClick("left")
MouseClick("left")
MouseClick("left")
MouseClick("left")

;launch azureus
MouseClick("left", 645, 456, 2)

What and where should I add a line?

Thanks :( :(

Share this post


Link to post
Share on other sites

AutoIt can watch for a certain time and then run some code, but if your operation system has a task scheduler (like XP's "Scheduled Tasks"), then why reinvent the wheel? Schedule the task to launch your script at the time you want.


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

Share this post


Link to post
Share on other sites

Lol, you are right, I totally forgot that there was a scheduler on XP lol!

Thanks for reminding me that!

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...