#include <GuiConstants.au3>
$width=400
$height=250
$left=30
GuiCreate("我的登录器", $width, $height,(@DesktopWidth-$width)/2, (@DesktopHeight-$height)/2)
$button1= GuiCtrlCreateButton("111区1号", $left, 30, 150, 70)
$button2= GuiCtrlCreateButton("111区2号", $left+190, 30, 150, 70)
$button3= GuiCtrlCreateButton("111区3号", $left, 140, 150, 70)
$button4= GuiCtrlCreateButton("111区4号", $left+190, 140, 150, 70)
GuiSetState()
While 1
$msg = GuiGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $button1
_ID01()
Case $msg = $button2
_ID02()
Case $msg = $button3
_ID03()
Case $msg = $button4
_ID04()
EndSelect
WEnd
Func _ID01()
run("F:\传奇\Mir.exe")
WinwaitActive("传奇加载")
MouseClick("left",287,556,1,1)
sleep(17000)
send("{enter}")
sleep(1000)
MouseClick("left",397,308,1,1)
sleep(2000)
MouseClick("left",332,192,1,1)
sleep(1000)
send("111区1号")
sleep(500)
send("{TAB}")
sleep(500)
send("******")
send("{enter}")
sleep(1000)
MouseClick("left",171,467,1,1)
sleep(1800)
MouseClick("left",405,467,1,1)
sleep(1800)
send("{enter}")
sleep(7000)
MouseClick("left",151,0,1,1)
sleep(500)
MouseClick("left",151,0,1,1)
sleep(500)
MouseClick("left",151,0,1,1)
sleep(1000)
MouseClick("left",61,140,1,1)
sleep(1100)
MouseClick("left",190,90,1,1)
sleep(2000)
MouseClick("left",541,460,1,1)
sleep(1200)
send("{enter}")
sleep(1800)
MouseClick("left",722,467,1,1)
sleep(1800)
MouseClick("left",405,467,1,1)
sleep(1800)
send("{enter}")
sleep(7000)
MouseClick("left",573,460,1,1)
sleep(1200)
send("{enter}")
sleep(1800)
ProcessClose("mir.exe")
sleep(3000)
MouseClick("left",620,390,1,1)
EndFunc
Func _ID02()
run("F:\传奇\Mir.exe")
MouseClick("left",287,556,1,1)
sleep(17000)
send("{enter}")
sleep(1000)
MouseClick("left",397,308,1,1)
sleep(2000)
MouseClick("left",332,192,1,1)
sleep(1000)
send("111区2号")
sleep(500)
send("{TAB}")
sleep(500)
send("******")
send("{enter}")
sleep(1000)
MouseClick("left",171,467,1,1)
sleep(1800)
MouseClick("left",405,467,1,1)
sleep(1800)
send("{enter}")
sleep(180000)
MouseClick("left",573,460,1,1)
sleep(1200)
send("{enter}")
sleep(1800)
ProcessClose("mir.exe")
sleep(3000)
MouseClick("left",620,390,1,1)
EndFunc
Func _ID03()
run("F:\传奇\Mir.exe")
WinwaitActive("传奇加载")
MouseClick("left",287,556,1,1)
sleep(17000)
send("{enter}")
sleep(1000)
MouseClick("left",397,308,1,1)
sleep(2000)
MouseClick("left",332,192,1,1)
sleep(1000)
send("111区3号")
sleep(500)
send("{TAB}")
sleep(500)
send("******")
send("{enter}")
sleep(1000)
MouseClick("left",171,467,1,1)
sleep(1800)
MouseClick("left",405,467,1,1)
sleep(1800)
send("{enter}")
sleep(180000)
MouseClick("left",573,460,1,1)
sleep(1200)
send("{enter}")
sleep(1800)
ProcessClose("mir.exe")
sleep(3000)
MouseClick("left",620,390,1,1)
EndFunc
Func _ID04()
run("F:\传奇\Mir.exe")
WinwaitActive("传奇加载")
MouseClick("left",287,556,1,1)
sleep(17000)
send("{enter}")
sleep(1000)
MouseClick("left",397,308,1,1)
sleep(2000)
MouseClick("left",332,192,1,1)
sleep(1000)
send("111区4号")
sleep(500)
send("{TAB}")
sleep(500)
send("******")
send("{enter}")
sleep(1000)
MouseClick("left",171,467,1,1)
sleep(1800)
MouseClick("left",405,467,1,1)
sleep(1800)
send("{enter}")
sleep(180000)
MouseClick("left",573,460,1,1)
sleep(1200)
send("{enter}")
sleep(1800)
ProcessClose("mir.exe")
sleep(3000)
MouseClick("left",620,390,1,1)
EndFunc