Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pixel with 0x1000 flag (Aero) sometimes not working
#1
Hi !

I noticed that sometimes the pixel command returns weird values when using the flag 0x1000 (I'm on windows 10), under certain circumstances

For example, it always returns 0 0 0 in the calculator app

[Image: LIJ3Jar.png]

In some DirectX 11 apps or games it works with no problem


For example, World of Warcraft with DirectX11 :
[Image: limaJiB.png]

Same spot but using directX12 :

[Image: EQMpycm.png]


Here is the code i use :

Macro Pixel color
Code:
Copy      Help
int r g b rr gg bb
rep
,ifk(F10)
,,end
,w=win(mouse)
,out
,POINT p;xm p w
,_i=pixel(p.x p.y w 0x1000)
,ColorToRGB(_i r g b)
,;out F"{r} {g} {b} with Aero"
,
,_i=pixel(p.x p.y w)
,ColorToRGB(_i rr gg bb)
,;out F"{rr} {gg} {bb} without Aero"
,OnScreenDisplay(F"{r} {g} {b} with Aero[]{rr} {gg} {bb} without Aero" 1 266 2 "" 12 444 8+1+32+4 "test")
,0.2

Is there a way to fix this or maybe i'm using it wrong ?

Thanks in advance Smile


Messages In This Thread
pixel with 0x1000 flag (Aero) sometimes not working - by Extreme - 09-07-2021, 05:01 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)