Sign in to follow this  
Followers 0
ardavirus

PixelGetColor is not returning proper values

3 posts in this topic

Hello everyone. I have a game in full screen mode running on window 7 64bit. I have 3 x,y coordinates that have the same color on screen but when I test them with PixelGetColor i get strange return values (the color's proper value should be: 0x4c2d26)

$testColorOne = PixelGetColor(46,381)
$testColorTwo = PixelGetColor(87,381)
$testColorThree = PixelGetColor(128,381)
WinMinimizeAll()
MsgBox(0,"","colorOne is " & Hex($testColorOne,6) & " colorTwo is " & Hex($testColorTwo,6) & " colorThree is " & Hex($testColorThree,6))

The output I get on the msgbox is:

colorOne is 571e01 colorTwo is 531c06 colorThree is 3d170a

The script uses absolute screen coordinates (default)

I can't figure out why this happens and also I would like to ask if the decimal value that PixelGetColor returns is the actual color value (I mean if I transform it in hex it will give me the actual RGB value of the pixel?)

Thank you for your time to read this one and help me!!!!

Share this post


Link to post
Share on other sites



I have a game in full screen mode

And another one who cannot read this at the top of each forum.

:graduated:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

And another one who cannot read this at the top of each forum.

:graduated:

M23

Sorry mate I was in urge to find a solution that I didn't read properly the rules. Is there anyway to edit or delete the previous post. Apologies about any discomfort I might brought to your forums!!!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0