|
马上加入TC
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
function int attack()
int wind
wind = window.getmousemovewndhand()
while(true)
window.postkeypress(wind,9)
bool isfind
int x,y
isfind = window.findrectpixelcolorex(wind,0,0,458,78,#009300,0.8,0,x,y)
if(isfind)
window.postkeypress(wind,50)
help.sleep(1000)
window.postkeypress(wind,49)
help.sleep(3000)
endif
endwhile
return 1
endfunction
上面贴的是线程的代码,我用热键去启动它,但是用了上面那段区域找色的代码 屏幕会一直闪个不停
|
|