Jump to content

Question on mouse clicking.


Recommended Posts

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.

Link to comment
Share on other sites

$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

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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
WEnd

Solved version

EDIT : How would I put an emergency stop on it? :(

Edited by Th1rt33n
Link to comment
Share on other sites

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]

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...