When I use PixelGetColor, is it possible that AHK gives me the negative/inverted color?
E.g. the pixel is white and the result should be black.
The code could be something like:
Code: Select all
F1::
MouseGetPos, MouseX, MouseY
PixelGetColor, color, %MouseX%, %MouseY%
invColor := FFFFFF - color
Clipboard := invColor
return
I have no idea if this code might work...
Maybe I have to split the color variable into 3 parts (because it consists of red, green and blue).
After this I might calculate:
FF - part 1
FF - part 2
FF - part 3
invColor = %part1%%part2%%part3%
The result would be 000000 (black).
And I don't have my AHK login here either
Any help would be great!