![]() ![]() This method is about three times slower than the normal method. Slow: Uses a more elaborate method to retrieve the color, which may work in certain full-screen applications when the other methods fail. This method is about 10 % slower than the normal method. "Alt Slow").Īlt: Uses an alternate method to retrieve the color, which should be used when the normal method produces invalid or inaccurate colors for a particular type of window. ![]() If more than one word is present, separate each from the next with a space (e.g. Otherwise, specify one or more of the following words. If blank or omitted, the pixel is retrieved using the normal method. Coordinates are relative to the active window's client area unless CoordMode was used to change that. Color := PixelGetColor(X, Y, Mode) Parameters X, Y Retrieves the color of the pixel at the specified X and Y coordinates. ![]() If that's not the problem, I tested this simple script side-by-side with Window Spy (the version distributed with AutoHotkey) and the color values always matched exactly.PixelGetColor - Syntax & Usage | AutoHotkey v2 PixelGetColor MouseMove, %X%, %Y%, 1 Restore the original positionĬlipboard = %clipboard%`nX%X% Y%Y% Color = %color% SetFormat, integer, hex Report it in hex so that you can see the blue-green-red compoents more easily. Sleep, 50 Might need time to make it reliable. ![]() Move the cursor out of the way so that it doesn't block the pixel we want. If you think that could be the problem, you could try a hotkey such as the following to retrieve the pixel color currently under the cursor: This tends to happen with non-standard cursors or in some types of games. It might have something to do with Window Spy misreporting the color due to the mouse cursor blocking the pixel you want. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |