激活当前窗口安装驱动,适用于大多数驱动安装
Run("C:\softpaq\Download\" & $CmdLine[1] & " -s") #接受一个参数
$i = 0
While $i <= 20
$i = $i + 1
$title = WinGetHandle("[ACTIVE]") #激活当前窗口
Select #选择点击窗口按钮
Case ControlClick($title,"","&Next >")
Sleep(200)
Case ControlClick($title,"","&Next")
Sleep(200)
Case ControlClick($title,"","&Remove")
Sleep(200)
Case ControlClick($title,"","&Yes")
Sleep(200)
Case ControlClick($title,"","Install Intel Unite")
Sleep(200)
Case ControlClick($title,"","&Install")
Sleep(200)
Case ControlClick($title,"","&Finish")
Sleep(200)
Case ControlClick($title,"","Finish")
Sleep(200)
Case ControlClick($title,"","OK")
Sleep(200)
Case ControlClick($title,"","&Restart Now")
Sleep(200)
Case Else
ControlClick($title,"","&OK")
EndSelect
Sleep(3000)
WEnd
-----------------------------------
把以上脚本打包为一个(onetestRun.exe)的
运行(cmd "/c" ".\Au3Install\onetestRun.exe sp1234"),sp1234就是传给脚本的参数。