Dim $1 = "TeamViewer 9 安装"
Dim $2 = "TeamViewer"
Dim $3 = "允许远程控制"
Dim $4 = "计算机和联系人"
Dim $5 = "TeamViewer选项"
Dim $6 = "配置永久访问"
Dim $7 = "永久连接已激活"
Run("TeamViewer_9.0.exe")
TrayTip("提示", "正在安装-远程协助软件,安装过程已经禁止使用鼠标键盘,请稍等", 5)
sleep(100)
;第一个窗口
WinActivate($1)
WinWaitActive($1)
ControlClick($1,"","Button8")
Sleep(50)
ControlClick($1,"","Button2")
;第二个窗口
Sleep(100)
WinActivate($1)
WinWaitActive($1)
ControlClick($1,"","Button5")
ControlClick($1,"","Button2");安装完成
;~ ;配置程序
sleep(2000)
WinWait($2,$3)
WinActivate($2,$3)
WinClose($4,"")
Send("{LALT}+f");快捷键AlT+f
Send("{RIGHT}");鼠标向右移
Send("{DOWN}");鼠标向下移
Send("{ENTER}");回车键
Send("{TAB}")
#CS ;~ //WinWait("TeamViewer选項","")
;~ //WinActivate("TeamViewer选項","")
#CE
ControlCommand($5,"随Windows一同启动TeamViewer","Button67","check","")
Sleep(50)
WinWait($6,"")
WinActivate($6,"");配置永久访问
ControlSetText($6,"","Edit1","123456789");配置永久访问
ControlSetText($6,"","Edit2","123456789");配置永久访问
ControlClick($6,"确定","Button2");配置永久访问
Sleep(50)
WinWait($7,"");永久连接已激活
WinActivate($7,"");永久连接已激活
ControlClick($7,"确定(&K)","Button4");永久连接已激活
ControlCommand($5,"","ComboBox19","SetCurrentSelection","2")
ControlClick($5,"","ListBox1","left",1,26,17)
Send("{DOWN}");鼠标向下移
#CS ;~ MouseClick("left",26,17,1,1)
#CE
Sleep(50)
ControlCommand($5,"","ComboBox17","SetCurrentSelection","4")
Sleep(50)
ControlCommand($5,"","ComboBox18","SetCurrentSelection","1")
ControlClick($5,"","ListBox1","left",1,30,47)
Send("{DOWN}");鼠标向下移
Send("{DOWN}");鼠标向下移
Send("{DOWN}");鼠标向下移
Send("{DOWN}");鼠标向下移
Send("{DOWN}");鼠标向下移
Send("{DOWN}");鼠标向下移
Send("{DOWN}");鼠标向下移
Sleep(100)
ControlClick($5,"显示高级选项","Button35")
Sleep(100)
ControlCommand($5,"","ComboBox2","SetCurrentSelection","2");关闭更新
ControlCommand($5,"","ComboBox3","SetCurrentSelection","3");关闭更新
ControlCommand($5,"自动最小化本地TeamViewer面板","Button5","check","");开启最小化
Sleep(100)
ControlCommand($5,"在启动时显示计算机和联系人","Button18","uncheck","");启动时不显示。。。
Sleep(50)
ControlCommand($5,"请勿使用呼入端口80 (建议仅用于Web服务器)","Button24","check","");关于80连接
Sleep(50)
ControlCommand($5,"禁用TeamViewer关闭程序","Button29","check","");禁用TeamViewer关闭程序
Sleep(50)
ControlCommand($5,"使用适用于Outlook的TeamViewer会议插件","Button30","uncheck","");不使用Outlook
Sleep(50)
ControlCommand($5,"更改需要在本计算机上具备管理员权限","Button31","check","");设置管理员密码
Sleep(100)
ControlSetText($5,"","Edit2","123456789");输入密码
ControlSetText($5,"","Edit3","123456789");确认密码
ControlClick($5,"确定(&K)","Button72");配置完成
Sleep(150)
WinWait($2,$3)
WinActivate($2,$3)
WinClose($2,$3);关闭主窗口,配置安成