自动化Microsoft SDK for Java 4.0安装程序

问题描述 投票:0回答:1

我正在尝试使用AutoIt为我的一个遗留项目安装Microsoft SDK for Java 4.0。

enter image description here

在第一个设置窗口中有一个小的位置,我需要激活该屏幕并选择回车。但它没有发生。以下是我使用的代码:

Run("SDKJava40.exe")
Sleep(500)

WinWait("Microsoft SDK for Java 4.0 Setup", "Welcome to the")
WinActivate("Microsoft SDK for Java 4.0", "Welcome to the")
Sleep(1000)
Send("{ENTER}")

WinWait("Software License Agreement", "Please read the following")
WinActivate("Software License Agreement", "Please read the following")
Sleep(1000)
Send("{ENTER}")
automation install autoit
1个回答
0
投票

以下是您可以尝试的事项:

  1. 检查AutoIt v3窗口信息以获取确切的窗口标题和文本。
  2. 在顶部添加管理员权限#RequireAdmin
  3. 尝试使用ControlClick
© www.soinside.com 2019 - 2024. All rights reserved.