^Rbutton::
mousegetpos, xx, yy
var = 10
loop 10
{
x1:=xx - var
x2:=xx + var
y1:=yy - var
y2:=yy + var
PixelSearch, Px, Py, %x1%, %y1%, %x2%, %y2%, 0xffffff, 3, Fast
if ErrorLevel = 0
{
click, %Px%, %Py%, right
break
}
var+=10
}
return
thnx i will try tomorrow, right now im off to bed.Quote:
tange16@
sure if u can find a unique color
change the 0xffffff to whatever color u found is unique
Ctrl+right click to activate
Code:^Rbutton:: mousegetpos, xx, yy var = 10 loop 10 { x1:=xx - var x2:=xx + var y1:=yy - var y2:=yy + var PixelSearch, Px, Py, %x1%, %y1%, %x2%, %y2%, 0xffffff, 3, Fast if ErrorLevel = 0 { click, %Px%, %Py%, right break } var+=10 } return
^^Quote:
tange16@
sure if u can find a unique color
change the 0xffffff to whatever color u found is unique
Ctrl+right click to activate
Code:^Rbutton:: mousegetpos, xx, yy var = 10 loop 10 { x1:=xx - var x2:=xx + var y1:=yy - var y2:=yy + var PixelSearch, Px, Py, %x1%, %y1%, %x2%, %y2%, 0xBF003F, 3, Fast if ErrorLevel = 0 { click, %Px%, %Py%, right break } var+=10 } return