AutoIt を使用してインストーラーを自動化していRun()
ます。
最初、インストーラーのNext
ボタンは無効になっています (この時点でのクラスは ですButton3
)。Next
ボタンが有効になると、クラスが に変わりますButton1
。このボタンをターゲットにする方法がわかりません:
WinWait("AirWatch - Installation Wizard", "")
If Not WinActive("AirWatch - Installation Wizard", "") Then WinActivate("AirWatch - Installation Wizard", "")
WinWaitActive("AirWatch - Installation Wizard", "")
While Not ControlCommand('AirWatch - Installation Wizard', '', 'Button3', 'IsEnabled', '')
Sleep(500)
WEnd
ControlClick('AirWatch - Installation Wizard', '&Next >', '[ID:17696]')
;Note: Text: &Next >
If Not ControlCommand('AirWatch - Installation Wizard', '', 'Button1', 'IsEnabled', '') Then
Do
Sleep(10)
Until ControlCommand('AirWatch - Installation Wizard', '', 'Button1', 'IsEnabled', '')
EndIf