The idea behind the script is this. While holding down left mouse click, it will (continuously) scan a certain area for a certain pixel color. If that color is detected it will release left mouse click.
This is what I have so far, the X,Y cords and color is generic here because I don't have the right ones yet, but I can figure out those on my own.
Code: Select all
LButton::
CoordMode, pixel,screen
CoordMode, mouse,screen
Loop
{
PixelSearch, Px, Py, 0, 0, 1680, 1050, 0x9d6346, 3, Fast
if !ErrorLevel
{
Send, {Lbutton Up}
Sleep, 1500
}
}
Thanks