tsue Posted April 27, 2012 Share 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)) Link to comment Share on other sites More sharing options...
Danyfirex Posted April 27, 2012 Share 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 Link to comment Share on other sites More sharing options...
Unc3nZureD Posted April 27, 2012 Share Posted April 27, 2012 $Handle = WinGetHandle("paint1") $var =PixelGetColor(811, 225, $Handle) Link to comment Share on other sites More sharing options...
tsue Posted April 28, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
tsue Posted April 28, 2012 Author Share 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)) Link to comment Share on other sites More sharing options...
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