Jump to content

Help with multiple mouse clicks


Recommended Posts

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)

Link to comment
Share on other sites

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

  • Moderators

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

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

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

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

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