Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pixel possible issue
#1
with windows 7 basic theme i receive different colors then in aero ones.
for example in such simple code with same image in viewer.

Code:
Copy      Help
int r g b
int w=win("1.png - NexusImage" "TfMain")
ColorToRGB(pixel(100 100 w) &r &g &b)
out r
out g
out b
#2
Possible reasons:
1. The color in that point actually changed.
2. The border or title bar or menu bar size changed. Add flag 1 (client are coordinates), then pixel coordinates will be independent from these conditions. Example: pixel(94 50 w 1)

If using pixel() and scan(), better don't change themes. Or use pixel() and scan() carefully, always with flag "client area coordinates".
#3
thanks, stupid me


Forum Jump:


Users browsing this thread: 2 Guest(s)