Jump to content

please help


Recommended Posts

alright so basically i have not experience with autoit scripting language at all.

but i need a script that can click 26 different points on my screen with a wait time between each of the clicks and then just keep looping. any help is greatly appreciated... even a start would be awesome..to me the script is just one big repetitive script but im not to sure on where to start

Link to comment
Share on other sites

alright so basically i have not experience with autoit scripting language at all.

but i need a script that can click 26 different points on my screen with a wait time between each of the clicks and then just keep looping. any help is greatly appreciated... even a start would be awesome..to me the script is just one big repetitive script but im not to sure on where to start

Hello, welcome to the forums.

First things first, always post code when asking for help, if you have it. Post what you have tried. It makes it easier for us to answer your question, as the code speaks 1000 words... (I could so do some SAPI thing right now... haahahahaha! Back to it...)

As you may/may not have noticed there is a very comprehensive helpfile, showing examples for pretty much every function in the language. Including the UDFs (User Defined Functions). Take a look there, and see if you can find what you need. I'll give you a big hint, MouseClick and Sleep. muttley. Now for a loop. You have For...Next, While...Wend, Do...Until, there is a few. Have a look and see what suits your aplication. :)

If you need any more help, just ask....:(

Cheers,

Brett

Link to comment
Share on other sites

alright so basically i have not experience with autoit scripting language at all.

but i need a script that can click 26 different points on my screen with a wait time between each of the clicks and then just keep looping. any help is greatly appreciated... even a start would be awesome..to me the script is just one big repetitive script but im not to sure on where to start

I actually feel good about this one, maybe he is worth just giving an answer to muttley , since his name isn't:

"XxTeHx31337xNuBxHaxxZo0RzxX"

and he isn't like

"OMG im totalL N0oB LawL PZLZZLZLZ MAEK MI A SKRPT THT CN DO SOMNTHG I WANT IT TO DO PLZ PLZ PLZ I NED HLP LOTZ THX!!!!!!111!!!one!!!11!!!eleven69420247365!"

Here is one way to do what you want, you said 26 points? well fill in the array like so:

Dim $Info[26][3] ; 26 sets of 3 peices of info -- X, Y, and Pause
$Info[0][0] = x coord 1
$Info[0][1] = y coord 1
$Info[0][2] = Pause after first click
$Info[1][0] = x coord 2
$Info[1][1] = y coord 2
$Info[1][2] = Pause after second click
; Continue for all 26 points
For $i = 0 to 25
MouseClick("Left", $Info[$i][0], $info[$i][1])
Sleep($Info[$i][2])
Next
Link to comment
Share on other sites

ok so ive come up with this code but i want the script to exit when i hit space bar

Do
Sleep(10000)
MouseClick("primary", 655, 302)
Sleep(8000)
MouseClick("primary", 655, 402)
Sleep(8000)
MouseClick("primary", 655, 502)
Sleep(8000)
MouseClick("primary", 655, 602)
Sleep(8000)
MouseClick("primary", 655, 702)
Sleep(8000)
MouseClick("primary", 445, 907)
sleep(5000)

MouseClick("primary", 785, 302)
Sleep(8000)
MouseClick("primary", 785, 402)
Sleep(8000)
MouseClick("primary", 785, 502)
Sleep(8000)
MouseClick("primary", 785, 602)
Sleep(8000)
MouseClick("primary", 785, 702)
Sleep(8000)
MouseClick("primary", 445, 907)
sleep(5000)

MouseClick("primary", 920, 302)
Sleep(8000)
MouseClick("primary", 920, 402)
Sleep(8000)
MouseClick("primary", 920, 502)
Sleep(8000)
MouseClick("primary", 920, 602)
Sleep(8000)
MouseClick("primary", 920, 702)
Sleep(8000)
MouseClick("primary", 445, 907)
sleep(5000)

MouseClick("primary", 1060, 302)
Sleep(8000)
MouseClick("primary", 1060, 402)
Sleep(8000)
MouseClick("primary", 1060, 502)
Sleep(8000)
MouseClick("primary", 1060, 602)
Sleep(8000)
MouseClick("primary", 1060, 702)
Sleep(8000)
MouseClick("primary", 445, 907)
sleep(5000)

MouseClick("primary", 1180, 302)
Sleep(8000)
MouseClick("primary", 1180, 402)
Sleep(8000)
MouseClick("primary", 1180, 502)
Sleep(8000)
MouseClick("primary", 1180, 602)
Sleep(8000)
MouseClick("primary", 1180, 702)
Sleep(8000)
MouseClick("primary", 445, 907)
sleep(5000)

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