|
马上加入TC
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
空间 TI
//默认空间
ts=com("ts.tssoft")
窗口句柄
线程句柄
//开始按钮_点击操作
功能 初始化()
//这里添加你要执行的代码
是否成功=辅助.是否注册("ts.tssoft")
如果(!是否成功) //如果没有注册
是否成功=辅助.注册插件("rc:TSPlug.dll",真)
如果(是否成功) //判断是否成功
//不成功 就开始注册大漠
否则
辅助.消息框("插件注册失败")
如果结束
如果结束
//这里添加你要执行的代码
ts.SetPath(help.getrcpath("rc:")) //设置全局路径
功能结束
功能 开始_点击()
功能结束
//退出按钮_点击操作
功能 热键0_热键()
线程句柄=线程.开启("TI.移动打怪","")
//整型 X,Y
//ts.FindPic(0,0,2000,2000,"123.bmp","000000",0.9,0,X,Y)
//辅助.等待(500)
//如果(X>0)
//ts.MoveTo(X,Y)
//ts.LeftClick()
//辅助.等待(500)
//否则
//辅助.消息框("找不到图!")
//如果结束
//提示是否绑定成功
//help.messagebox("成功")
功能结束
功能 移动打怪()
间隔
窗口句柄=ts.GetMousePointWindow()
if(窗口句柄==0)
help.messagebox("句柄查找失败")
endif
//提示是否找到句柄
//help.messagebox(窗口句柄)
绑定窗口=ts.BindWindow(窗口句柄,"normal","windows","windows",101)
if(绑定窗口==0)
help.messagebox("绑定失败")
endif
间隔=编辑框.获得文本("编辑框0")
//打开地图移动到点一挂机
循环(真)
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(1000)
ts.MoveTo(532,317)
help.sleep(800)
ts.LeftClick()
help.sleep(9000)
ts.KeyPressChar("H")
help.sleep(800)
ts.KeyPressChar("M")
help.sleep(间隔*60000)
//help.sleep(120000)
//打开地图移动到点二挂机
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(1000)
ts.MoveTo(285,370)
help.sleep(800)
ts.LeftClick()
help.sleep(9000)
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(间隔*60000)
//help.sleep(120000)
//打开地图移动到点三挂机
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(1000)
ts.MoveTo(290,312)
help.sleep(800)
ts.LeftClick()
help.sleep(9000)
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(间隔*60000)
//打开地图移动到点四挂机
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(1000)
ts.MoveTo(230,220)
help.sleep(800)
ts.LeftClick()
help.sleep(9000)
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(间隔*60000)
//打开地图移动到点5挂机
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(1000)
ts.MoveTo(204,166)
help.sleep(800)
ts.LeftClick()
help.sleep(9000)
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(间隔*60000)
//打开地图移动到点6挂机
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(1000)
ts.MoveTo(258,115)
help.sleep(800)
ts.LeftClick()
help.sleep(9000)
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(间隔*60000)
//打开地图移动到点7挂机
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(1000)
ts.MoveTo(458,125)
help.sleep(800)
ts.LeftClick()
help.sleep(9000)
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(间隔*60000)
//打开地图移动到点8挂机
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(1000)
ts.MoveTo(258,115)
help.sleep(800)
ts.LeftClick()
help.sleep(9000)
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(间隔*60000)
//打开地图移动到点9挂机
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(1000)
ts.MoveTo(204,166)
help.sleep(800)
ts.LeftClick()
help.sleep(9000)
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(间隔*60000)
//打开地图移动到点10挂机
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(1000)
ts.MoveTo(230,220)
help.sleep(800)
ts.LeftClick()
help.sleep(9000)
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(间隔*60000)
//打开地图移动到点11挂机
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(1000)
ts.MoveTo(290,312)
help.sleep(800)
ts.LeftClick()
help.sleep(9000)
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(间隔*60000)
//打开地图移动到点12挂机
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(1000)
ts.MoveTo(258,370)
help.sleep(800)
ts.LeftClick()
help.sleep(9000)
ts.KeyPressChar("H")
help.sleep(1000)
ts.KeyPressChar("M")
help.sleep(间隔*60000)
循环结束
功能结束
功能 退出_点击()
ts.UnBindWindow()
辅助.退出()
功能结束
空间结束
//空间结束语句
提示不是插件变量对象 行号是50行。奇怪。。自己本机没问题。发给别人就提示这个。往指导下
|
|