|
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=F:\AU3\Form1.kxf
$Form1 = GUICreate("北科祥云专用内部测试", 427, 295, 218, 124)
$BY_David = GUICtrlCreateLabel("BY_David", 344, 264, 60, 17)
$Button1 = GUICtrlCreateButton("检查网关", 56, 136, 73, 33, 0)
$Button2 = GUICtrlCreateButton("检查外网", 56, 192, 73, 33, 0)
$Button3 = GUICtrlCreateButton("显示本机IP", 56, 80, 73, 33, 0)
$Button4 = GUICtrlCreateButton("修改IP地址", 56, 24, 73, 33, 0)
$Button5 = GUICtrlCreateButton("控制面板", 280, 24, 73, 33, 0)
$Button6 = GUICtrlCreateButton("TELNET", 288, 128, 73, 33, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button6
Run("telnet 10.1.40.1 "); 检查telnet
WinActivate("telnet 10.1.40.1 ") ;激活窗口
Send("guest {Enter}");输入用户名
WinActivate("telnet 10.1.40.1 ") ;激活窗口
Send("guest {Enter}");输入密码
WinActivate("telnet 10.1.40.1 ") ;激活窗口
Send("netadmin {Enter}")输入高极密码
WinActivate("telnet 10.1.40.1 ") ;激活窗口
EndSwitch
WEnd
现在问题是输入第一行的guest后.第二行好行就不能输入了.
看上去输入的是uest,而不是guest 了.
[ 本帖最后由 zhudizi521 于 2008-10-28 15:46 编辑 ] |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?加入
×
|