Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v2) • Re: The ahk code doesn't work: check color of 4 coordinate pairs on screen

$
0
0
Welcome to this AutoHotkey forum!

CODE:

#Requires AutoHotkey v2.0
coord := [[100, 100], [200, 200], [300, 300], [400, 400]]
CoordMode 'Pixel'
Loop {
Sleep 50
For each, part in coord {
If part.Length = 4
part.RemoveAt(3)
part.Push(PixelGetColor(part[1], part[2]))
If part.Length = 4 && part[4] != part[3]
Send 1
}
}

Statistics: Posted by mikeyww — 22 minutes ago



Viewing all articles
Browse latest Browse all 579

Trending Articles