Arez Posted July 29, 2006 Share Posted July 29, 2006 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 More sharing options...
Vivvic Posted July 29, 2006 Share Posted July 29, 2006 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 More sharing options...
PsaltyDS Posted July 29, 2006 Share Posted July 29, 2006 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 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 More sharing options...
Arez Posted July 29, 2006 Author Share Posted July 29, 2006 now im getting if statement has no matching endif statement, how do I change that in your code? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 29, 2006 Moderators Share Posted July 29, 2006 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 More sharing options...
Vivvic Posted July 29, 2006 Share Posted July 29, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now