Jump to content

pixel search background windows


tsue
 Share

Recommended Posts

hello, i have been testing pixel search recently and it works great, i have noticed in the help file that it can use hwnd, so i tried to get different colors from different windows with the same cords but for some reason it doesnt seems to work, here is my code:

$var =PixelGetColor(811, 225, "paint1")

$var2 = PixelGetColor(811, 225, "paint2")

MsgBox(0,"The hex color is", Hex($var, 6) & @CRLF & Hex($var, 6))

Link to comment
Share on other sites

try this:

$var =PixelGetColor(45, 257)
MsgBox(0,"The hex color is", ($var) & @CRLF & Hex($var))

do you want to get pixelcolor from a windows ? or any place?

Link to comment
Share on other sites

$Handle = WinGetHandle("paint1")
$var =PixelGetColor(811, 225, $Handle)

hello i tried this but it doesnt work it gives me back the same color and i have a pure red in one window and pure black in the oter
$Handle = WinGetHandle("paintblack")
$var =PixelGetColor(804, 356, $Handle)
$Handle2 = WinGetHandle("paintred")
$var2 = PixelGetColor(804, 356, $Handle2)
MsgBox(0,"The hex color is", Hex($var, 6) & @CRLF & Hex($var2, 6))
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...