color meet color

Ask gaming related questions (AHK v1.1 and older)
CPLNet
Posts: 53
Joined: 06 Dec 2016, 11:24

color meet color

12 Oct 2018, 03:20

ax=x+5
ay=y+5
bx=x-10
by=y-10
loop
{
PixelSearch, x, y, 1584, 925, 1894, 1069, 0x0000FF, 0, Fast RGB
if errorlevel = 0
{
PixelGetColor, blue, X, Y
if (blue = 0x0000FF)
{
}
if (blue = 0xFFFFFF)
{
PixelSearch, x, y, 1584, 925, 1894, 1069, 0xFF0000, 0, Fast RGB
if errorlevel = 0
{
Gui +E0x20 -Caption +LastFound +ToolWindow +AlwaysOnTop
WinSet, Transparent, 255
Gui, Font, 0xFF0000
Gui, Add, Text, cred, Red Spotted at Cavalry!
Gui, Show, x5 y50
sleep 500
gui, show, hide
}}}}


INS::ExitApp


there is my code i want my color white whenfound orange color do action what must i use i want the tracing blue color FOV to 15 xy +-

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 41 guests