[v2.0.2] PixelSearch stores a large X coordinate if the color is not found Topic is solved

Report problems with documented functionality
User avatar
Ragnar
Posts: 611
Joined: 30 Sep 2013, 15:25

[v2.0.2] PixelSearch stores a large X coordinate if the color is not found

Post by Ragnar » 29 Mar 2023, 10:56

PixelSearch stores an X coordinate even if the color is not found. Normally, the X-coordinate output variable should be empty if PixelSearch does not find the specified color. On my system, this variable contains 1074764624 (0x400F9B50).

Code: Select all

#Requires AutoHotkey v2.0+
IsFound := PixelSearch(&X, &Y, 0, 0, 100, 100, 0x000000)
MsgBox IsFound ": " X "," Y ; Reports "0: 1074764624,"


Post Reply

Return to “Bug Reports”