Mizetto Posted April 1, 2010 Share Posted April 1, 2010 I had a question... not sure how to script what i'm trying to do. let me try to explain. I'm trying to make a script, that clicks a (Position x, y) But before it clicks it checks the (Color #ffffff) and if its not the right color. It will move onto the next cord and check its color and then click... So... Pos x,y = color = ffffff - if false... moves to next line Pos x, y = color = 000000 - if true... click Link to comment Share on other sites More sharing options...
Yoriz Posted April 1, 2010 Share Posted April 1, 2010 Check the colour with 'PixelGetColor' and click if it returns the colour required with 'MouseClick' see helpfile for more detail on these functions. GDIPlusDispose - A modified version of GDIPlus that auto disposes of its own objects before shutdown of the Dll using the same function Syntax as the original.EzMySql UDF - Use MySql Databases with autoit with syntax similar to SQLite UDF. Link to comment Share on other sites More sharing options...
z0mgItsJohn Posted April 2, 2010 Share Posted April 2, 2010 Something like this...? Func _CheckAndClick ($Color, $Button, $X, $Y, $Clicks, $Speed) If '0x' (Hex (PixelGetColor ($X, $Y), 6) = $Color Then MouseClick ($Button, $X, $Y, $Clicks, $Speed) EndIf EndIf - John Latest Projects :- New & Improved TCP Chat 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