Masroor Posted March 18, 2010 Share Posted March 18, 2010 Hi i m making my program in AutoIt and want to do that the program search for the pic in Firefox that i want and click on it. Please help me As i m very new to AutoIt. Link to comment Share on other sites More sharing options...
Nurav Posted March 18, 2010 Share Posted March 18, 2010 could you post an example? Link to comment Share on other sites More sharing options...
Masroor Posted March 18, 2010 Author Share Posted March 18, 2010 Sorry till now i have not added bit of PixelSearch to my script because i want to understand it. Link to comment Share on other sites More sharing options...
Nurav Posted March 18, 2010 Share Posted March 18, 2010 this will return the pixel value in hex, dec and rgb of the corresponding pixel under the mouse pointer. While -1 $position=MouseGetPos() $var = PixelGetColor($position[0], $position[1]) $var_hex=hex($var) $var_hex=StringTrimLeft ( $var_hex, 2) $R= dec(StringLeft ( $var_hex, 2)) $stripped=StringTrimLeft ( $var_hex, 2) $G= dec(StringLeft ( $stripped, 2)) $B= dec(StringRight( $stripped, 2)) sleep(10) ToolTip($position[0]&"__"&$position[1]&@CRLF&$var &@CRLF&hex($var)&@CRLF&$R&"_"&$G&"_"&$B) 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