jrulz1977 0 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. Share this post Link to post Share on other sites
Helge 3 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 Share this post Link to post Share on other sites
jrulz1977 0 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) Share this post Link to post Share on other sites
BrettF 28 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 Hide BrettF's signature Hide all signatures 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! Share this post Link to post Share on other sites
jrulz1977 0 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. Share this post Link to post Share on other sites
jrulz1977 0 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 Share this post Link to post Share on other sites
SmOke_N 207 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 Hide SmOke_N's signature Hide all signatures 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. Share this post Link to post Share on other sites
Shevilie 1 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 Hide Shevilie's signature Hide all signatures 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
Richard Robertson 186 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. Share this post Link to post Share on other sites