- 子程序结束,回到调用处
- 子程序 什么地方Sub
- RecColorArr = Array("", "", "", "", "")
- RecColorArr(0) = GetPixelColor(342,192)
- RecColorArr(1) = GetPixelColor(460,192)
- RecColorArr(2) = GetPixelColor(608,192)
- RecColorArr(3) = GetPixelColor(413,192)
- RecColorArr(4) = ColorStrFindPlace(RecColorArr(0), RecColorArr(1), RecColorArr(2), RecColorArr(3), 15)
- 如果表达式 (RecColorArr(4)<>"") 为真,则
- place = RecColorArr(4)
- 如果表达式 (debugon=300) 为真,则
- MsgBox place,0,"什么地方Sub"
- 条件结束
- 否则
- place = "未知地图"
- 条件结束
- 子程序结束,回到调用处
- 子程序 防卡刷新第N分钟
- //防卡刷新第N分钟使用设置: TimeOutRefreshTimeArray(2)设置时间
- 如果表达式 (TimeOutRefreshTimeArray(0)=0) 为真,则
- 调用插件命令 TimeOutRefreshTimeArray(0)=GetSysInfo.GetTime()
- 调用插件命令 TimeOutRefreshTimeArray(1)=GetSysInfo.GetTime()
- 否则
- 调用插件命令 TimeOutRefreshTimeArray(1)=GetSysInfo.GetTime()
- 如果表达式 (TimeOutRefreshTimeArray(1)-TimeOutRefreshTimeArray(0)>TimeOutRefreshTimeArray(2)) 为真,则
- 按键<Enter>
- 调用子程序 刷新部分
- 条件结束
- 条件结束
- 子程序结束,回到调用处
- 子程序 防卡刷新
- 调用子程序 DEBUGKEY
- 如果表达式 (rere>20 or LastDebugKey=191) 为真,则
- 鼠标移到 515 , 406
- 左键单击
- 延时150毫秒
- 按键<Enter>
- 延时150毫秒
- 调用子程序 刷新部分
- 条件结束
- rere=rere+1
- 子程序结束,回到调用处
- 子程序 防卡刷新60
- 如果表达式 (rere>60) 为真,则
- 鼠标移到 515 , 406
- 左键单击
- 延时150毫秒
- 按键<Enter>
- 延时150毫秒
- 调用子程序 刷新部分
- 条件结束
- rere=rere+1
- 子程序结束,回到调用处
- 子程序 刷新部分
- Dim RefreshResult
- Dim RefreshLoop
- reref = 1
- rere = 0
- //
- RefreshResult = 0
- RefreshLoop = 0
- 如果表达式 ((ColorCompare(GetPixelColor(503,561),"6B6D31",20)<=0 Or ColorCompare(GetPixelColor(496,627),"2928C6",25)<=0 Or RefreshLoop=0) And RefreshLoop<20) 为真,则循环执行
- 如果表达式 (newwindow>0) 为真,则
- //关闭窗口重新打开新窗口方法
- 调用插件命令 Window.Close(mlxthw)
- 调用插件命令 mlxthw=Window.Find(0,"魔力学堂")
- 调用插件命令 ismlxthw=Window.IsWindow(mlxthw)
- 如果表达式 (ismlxthw=1) 为真,则循环执行
- 调用插件命令 Window.Close(mlxthw)
- 调用插件命令 mlxthw=Window.Find(0,"魔力学堂")
- 调用插件命令 ismlxthw=Window.IsWindow(mlxthw)
- 延时500毫秒
- 循环结束
- //不好用...
- //Plugin mlxthw=Window.Find("IEFrame",0)
- //Plugin ismlxthw=Window.IsWindow(mlxthw)
- //While ismlxthw=1
- // Plugin Window.Close(mlxthw)
- // Plugin mlxthw=Window.Find("IEFrame",0)
- // Plugin ismlxthw=Window.IsWindow(mlxthw)
- // Delay 500
- //EndWhile
- //
- //强制关闭所有IE!
- 开始VBScript块
- dim bag,pipe
- set bag=getobject("winmgmts:\\.\root\cimv2")
- set pipe=bag.execquery("select * from win32_process where name='IEXPLORE.EXE'")
- 循环 each i in pipe 遍
- i.terminate()
- next
- 结束VBScript块
- 延时3000毫秒
- //重新打开状态窗口
- ShowStateWin
- notexit=1
- //执行下面Sub只为了打开新窗口,设置notexit=1
- 调用子程序 调整魔力学堂窗口位置Sub
- notexit=0
- 延时1000毫秒