|
我用的是:C:\Program Files\Cisco Systems\VPN Client\vpngui.exe
思科的VPN连接,每次都要输入用户名和密码还要按连接才能拨VPN.
我想隐藏运行vpngui.exe使窗口不可见,再按connect键并输入用户名和密码,后按OK键.
下面的例子是连接到路由器实现自动登录
Run ( @ProgramFilesDir & "\Internet Explorer\iexplore.exe 192.168.1.1" )
WinWaitActive ( "连接到 192.168.1.1" )
WinActivate( "连接到 192.168.1.1" )
ControlSetText ( "连接到 192.168.1.1", "", "Edit2", "admin" )
ControlSetText ( "连接到 192.168.1.1", "", "Edit3", "admin" )
ControlClick ( "连接到 192.168.1.1", "", "Button2" ) |
|