tsue Posted April 27, 2012 Posted April 27, 2012 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))
Danyfirex Posted April 27, 2012 Posted April 27, 2012 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? Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut
Unc3nZureD Posted April 27, 2012 Posted April 27, 2012 $Handle = WinGetHandle("paint1") $var =PixelGetColor(811, 225, $Handle)
tsue Posted April 28, 2012 Author Posted April 28, 2012 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? yes get pixel colors from different windows even windows in the background
tsue Posted April 28, 2012 Author Posted April 28, 2012 $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))
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now