im trying to make IDM silent install with autoit , the problem is :
IDM when starts sometimes start with a chose language screen which is something like this :
Case 1 :
and other times it starts with the normal setup screen which is :
Case 2 :
my problem is :
How to make autoit when the first screen appear Case 1 so the script go on with chose language process and if IDM just start with Case 2 the script then escape Case 1 and work with Case 2 .
I hope that im clear .
autoit script here installxp.au3
#region --- Au3Recorder generated code Start (v3.3.9.5 KeyboardLayout=00000409) ---
#region --- Internal functions Au3Recorder Start ---
Func _Au3RecordSetup()
Opt('WinWaitDelay',100)
Opt('WinDetectHiddenText',1)
Opt('MouseCoordMode',0)
Local $aResult = DllCall('User32.dll', 'int', 'GetKeyboardLayoutNameW', 'wstr', '')
If $aResult[1] <> '00000409' Then
MsgBox(64, 'Warning', 'Recording has been done under a different Keyboard layout' & @CRLF & '(00000409->' & $aResult[1] & ')')
EndIf
EndFunc
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
_AU3RecordSetup()
#endregion --- Internal functions Au3Recorder End ---
Run('idman.exe')
WinWait("IDM Setup","الرجاء تحديد اللغة ل")
If Not WinActive("IDM Setup","الرجاء تحديد اللغة ل") Then WinActivate("Internet Download Manager Installation Wizard","")
_WinWaitActivate("IDM Setup","الرجاء تحديد اللغة ل")
Send("{TAB}{DOWN}{DOWN}{DOWN}{DOWN}{TAB}{ENTER}")
_WinWaitActivate("Internet Download Manager Installation Wizard","")
Send("{ENTER}")
_WinWaitActivate("Please read IDM license","")
Send("{ENTER}")
_WinWaitActivate("Choose Destination Location","")
Send("{ENTER}")
_WinWaitActivate("Start Installation of Internet Download Manager","")
Send("{ENTER}")
_WinWaitActivate("Installation Complete","")
Send("{ENTER}")
Sleep(3000)
ProcessClose("IDMan.exe")
ProcessClose("IEMonitor.exe")
ProcessClose("IEXPLORE.exe")
#endregion --- Au3Recorder generated code End ---
thank you