I've been looking into System.PixelColor option and I just can't make it work correctly.
This is the script I'm using:
Code: vb
- hexcolor = Hex(System.PixelColor(System.CursorX, System.CursorY))
- red = Right(hexcolor, 2)
- green = Mid(hexcolor, 2,2)
- blue = Left(hexcolor, 2)
- 'I added these Ifs because sometimes red, green or blue return "" and that doesn't really work
- If red="" Then
- red=0
- End If
- If green="" Then
- green=0
- End If
- If blue="" Then
- blue=0
- End If
- DesktopX.Object("-1/-1").TextColor = RGB(CLng("&H" & red),CLng("&H" & green),CLng("&H" & blue))
(it is basically just a bit retouched rudamentary script from https://www.stardock.com/products/desktopx/documentation/scripting/system_namespace.asp)
It's on a timer so it loops and it actually changes number values but they are not correct. If anyone has any idea why this won't work please, don't be shy