Thract Posted June 29, 2010 Share Posted June 29, 2010 Sorry im trying to learn this stuff, im like a noob at this stuff, but how do you go about making something where you search for a certain color, move your mouse there and wait until the color changes, and once it does change, you click. Help is much appreciated, thanks Link to comment Share on other sites More sharing options...
Thract Posted June 29, 2010 Author Share Posted June 29, 2010 (edited) Oops i posted it in the wrong area, where's the delete button, wanted it to be in General Help/Support Edited June 29, 2010 by Thract Link to comment Share on other sites More sharing options...
Yoriz Posted June 29, 2010 Share Posted June 29, 2010 Sorry im trying to learn this stuff, im like a noob at this stuff, but how do you go about making something where you search for a certain color(PixelSearch), move your mouse there(MouseMove)and wait until(Do...Until) the color changes(PixelGetColor), and once it does change, you click(MouseClick).Help is much appreciated, thanksHi welcome to the forum, look in the helpfile at the functions i put in brackets. 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...
Thract Posted June 29, 2010 Author Share Posted June 29, 2010 Hi welcome to the forum, look in the helpfile at the functions i put in brackets.The Do/Until thing was what i needed, thanks a lot Link to comment Share on other sites More sharing options...
gfcaim Posted June 30, 2010 Share Posted June 30, 2010 This is some code I used myself to achieve the same thing... $xPos=435 $yPos=230 $Found=false Do mousemove($xPos,$yPos) $coord=PixelSearch($xPos,$ypos,$xPos,$yPos,0xFFFFCC) if isarray($coord) then $Found=true Else $yPos=$yPos+1 if $yPos=300 then msgbox(0,"SciTE","Project link not found!") Exit endif endif Until $found=true mouseclick("main",$xPos,$ypos+6,1) [font="Comic Sans MS"]"I'm not usually a praying man, but if you are up there, please save me Superman!" (Homer J. Simpson)[/font] 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