本帖最后由 星雨朝霞 于 2018-5-26 20:25 编辑 #Region ;**** 参数创建于 ACNWrapper_GUI ****
#PRE_UseX64=n
#PRE_Res_requestedExecutionLevel=None
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#include <IE.au3>
$File="VMware-workstation-full-10.0.0-1295980.exe"
If Not FileExists($File) Then Exit
Run($File)
$win=WinWait("VMware Workstation 安装")
$oIE=_IEAttach($win,"Embedded")
;==============正在加载===========
Do ;等待页面结束
Sleep(1000)
Until Not StringInStr(_IEBodyReadHTML($oIE),"正在加载")
;~ ;==================欢迎使用===============
_IELoadWait($oIE)
;~ ;点击下一步
$NextButton=_IEGetObjById($oIE,"cnbNextButton")
_IEAction($NextButton,"click")
;~ ;=================许可协议=============
_IELoadWait($oIE) ;等待页面加载完成
;~ ;接受协议
$AgreeRadio=_IEGetObjById($oIE,"eAgreeRadio")
_IEAction($AgreeRadio,"click")
;点击下一步
$NextButton=_IEGetObjById($oIE,"cnbNextButton")
_IEAction($NextButton,"click")
;~ ;===================设置类型===============
_IELoadWait($oIE)
;安装典型程序功能
$AgreeRadio=_IEGetObjById($oIE,"eTypicalB")
_IEAction($AgreeRadio,"click")
;~ ;===================目标文件夹==================
_IELoadWait($oIE)
;点击下一步
$NextButton=_IEGetObjById($oIE,"cnbNextButton")
_IEAction($NextButton,"click")
;================软件更新=====================
_IELoadWait($oIE)
;取消启动时检查产品更新
$NextButton=_IEGetObjById($oIE,"eAutoUpdate")
_IEAction($NextButton,"click")
;点击下一步
$NextButton=_IEGetObjById($oIE,"cnbNextButton")
_IEAction($NextButton,"click")
;~ ;================用户体验改进计划=====================
_IELoadWait($oIE)
;取消启帮助发送
$NextButton=_IEGetObjById($oIE,"eDataCollection")
_IEAction($NextButton,"click")
;点击下一步
$NextButton=_IEGetObjById($oIE,"cnbNextButton")
_IEAction($NextButton,"click")
;~ ;===================快捷方式==================
_IELoadWait($oIE)
;点击下一步
$NextButton=_IEGetObjById($oIE,"cnbNextButton")
_IEAction($NextButton,"click")
;~ ;===================已准备好执行请求的操作==================
_IELoadWait($oIE)
;点击继续
$NextButton=_IEGetObjById($oIE,"cnbNextButton")
_IEAction($NextButton,"click")
;==============正在执行请求的操作===============
Do ;等待页面结束
Sleep(1000)
Until Not StringInStr(_IEBodyReadHTML($oIE),"正在执行请求的操作")
;~ ;===================输入许可证密钥==============
_IELoadWait($oIE)
$eSerial=_IEGetObjById($oIE,"eSerial")
_IEFormElementSetValue ($eSerial,"4A451-00256-EZJG1-HH3NP-03161")
;点击输入
$NextButton=_IEGetObjById($oIE,"cnbNextButton")
_IEAction($NextButton,"click")
;===================安装向导完成===============
_IELoadWait($oIE)
;点击继续
$NextButton=_IEGetObjById($oIE,"cnbNextButton")
_IEAction($NextButton,"click")
前几天有群友寻求VM10版本的自动安装,
经过分析发现VM10的安装界面是网页的,所以就有了这帖子. |