Code: Select all
colorvalue = 0x171717
Gui, Add, Progress, c%colorvalue% x0 y0 w1 h540, 110
Gui, Show
return
F1::
{
CoordMode, Pixel, Window
PixelSearch, FoundX, FoundY, 200, 100, 200, 100, 0xFFFFFF, 0, Fast RGB
}
If ErrorLevel = 0
{
ColorValue := "White"
}
If Errorlevel
{
ColorValue := 0x171717
}