Code: Select all
^q::
PixelGetColor, colorA, 426, 686,
if (colorA >= "0x000000" ) AND (colorA <= "0x010101" )
msgbox, a shade of black
exitapp
Code: Select all
^q::
PixelGetColor, colorA, 426, 686,
if (colorA >= "0x000000" ) AND (colorA <= "0x010101" )
msgbox, a shade of black
exitapp
Code: Select all
if ((colorA>>16)=(colorA>>8&0xff))&&((colorA>>16)=(colorA&0xff)) ;&&(colorA<0x010101) ; limit the allowed brightness
msgbox, a shade of black
thank you , that gave me a lot of not black items, i want black and dark grey morerommmcek wrote:Color is pure Black, Gray or White if its components (RGB) are equal.
So try:Code: Select all
if ((colorA>>16)=(colorA>>8&0xff))&&((colorA>>16)=(colorA&0xff)) ;&&(colorA<0x010101) ; limit the allowed brightness msgbox, a shade of black
Code: Select all
RcolorA:=colorA>>16, GcolorA:=colorA>>8&0xff, BcolorA:=colorA&0xff
if (RcolorA=GcolorA)&&(RcolorA=BcolorA)&&(colorA<0xffffff) ; to limit the brightness decrease 0xffffff to e.g. 0x333333 or the like.
MsgBox % colorA " is black or shade of black"
Code: Select all
SetFormat, integer, Hex
if (colorA >= "0x000000" ) AND (colorA <= "0x010101" )
msgbox, a shade of black
Code: Select all
if (colorA=0x000000)||(colorA=0x010101)||(colorA=0x020202) ;||(colorA=0x030303) ; etc
Users browsing this forum: Aqualest and 309 guests