|
本帖最后由 86480297 于 2013-12-6 15:14 编辑
空间 自动按键
//默认空间
线程1
//开始按钮_点击操作
功能 开始_点击()
if(按钮.获得文本("开始")=="开始")
按钮.设置文本("开始","停止")
线程1=线程.开启("自动按键.主程序","")
else
线程.关闭(线程1)
按钮.设置文本("开始","开始")
endif
功能结束
function 主程序()
x,y,x1,y1,i,hwnd
dm=com("dm.dmsoft")
dm_ret = dm.FindMultiColor(0,0,2000,2000,"ffffff-000000","644|0|ffffff,0|424|ffffff,644|424|ffffff,",1.0,1,x,y)
if(dm_ret==1)
hwnd = dm.GetPointWindow(x,y)
else
help.messagebox("找不到游戏啦- -")
help.exit()
endif
//hwnd=722358
dm_ret = dm.BindWindow(hwnd,"gdi2","windows","windows",0)
if(dm_ret!=1)
traceprint("脚本停止")
help.exit()
endif
while(true)
if(i==0)
i=2
else
i=0
endif
dm_ret = dm.FindColor(246,60,885,385,"f04609-000000|008ff5-000000|ffc803-000000|a442bb-000000",1.0,i,x,y)
if(dm_ret==1)
if(x<332)
dm.keypress(83)
else
if(x<424)
dm.keypress(68)
else
if(x<513)
dm.keypress(70)
else
if(x<617)
dm.keypress(32)
else
if(x<709)
dm.keypress(74)
else
if(x<798)
dm.keypress(75)
else
if(x<888)
dm.keypress(76)
endif
endif
endif
endif
endif
endif
endif
endif
help.sleep(100)
dm_ret = dm.FindColor(301,69,320,95,"ffffe6-000000",1.0,0,x,y)
if(dm_ret==1)
dm_ret = dm.FindColor(563,381,569,427,"2ecc71-000000",1.0,0,x,y)
if(dm_ret==1)
dm.moveto(x,y+10)
help.sleep(100)
dm.leftclick()
help.sleep(5000)
endif
for(8)
dm_ret = dm.FindColor(660,379,665,427,"2ecc71-000000",1.0,0,x,y)
if(dm_ret==1)
//traceprint("找到再玩一次")
help.sleep(1000)
dm_ret = dm.FindColor(561,223,573,238,"3fd56d-000000",1.0,0,x1,y1)
if(dm_ret==1)
dm.moveto(x,y)
help.sleep(100)
dm.leftclick()
列表框.增加文本("列表框0",系统.时间(0)&":抽奖未中")
break
endif
help.sleep(1000)
dm_ret = dm.FindColor(596,290,625,326,"5de39f-000000",1.0,0,x1,y1)
if(dm_ret==1)
dm.moveto(x,y)
help.sleep(100)
dm.leftclick()
列表框.增加文本("列表框0",系统.时间(0)&":分数过低")
break
endif
endif
help.sleep(1000)
endfor
help.sleep(1000)
endif
endwhile
endfunction
//退出按钮_点击操作
功能 退出_点击()
辅助.退出()
功能结束
功能 热键0_热键()
//这里添加你要执行的代码
线程.关闭(线程1)
功能结束
空间结束感谢你阅读至此,最后提醒一句,淘宝有风险,适度游戏,谨慎购买!需电脑已经注册大漠插件(或者自己添加注册代码),点击时浏览器可能会被激活! |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|