Text Color

Recommended Posts

tester123 0

tester123 0

I have some static text fields and I would like to check their color. I tried this approach, but there seems to be a loop-hole somewhere. Works for white but not for the color amber Any tips on how I could improve this? I was hoping to use PixelGetColor, but it didn't work for this use case.

Share this post

Link to post

Share on other sites

tester123 0

tester123 0

Thanks FireFox, I forgot to mention earlier that PixelGetColor returns 0 and thats why I used the Pixel Search approach. I tried the method in the link and that returns 0 as well. Any suggestions as to why the above code breaks?