Since years I work with AHK and found always, somehow, a solution. But now I simply try to find out the color under my cursor but it does not work!
Code: Select all
CoordMode, Mouse Pixel, Screen CoordMode, Mouse, Screen CoordMode, Pixel, Screen MouseGetPos, MouseX, MouseY PixelGetColor, color, MouseX, MouseY, RGB MsgBox The color at the current cursor position is %color%. return
I tried it in many ways, but it simly does not work! It shows always the same "0xffffff". I tried to use other commands, using the "windows spy" mouse position and control to reach my target, but they also did not work in the one or the other way:
Where is my mistake?
I#m using WIN7, AHK 18.104.22.168