Frit Posted February 25, 2006 Share Posted February 25, 2006 Hello all! I'm new here, I want to know if my script is right: LeftClick, 518, 480 Sleep, 1000 Repeat, <100> EndRepeat I wanted to make my mouse click in the x,y position, wait a bit and repeat. I just don't know why it doesn't works ._. Thanks.... Link to comment Share on other sites More sharing options...
theguy0000 Posted February 25, 2006 Share Posted February 25, 2006 Hi! Welcome to AutoIt! Your script is using the AutoIt v2 syntax. You need AutoIt v3. Download AutoIt v3 from the AutoIt homepage and read that manual instead. Thanks The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
GaryFrost Posted February 25, 2006 Share Posted February 25, 2006 or post your question in the forum for AutoIt v2 SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
theguy0000 Posted February 25, 2006 Share Posted February 25, 2006 or that But if anything I would suggest v3, as it is much more recent. The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN Link to comment Share on other sites More sharing options...
Frit Posted February 25, 2006 Author Share Posted February 25, 2006 so, could you tell me how to do that in v3? it seems to be a very simple script.. but i have no idea of how to do it! Link to comment Share on other sites More sharing options...
GaryFrost Posted February 25, 2006 Share Posted February 25, 2006 (edited) For $x = 1 To 100 MouseClick("left", 518, 480) Sleep( 1000 ) Next Edited February 25, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
ChrisL Posted February 25, 2006 Share Posted February 25, 2006 so, could you tell me how to do that in v3? it seems to be a very simple script.. but i have no idea of how to do it! This would repeat the mouse click 100 times with a 1 second sleep between For $i = 1 to 100 MouseClick ( "left" , 518, 480 ) Sleep (1000) Next [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
BigDod Posted February 25, 2006 Share Posted February 25, 2006 And this would click the left mouse key twice, the interval can be adjusted between 1 and 100 MouseClick("left", 518, 480, 2, 50) Experiment and use the help file, it is really very good. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
wayawesome Posted February 25, 2006 Share Posted February 25, 2006 How do you set how many times it will repeat? Link to comment Share on other sites More sharing options...
blizzedout Posted February 25, 2006 Share Posted February 25, 2006 How do you set how many times it will repeat?Change the first line of code he gave youFor $i = 1 to 100 Link to comment Share on other sites More sharing options...
=sinister= Posted February 25, 2006 Share Posted February 25, 2006 Or you can use this- $loop = "0" While $loop <100 MouseClick("left", 518, 480) Sleep( 1000 ) $loop = $loop + 1 Wend 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