d2player15 Posted February 18, 2008 Share Posted February 18, 2008 ok i want it to click in a spot 2 times then click in another spot 30 times and click back at first spot 2 times here is what i have MouseClick("Left", 250, 525, 2) MouseClick("Left", 255, 295, 30) MouseClick("Left", 250, 525, 2) those are the spots i want it to click but how do i get it to keep going and going until i stop it with a button or something? i would really like some help on this i am kinda new at this. Link to comment Share on other sites More sharing options...
BrettF Posted February 18, 2008 Share Posted February 18, 2008 While <Expression>... Wend. Also Do...Until <Expression>Look them up in the helpfile. Also, look up _IsPressed. Should be satisfactory with a do... until loop. 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...
d2player15 Posted February 18, 2008 Author Share Posted February 18, 2008 i looked up While <Expression>... Wend. Also Do...Until <Expression> i didnt understand what to do. is there anyone that can walk me threw this? i didnt think it would be too hard Link to comment Share on other sites More sharing options...
BrettF Posted February 18, 2008 Share Posted February 18, 2008 (edited) i looked up While <Expression>... Wend. Also Do...Until <Expression> i didnt understand what to do. is there anyone that can walk me threw this? i didnt think it would be too hardUnsure how someone can fail to put together 4 freaking lines of code. #include <Misc.au3> Do ;Stuff Until _IsPressed ("23");End Key Edited February 18, 2008 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...
d2player15 Posted February 18, 2008 Author Share Posted February 18, 2008 (edited) well im greatful your helping me bout i barly know a thing about autoit so i wasnt sure how to use the do until function ty very much Edited February 18, 2008 by d2player15 Link to comment Share on other sites More sharing options...
BrettF Posted February 18, 2008 Share Posted February 18, 2008 well im greatful your helping me bout i barly know a thing about autoit so i wasnt sure how to use the do until function ty very muchWhat could you gather from the helpfile. I see Do..Until, _IsPressed, and Do right there. <exp> would be the _IsPressed Func. Essentially it returns True =1 and False =0. So your expression is in longform persudo is: If _IsPressed () <> 0 Then continue the loop. In short hand on the end of the loop it would be just _IsPressed, similar to saying If True = True then...else...endif 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...
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