Jump to content
Sign in to follow this  
erezlevi

need help with Color window.

Recommended Posts

erezlevi

hi,

please take a look at the Image attached.

now, what I need to do is: I need to know if the color in the > where Normal Mode is, is green or white. and to have an integer according to it.

so if the color in the window "Phone Features" in pixels : 511,245 is green then $m=1 and if it is white then $m=0.

Thanks,

Share this post


Link to post
Share on other sites
erezlevi

hi,

I got it working with this: but....

AutoItSetOption ( "PixelCoordMode" ,1 )

WinActivate ("Phone Features")
sleep (500)
$t=PixelGetColor (512,214)
MsgBox (0,"the color is",$t)

is there a way to keep the window down without activating it. I need it minimized. Help me please...

Share this post


Link to post
Share on other sites
FreeRider

Hi,

Try WinSetState function (see Help file for all details)

WinSetState ( "Title of the Window", "text", @SW_MINIMIZE ) (If not text then just put "")

Bye


FreeRiderHonour & Fidelity

Share this post


Link to post
Share on other sites
erezlevi

BUMP,

anyone knows a DLL for doing that ? UDF maybe ?

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  

×