Th1rt33n Posted May 5, 2009 Posted May 5, 2009 I need to basically make a script to click in 25 different locations 14 times with a .25-.5 second pause between each. I have a basic 1 click script at the moment.. just don't know how to evolve from it. Any help is welcome! Thanks! PS: I also need to figure out how to show my X / Y axis of my mouse so I can have the exact locations to click.
Th1rt33n Posted May 5, 2009 Author Posted May 5, 2009 $counter = 1 while $counter < 15 MouseClick("left",163,814) MouseClick("left",493,814) MouseClick("left",831,814) MouseClick("left",1169,814) MouseClick("left",1473,814) MouseClick("left",163,954) MouseClick("left",493,954) MouseClick("left",831,954) MouseClick("left",1169,954) MouseClick("left",1473,954) MouseClick("left",163,1101) MouseClick("left",493,1101) MouseClick("left",831,1101) MouseClick("left",1169,1101) MouseClick("left",1473,1101) MouseClick("left",163,1242) MouseClick("left",493,1242) MouseClick("left",831,1242) MouseClick("left",1169,1242) MouseClick("left",1473,1242) MouseClick("left",163,1388) MouseClick("left",493,1388) MouseClick("left",831,1388) MouseClick("left",1169,1388) MouseClick("left",1473,1388) sleep(2000) $counter = $counter + 1 WEnd Current script.. I need a coordinate program though.. I don't have the right coordinates lol
bo8ster Posted May 5, 2009 Posted May 5, 2009 Use the AutoIt Window Info tool to get your coords and have a look at the MouseCoordMode option. Sleep will be able to handle your timing requirements. You can also use a tooltip to display where current mouse coords are - there are examples on the forum for that. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]
Th1rt33n Posted May 5, 2009 Author Posted May 5, 2009 Kk, Ill look around. I can't find the Window Info Tool.
Th1rt33n Posted May 5, 2009 Author Posted May 5, 2009 (edited) Solved TY for the thing in your siggy Saved me looking for xy coords sleep(5000) $counter = 1 while $counter < 15 MouseClick("left",158,200,1,3) MouseClick("left",498,200,1,3) MouseClick("left",831,200,1,3) MouseClick("left",1169,200,1,3) MouseClick("left",1473,200,1,3) MouseClick("left",163,345,1,3) MouseClick("left",493,345,1,3) MouseClick("left",831,345,1,3) MouseClick("left",1169,345,1,3) MouseClick("left",1473,345,1,3) MouseClick("left",163,490,1,3) MouseClick("left",493,490,1,3) MouseClick("left",831,490,1,3) MouseClick("left",1169,490,1,3) MouseClick("left",1473,490,1,3) MouseClick("left",163,636,1,3) MouseClick("left",493,636,1,3) MouseClick("left",831,636,1,3) MouseClick("left",1169,636,1,3) MouseClick("left",1473,636,1,3) MouseClick("left",163,777,1,3) MouseClick("left",493,777,1,3) MouseClick("left",831,777,1,3) MouseClick("left",1169,777,1,3) MouseClick("left",1473,777,1,3) $counter = $counter + 1 WEndSolved versionEDIT : How would I put an emergency stop on it? Edited May 5, 2009 by Th1rt33n
bo8ster Posted May 5, 2009 Posted May 5, 2009 If you have questions you post them on the forum. Do NOT PM me your questions! I do not work for this forum! Also stop double posting and bumping! Read the rules! To answer your question - look up HotKeySet in the help file and learn! Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]
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