Sign in to follow this  
Followers 0
Arez

How can i send a special instructione every 15 min?

6 posts in this topic

how would I stop all other operations and just have this go every 15 min?

Send("{F10}")
Sleep(2000)
MouseClick("left", 308, 253, 2, 2.5)
Sleep(2500)
MouseClick("left", 313, 153, 2, 2.5)
Sleep(2500)
MouseClick("left", 321, 148, 2, 2.5)
Sleep(5500)
MouseClick("left", 551, 446, 2, 2.5)

Share this post


Link to post
Share on other sites



Put while 1 at the beginning and sleep(15000) at the end....


[quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote]

Share this post


Link to post
Share on other sites

how would I stop all other operations and just have this go every 15 min?

AdlibEnable("_Clicky" , 15 * 60 * 1000); 15min in msec

While 1
     Sleep(100)
Wend

Func _Clicky()
     Send("{F10}")
     Sleep(2000)
     MouseClick("left", 308, 253, 2, 2.5)
     Sleep(2500)
     MouseClick("left", 313, 153, 2, 2.5)
     Sleep(2500)
     MouseClick("left", 321, 148, 2, 2.5)
     Sleep(5500)
     MouseClick("left", 551, 446, 2, 2.5)
EndFunc

:whistle:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

now im getting if statement has no matching endif statement, how do I change that in your code?

Share this post


Link to post
Share on other sites

now im getting if statement has no matching endif statement, how do I change that in your code?

Then your not just using his code.... His has no If statement. Look at the line it gives you it on and work your way up.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Ooh, sorry, read through quick and thought it said 15 secconds>.<


[quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote]

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