jrulz1977 Posted January 30, 2007 Share Posted January 30, 2007 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. Link to comment Share on other sites More sharing options...
Helge Posted January 30, 2007 Share Posted January 30, 2007 (edited) Hard to find in helpfile ?AutoIt -> Function Reference -> Mouse Control -> ...For the looping part :AutoIt -> Language Reference -> Loop Statements -> ... Edited January 30, 2007 by Helge Link to comment Share on other sites More sharing options...
jrulz1977 Posted January 30, 2007 Author Share Posted January 30, 2007 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 More sharing options...
BrettF Posted January 30, 2007 Share Posted January 30, 2007 (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 January 30, 2007 by bert 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...
jrulz1977 Posted January 30, 2007 Author Share Posted January 30, 2007 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. Link to comment Share on other sites More sharing options...
jrulz1977 Posted January 30, 2007 Author Share Posted January 30, 2007 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 Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 30, 2007 Moderators Share Posted January 30, 2007 (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. ThanksLook 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 January 30, 2007 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 More sharing options...
Shevilie Posted January 30, 2007 Share Posted January 30, 2007 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 More sharing options...
Richard Robertson Posted January 30, 2007 Share Posted January 30, 2007 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 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