你好:

     感谢你访问我的 Blog ,本博客只提供博主的技术经验分享,你可以在此做简单的留言和评论,我会抽空回复你;若是要深入交流探讨,请联系QQ:47853253或者加QQ群:12012081


 

维护大师服务端自动安装【AU3】

 首先准备好id.txt里边保存好开好的帐号和密码:

[ID]

ID=10074097

PASS=211111111qq            密码必须6位且带字母

LPASS=21111111qq          密码必须6位且带字母

然后脚本内容:

Opt("traymenumode",3)

$id = IniRead("id.txt", "ID", "ID", "")

$pass = IniRead("id.txt", "ID", "PASS", "")

$lpass = IniRead("id.txt", "ID", "LPASS", "")

    RunWait(@ComSpec & ' /c ' & 'sc stop MpsSvc & sc config MpsSvc start= disabled', '', @SW_HIDE)

Sleep(5000)

    Run(@ScriptDir & "\BarServer.exe")

    $title="维护大师-网吧服务端V6.0"

$title1="设置向导"

    SendKeepActive($title)

    Sleep(3000)

    WinMove("维护大师-网吧服务端V6.0","",0,0)

    Sleep(1000)

    WinActive($title)

    MouseClick("left",337,407)

    WinWait($title)

    ;WinActive($title,$text1)

    ;Send("!{f4}")

    Sleep(8000)

    MouseClick("left",337,407)

Sleep(20000)

WinWait($title)

MouseClick("left",337,407)

Sleep(5000)

WinWait($title1)

WinMove("设置向导","",0,0)

WinActive($title1)

MouseClick("left",206,157)

Sleep(3000)

send ($id,1)

Sleep(3000)

send ("{tab}")

Sleep(2000)

send ($pass,1)

Sleep(3000)

send ("{tab}")

Sleep(2000)

send ($lpass,1)

Sleep(2000)

MouseClick("left",465,304)

Sleep(6000)

MouseClick("left",465,304)

 

 

如果安装好了,单 是设置:

 

Opt("traymenumode",3)

     $title="维护大师-网吧服务端V6.0"

$title1="设置向导"

$id = IniRead("id.txt", "ID", "ID", "")

$pass = IniRead("id.txt", "ID", "PASS", "")

$lpass = IniRead("id.txt", "ID", "LPASS", "")

WinWait($title1)

WinMove("设置向导","",0,0)

WinActive($title1)

MouseClick("left",206,157)

Sleep(3000)

send ($id,1)

Sleep(3000)

send ("{tab}")

Sleep(2000)

send ($pass,1)

Sleep(3000)

send ("{tab}")

Sleep(2000)

send ($lpass,1)

Sleep(2000)

MouseClick("left",465,304)

Sleep(6000)

MouseClick("left",465,304)



[本日志由 lq3447 于 2018-06-01 08:05 PM 编辑]
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags:
评论: 0 | 引用: 0 | 查看次数: 177
发表评论
你没有权限发表留言!