Jump to content

View color in a minimized or inactive window


Recommended Posts

Hi guys I am trying to see the color of an inactive or minimized window. I have opened Paint and drawn a circle and colored the inside red. I am using PixelSearch which I understand is for the active window that is to say when it is open it finds the color perfectly but when I minimize it or cover the color it does not see it anymore. Can anyone guide me with any method or way to do this? This is what I have tried

$hWnd = WinGetHandle("MSPaintApp")

PixelSearch ( 820, 361, 820, 361, 0xEC1C24,1,$hwnd )

If not(@error) Then

    MsgBox(0,"Information","I can see the color")

Else

    MsgBox(0,"Information","Color not found")
    
EndIf

 

Link to comment
Share on other sites

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...