deleghetto Posted July 19, 2008 Share Posted July 19, 2008 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 More sharing options...
BrettF Posted July 19, 2008 Share Posted July 19, 2008 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 startHello, 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 Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Paulie Posted July 19, 2008 Share Posted July 19, 2008 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 startI 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 More sharing options...
Richard Robertson Posted July 19, 2008 Share Posted July 19, 2008 (edited) Some of the users also believe there is a While...Next loop, but try not to listen.Edit: /me smacks Paul. Edited July 19, 2008 by Richard Robertson Link to comment Share on other sites More sharing options...
Paulie Posted July 19, 2008 Share Posted July 19, 2008 (edited) Edit: /me smacks Paul./me wonders what he did wrong? Edited July 19, 2008 by Paulie Link to comment Share on other sites More sharing options...
deleghetto Posted July 19, 2008 Author Share Posted July 19, 2008 ok so ive come up with this code but i want the script to exit when i hit space bar expandcollapse popupDo 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 More sharing options...
Paulie Posted July 19, 2008 Share Posted July 19, 2008 (edited) HotkeySet("{SPACE}", "Quit") ;Your Script Here Func Quit() Exit EndFunc Edited July 19, 2008 by Paulie Link to comment Share on other sites More sharing options...
deleghetto Posted July 19, 2008 Author Share Posted July 19, 2008 perfect!!! it works great and probably the easiest script i've ever seen. but, it does exactly what i need it do to and thats all that matters. thank you all for your help! it is greatly appreciated!!!! Link to comment Share on other sites More sharing options...
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