从手势坐标处开始找纯红色(255 0 0),以下代码能找到,但是效率很低,手势要距离红色很近才行。抛砖引玉,有没有更好的找色代码,或者怎么挂载大漠插件
x=gsx
y=gsy
while (y<1000) do
if (acGetPixelRByPoint(x,y)==255) and (acGetPixelGByPoint(x,y)==0) and (acGetPixelBByPoint(x,y)==0) then
acMouseMove(x, y)
break
else
x=x+1
y=y+1
end
end
x=gsx
y=gsy
while (y<1000) do
if (acGetPixelRByPoint(x,y)==255) and (acGetPixelGByPoint(x,y)==0) and (acGetPixelBByPoint(x,y)==0) then
acMouseMove(x, y)
break
else
x=x+1
y=y+1
end
end