int n,h,zx,zy,zzx,zzy
int htt=0
n=1
h=0
zx=w
zy=z
if(zx<50||zx>540)
if (zx<50)
zzx=zx+40
endif
if (zx>540)
zzx=zx-40
endif
else
zzx=zx
endif
if (zy<50 || zy>400)
if (zy<50)
zzy=zy+40
endif
if (zy>400)
zzy=zy-40
endif
else
zzy=zy
endif
mouse.mousemove(zzx, zzy)
help.sleep(100)
// Rem py
int aaa=10
while(aaa>0)
int x,y
mouse.getmousepoint(x, y)
int mz=0
int x1,y1,a,b
bool ifok=color.findrectpixelcolor(x - 110, y - 110, x + 110, y + 110, #78F4F0, 1,x1, y1)
if(x1>0&&y1>0)
a=zx-x1+20
b=zy-y1+10
// Goto OK
if(htt==10)
// Goto NO
break
endif
if (h==6)
mouse.mousemove(300 ,300)
help.sleep(500)
htt=htt+1
h=0
// Goto py
continue
endif
if(mz==1)
h=h+1
//Goto py
continue
else
if(math.abs(a)>n || math.abs(b)>n )
mouse.moverelative(a,b)
help.sleep(100)
h=h+1
// Goto py
continue
endif
endif
break
endif
int sbwza
int sbwzb
color.findmutilcolor(x-110,y-110,x+110,y+110,#78A4B0,"-2|4|C0C8D8,-3|5|C0C8D8,-4|6|C0C8D8,-5|7|C0C4D0,-9|9|98C0C8",1,0,sbwza,sbwzb)
x1 = sbwza - 18
y1 = sbwza - 9
if(x1>0&&y1>0)
a=zx-x1
b=zy-y1
//Goto OK
if(htt==10)
// Goto NO
break
endif
if (h==6)
mouse.mousemove(300 ,300)
help.sleep(500)
htt=htt+1
h=0
// Goto py
continue
endif
if(mz==1)
h=h+1
//Goto py
continue
else
if(math.abs(a)>n || math.abs(b)>n )
mouse.moverelative(a,b)
help.sleep(100)
h=h+1
// Goto py
continue
endif
endif
break
endif
color.findmutilcolor(x-110,y-110,x+110,y+110,#D0AC30,"1|0|D0AC30,2|0|D0AC30,3|0|D0AC30,4|0|D0AC30,2|1|D0AC30,2|2|D0AC30,2|3|D0AC30,2|4|D0AC30,2|5|D0AC30,2|6|D0AC30,2|7|D0AC30,2|8|D0AC30,2|9|D0AC30,2|10|D0AC30,2|11|D0AC30,2|12|D0AC30,2|13|D0AC30,2|14|D0AC30,2|15|D0AC30,2|16|D0AC30,2|17|D0AC30,2|18|D0AC30,2|19|D0AC30,2|20|D0AC30,0|21|D0AC30,1|21|D0AC30,2|21|D0AC30,3|21|D0AC30,4|21|D0AC30",1,0,sbwza,sbwzb)
x1 = sbwza+ 2
y1=sbwzb+11
if(x1>0&&y1>0)
a=zx-x1
b=zy-y1
// Goto OK
if(htt==10)
// Goto NO
break
endif
if (h==6)
mouse.mousemove(300 ,300)
help.sleep(500)
htt=htt+1
h=0
// Goto py
continue
endif
if(mz==1)
h=h+1
//Goto py
continue
else
if(math.abs(a)>n || math.abs(b)>n )
mouse.moverelative(a,b)
help.sleep(100)
h=h+1
// Goto py
continue
endif
endif
break
endif
mz=1
mouse.mousemove(zzx ,zzy)
help.sleep(150)
//Rem OK
if(htt==10)
// Goto NO
break
endif
if (h==6)
mouse.mousemove(300 ,300)
help.sleep(500)
htt=htt+1
h=0
// Goto py
continue
endif
if(mz==1)
h=h+1
//Goto py
continue
else
if(math.abs(a)>n || math.abs(b)>n )
mouse.moverelative(a,b)
help.sleep(100)
h=h+1
// Goto py
continue
endif
endif
//Rem NO
endwhile
不知是原来代码有问题,还是我改的有问题,有时候会乱飘 |