Sign in to follow this  
Followers 0
Masroor

Need Help

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



could you post an example?

Share this post


Link to post
Share on other sites

Sorry till now i have not added bit of PixelSearch to my script because i want to understand it.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0