vava Posted January 31, 2007 Share Posted January 31, 2007 i know this script is not finished i need to put the x and y but is it working fine???(by juste putting some values) i m not used to this language Dim $var = 1 dim $color = PixelGetColor ( x'' , y'' ) while $var > 32000 do MouseClick ( "left" [, x, y [, $var [, 1 ]]] ) MouseClick ( "left" [, x', y' [, 1 [, 1 ]]] ) Sleep (5000) if PixelGetColor ( x'' , y'' )= $color then $var = $var * 2 else $var = 1 ifend wend Link to comment Share on other sites More sharing options...
Gibbo Posted January 31, 2007 Share Posted January 31, 2007 i know this script is not finished i need to put the x and y but is it working fine???(by juste putting some values) i m not used to this language Dim $var = 1 dim $color = PixelGetColor ( x'' , y'' ) while $var > 32000 do MouseClick ( "left" [, x, y [, $var [, 1 ]]] ) MouseClick ( "left" [, x', y' [, 1 [, 1 ]]] ) Sleep (5000) if PixelGetColor ( x'' , y'' )= $color then $var = $var * 2 else $var = 1 ifend wend CODEDim $var = 1 Dim $color = PixelGetColor(x, y) While $var > 32000 Do MouseClick("left" [, x, y [, $var [, 1 ]]]) MouseClick("left" [, x', y' [, 1 [, 1 ]]]) Sleep(5000) If PixelGetColor(x, y) = $color Then $var = $var * 2 Else $var = 1 EndIf WEnd Cleaned it up a bit so I could Puzzle over it. What exactly is it supposed to do? Link to comment Share on other sites More sharing options...
vava Posted January 31, 2007 Author Share Posted January 31, 2007 Dim $var = 1 Dim $color = PixelGetColor(55, 55) While $var < 32000 Do MouseClick("left" [, 555, 555 [, $var [, 1 ]]]) MouseClick("left" [, 222, 222 [, 1 [, 1 ]]]) Sleep(5000) If PixelGetColor(666, 666) = $color Then $var = $var * 2 Else $var = 1 EndIf WEnd i tried with some values and it didn t work first it didn t want the do at the same line and now i have wrong statements issues beween while and wend Link to comment Share on other sites More sharing options...
Gibbo Posted January 31, 2007 Share Posted January 31, 2007 Dim $var = 1 Dim $color = PixelGetColor(55, 55) While $var < 32000 Do MouseClick("left" [, 555, 555 [, $var [, 1 ]]]) MouseClick("left" [, 222, 222 [, 1 [, 1 ]]]) Sleep(5000) If PixelGetColor(666, 666) = $color Then $var = $var * 2 Else $var = 1 EndIf WEnd i tried with some values and it didn t work first it didn t want the do at the same line and now i have wrong statements issues beween while and wend ok, first up, the square brackets '[' and ']' indicate optional parameters. You dont actualy put them in, they just indicate what you can leave out. MouseClick("left" [, 555, 555 [, $var [, 1 ]]]) MouseClick("left" [, 222, 222 [, 1 [, 1 ]]])oÝ÷ Û .ÖÞrjëh×6MouseClick("left" , 555, 555 , $var , 1 ) MouseClick("left" , 222, 222 , 1 , 1 ) This would instruct the script to click the left mouse button at posistion 555,555 $var times at a speed of 1 and then click the left mouse button at posistion 222,222 1 times at a speed of 1 With $var counting to 32000 or so, that is alot of clicks. What are you trying to achieve with this script? Link to comment Share on other sites More sharing options...
vava Posted January 31, 2007 Author Share Posted January 31, 2007 some bot for some stupid games well it worked out but it wont click as many time as i espected i mean when PixelGetColor(593, 729) = $color the script will just click once is there any ways i can see what the script is doing the descisions he is making ect?? Link to comment Share on other sites More sharing options...
Shevilie Posted February 1, 2007 Share Posted February 1, 2007 ConsoleWrite is your friend for debugging read more here http://www.autoitscript.com/autoit3/docs/f...onsoleWrite.htm 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...
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