|
楼主 |
发表于 2014-2-21 15:16:16
|
显示全部楼层
#include"mousedrift.t"
namespace redblue
//定义默认空间
function abbred( blood)//人物加红操作
//这里添加你要执行的代码
int retum,control
int isfind,chanx,chany
control=4
while(control>0)
if(blood==70)
isfind=color.findpic(0,0,660,100,"rc:judge.bmp",#101010,1.0,0,chanx,chany)
if(chanx>0&&chany>0)
int strclor=color.getpixelcolor(chanx+27,chany+13)
if(strclor==524432)
retum=1
break
else
mousedrift.mobile(chanx,chany+17)
help.sleep(1000)
mouse.rightclick(1)
help.sleep(1000)
mousedrift.mobile(chanx-30,chany+350)
control=control-1
retum=0
endif
else
help.sleep(100)
continue
endif
else
if(blood==50)
isfind=color.findpic(0,0,660,100,"rc:judge.bmp",#101010,1.0,0,chanx,chany)
if(chanx>0&&chany>0)
int strclor=color.getpixelcolor(chanx+19,chany+13)
if(strclor==120)
retum=1
break
else
mousedrift.mobile(chanx,chany+17)
help.sleep(1000)
mouse.rightclick(1)
help.sleep(1000)
mousedrift.mobile(chanx-30,chany+350)
control=control-1
retum=0
endif
else
help.sleep(100)
continue
endif
endif
endif
endwhile
return retum
endfunction
function abbblue()
int isfind,chanx,chany
isfind=color.findpic(0,0,660,100,"rc:judge.bmp",#101010,1.0,0,chanx,chany)
if(chanx>0&&chany>0)
int strclor=color.getpixelcolor(chanx+19,chany+13)
help.messagebox(convert.inttostr(strclor))
endif
return 0
endfunction
endnamespace
//空间结束语句
>错误:D:\TC\redblue.t 行号:65 错误信息:'convert.inttostr'是不合法的变量名或者是没定义的变量名
上面那个有被我删除的地方,这个是全的 |
|