#NoTrayIcon;其实你就一懒猪,知道怎么做,自己也不做 By kn007
Run("RUNDLL32 netshell.dll,StartNCW");最好不动鼠标,不然有时不行的
$hd="New Connection Wizard";把这里改为你中文版的窗口名,一般为 新建连接向导
WinWait($hd)
WinSetState($hd, '', @SW_HIDE)
ControlClick($hd,"","Button2");注意Button后的数字,自己看看相不相同,你按下一步,再按上一步,按键数字会发生变化
Sleep(500);为了确保可行,可以不要的
ControlClick($hd,"","Button6")
Sleep(500)
ControlClick($hd,"","Button2")
Sleep(500)
ControlClick($hd,"","Button9")
Sleep(500)
ControlClick($hd,"","Button2")
Sleep(500)
ControlClick($hd,"","Button12")
Sleep(500)
ControlSetText($hd,"","Edit1","宽带连接")
Sleep(500)
ControlClick($hd,"","Button12")
Sleep(500)
ControlSetText($hd,"","Edit1","test");用户名
ControlSetText($hd,"","Edit2","test");密码
ControlSetText($hd,"","Edit3","test");再次密码
ControlClick($hd,"","Button17")
Sleep(500)
ControlCommand($hd,"","Button1","Check","");加上WinSetState,这句好像失效,ControlClick也不行,UnCheck就更不行。。。也就是说桌面不会出现,就控制面板有
ControlClick($hd,"","Button21")
Sleep(500)
Exit
|