Jump to content

How can i send a special instructione every 15 min?


Recommended Posts

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)
Link to comment
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]

Link to comment
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
Link to comment
Share on other sites

  • Moderators

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.

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.

Link to comment
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]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...