- 左键弹起
- 延时1000毫秒
- 调用插件命令 strtemp=Window.GetWindowRect(mlxthw)
- mlxtwinrect=Split(strtemp,"|")
- 调用外部VBScript子程序 在屏幕区域里查找图形(104,124,597,599,"神盾.bmp",0.5,gggggo,huuuggg)
- 延时500毫秒
- chxydshxhw=chxydshxhw+1
- 循环结束
- 如果表达式 (mlxtcolorx=525 And mlxtcolory=147) 为真,则
- MvWinR = 2
- 条件结束
- 如果表达式 (MvWinR=0) 为真,则
- //MsgBox MvWinR, 0, "特定颜色没出现"
- 延时100毫秒
- 否则如果(MvWinR=1)为真,则
- //MsgBox MvWinR, 0, "移动游戏窗口失败"
- 延时100毫秒
- 条件结束
- //调整窗口位置-结束
- //----∧∧∧∧∧∧----
- 子程序结束,回到调用处
- 子程序 调整魔力学堂窗口位置Sub
- Dim ie
- 延时200毫秒
- 调用插件命令 mlxthw=Window.Foreground()
- 调用插件命令 mlxttext=Window.GetText(mlxthw)
- 如果表达式 (InStr(mlxttext,"魔力学堂")<=0) 为真,则
- //Delay 900000
- 开始VBScript块
- Set ie=Nothing
- Set ie=CreateObject("internetexplorer.application")
- ie.menubar=0 '不显示IE对象菜单栏
- ie.AddressBar=0 '不显示IE对象地址栏
- ie.ToolBar=0 '不显示IE对象工具栏
- ie.StatusBar=0 '不显示IE对象状态栏
- 'ie.FullScreen=1 '全屏化IE对象
- ie.Width=916'设置IE对象宽度
- ie.Height=620 '设置IE对象高度
- ie.Left=57
- ie.Top=117
- ie.Resizable=0 '设置IE对象大小是否可以被改动
- ie.visible=1 '设置是否可见
- '//ie.Navigate "s.qeedoo.com/mc/s1/index.php" '设置IE对象默认指向的页面
- ie.Navigate LoginURL
- 延时3000毫秒
- ie.document.body.Scroll = "no"
- 结束VBScript块
- 如果表达式 (notexit<=0) 为真,则
- 调用子程序 脚本结束Sub
- 否则如果(notexit=1)为真,则
- 延时20000毫秒
- 跳转到标记 调整窗口完毕
- 条件结束
- 条件结束
- 调用插件命令 strtemp=Window.GetWindowRect(mlxthw)
- mlxtwinrect=Split(strtemp,"|")
- 如果表达式 (mlxtwinrect(2)-mlxtwinrect(1)<900) 为真,则
- 按键<Esc>
- 条件结束
- 延时500毫秒
- 调用外部VBScript子程序 在屏幕区域里查找图形(104,124,597,599,"神盾.bmp",0.5,gggggo,huuuggg)
- 如果表达式 (Int((CInt(mlxtwinrect(0))+CInt(mlxtwinrect(2)))/2)-mlxthwx<>446) 为真,则
- mlxSec = Int((CInt(mlxtwinrect(0))+CInt(mlxtwinrect(2)))/2)-446
- 调用外部VBScript子程序 在屏幕区域里查找图形(104,124,597,599,"神盾.bmp",0.5,gggggo,huuuggg)
- 如果表达式 (Int((CInt(mlxtwinrect(0))+CInt(mlxtwinrect(2)))/2)-mlxthwx<>446) 为真,则
- 调用外部VBScript子程序 在屏幕区域里查找图形(104,124,597,599,"神盾.bmp",0.5,gggggo,huuuggg)
- 条件结束
- 条件结束
- 延时500毫秒
- 鼠标移到 mlxthwx , mlxthwy
- 延时500毫秒
- 如果表达式 (mlxthwx<>58 or mlxthwy<>141) 为真,则
- mlxthwsubx=58-mlxthwx
- mlxthwsuby=141-mlxthwy
- 鼠标移到 mlxtwinrect(0)+50 , mlxtwinrect(1)+10
- 延时200毫秒
- 左键按下
- 延时200毫秒
- //--先移一下
- 鼠标移到 100 , 30
- 延时100毫秒
- //--
- 如果表达式 (mlxthwx>0 and mlxthwy>0) 为真,则
- 鼠标移到 mlxtwinrect(0)+50+mlxthwsubx , mlxtwinrect(1)+10+mlxthwsuby
- 条件结束
- 延时100毫秒
- 左键弹起
- 延时500毫秒
- 调用外部VBScript子程序 在屏幕区域里查找图形(104,124,597,599,"神盾.bmp",0.5,gggggo,huuuggg)
- 延时500毫秒
- 如果表达式 (mlxthwx<>58 or mlxthwy<>141) 为真,则
- 如果表达式 (debugon=1) 为真,则
- 弹出窗口 "游戏窗口位置不正确!"
- 按键<Print Screen>
- 否则如果(debugon=2)为真,则
- 按键<Print Screen>
- 条件结束
- 条件结束
- 条件结束
- 标记 调整窗口完毕