Sign in to follow this  
Followers 0
jrulz1977

Help with multiple mouse clicks

9 posts in this topic

I need help making a script that uses the mouse details x and y coordinates to make like 10 different mouse clicks, then starts the process over. I am quite a noob and any help or example would be greatly appreciated.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hard to find in helpfile ?

AutoIt -> Function Reference -> Mouse Control -> ...

For the looping part :

AutoIt -> Language Reference -> Loop Statements -> ...

Edited by Helge

Share this post


Link to post
Share on other sites

so i got all the mouse clicks to work, but i cant get it to loop could someone show me to do it with these mouse clicks please.

MouseClick ( "left", 752, 380, 1, 1)

MouseClick ( "left", 770, 546, 1, 1)

MouseClick ( "left", 942, 331, 1, 1)

MouseClick ( "left", 593, 271, 1, 1)

MouseClick ( "left", 712, 308, 1, 1)

MouseClick ( "left", 766, 308, 1, 1)

MouseClick ( "left", 820, 308, 1, 1)

MouseClick ( "left", 872, 308, 1, 1)

MouseClick ( "left", 927, 308, 1, 1)

MouseClick ( "left", 590, 312, 1, 1)

MouseClick ( "left", 677, 312, 1, 1)

MouseClick ( "left", 850, 312, 1, 1)

MouseClick ( "left", 930, 312, 1, 1)

MouseClick ( "left", 809, 493, 1, 1)

MouseClick ( "left", 846, 613, 1, 1)

MouseClick ( "left", 886, 270, 1, 1)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

$dll = DllOpen("user32.dll")
DO
MouseClick ( "left", 752, 380, 1, 1)
MouseClick ( "left", 770, 546, 1, 1)
MouseClick ( "left", 942, 331, 1, 1)
MouseClick ( "left", 593, 271, 1, 1)
MouseClick ( "left", 712, 308, 1, 1)
MouseClick ( "left", 766, 308, 1, 1)
MouseClick ( "left", 820, 308, 1, 1)
MouseClick ( "left", 872, 308, 1, 1)
MouseClick ( "left", 927, 308, 1, 1)
MouseClick ( "left", 590, 312, 1, 1)
MouseClick ( "left", 677, 312, 1, 1)
MouseClick ( "left", 850, 312, 1, 1)
MouseClick ( "left", 930, 312, 1, 1)
MouseClick ( "left", 809, 493, 1, 1)
MouseClick ( "left", 846, 613, 1, 1)
MouseClick ( "left", 886, 270, 1, 1)
UNTIL _IsPressed ("0D", $dll) ; loops until enter is pressed

Have you even looked up loops in the helpfile??

EDIT: Error in my code

Edited by bert

Share this post


Link to post
Share on other sites

How can I get this to end when i press enter? I get an error when I try to do the above. I am borderline retarded and very grateful for the help. Thanks in advance.

Share this post


Link to post
Share on other sites

I can get this to work, but have no way to make it stop. I am a special needs student. If someone could help me to make it stop when a specific button is pressed, preferrably enter I would be forever in your debt. Thanks

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

I can get this to work, but have no way to make it stop. I am a special needs student. If someone could help me to make it stop when a specific button is pressed, preferrably enter I would be forever in your debt. Thanks

Look at the example in the "help" file for HotKeySet(). Then for the way you want to use the button, look at Send() also in the help file to understand how to use enter or any other special button you want to use.

In the world of scripting/coding, we are all "special needs students".

Edited by SmOke_N

[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

HotKeySet("{ENTER}", "Quit")

Func Quit()
    Exit
EndFunc

While 1
MouseClick ( "left", 752, 380, 1, 1)
MouseClick ( "left", 770, 546, 1, 1)
MouseClick ( "left", 942, 331, 1, 1)
MouseClick ( "left", 593, 271, 1, 1)
MouseClick ( "left", 712, 308, 1, 1)
MouseClick ( "left", 766, 308, 1, 1)
MouseClick ( "left", 820, 308, 1, 1)
MouseClick ( "left", 872, 308, 1, 1)
MouseClick ( "left", 927, 308, 1, 1)
MouseClick ( "left", 590, 312, 1, 1)
MouseClick ( "left", 677, 312, 1, 1)
MouseClick ( "left", 850, 312, 1, 1)
MouseClick ( "left", 930, 312, 1, 1)
MouseClick ( "left", 809, 493, 1, 1)
MouseClick ( "left", 846, 613, 1, 1)
MouseClick ( "left", 886, 270, 1, 1)
Wend


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites

Special needs student? If you are looking for pity, you will find little on the internet. I am not trying to put you down or anything, just keep that in mind.

We frown upon users who call themselves noobs instead of reading the help file. Read it. The information is clearly organized. If you have to, you can read it like a book from top to bottom.

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