Jump to content

MostafaMohamed

Members
  • Posts

    7
  • Joined

  • Last visited

MostafaMohamed's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. thank you all for ur answer not work , I will keep trying
  2. 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
  3. thank u for ur help i changed it to WinWait("Open","Look &in:") If Not WinActive("Open","Look &in:") Then WinActivate("Open","Look &in:") WinWaitActive("Open","Look &in:") Send("C:vdf_fusebundle.zip") that worked thank u so much
  4. hello ppl i want to use autoit to type in the location showed in the pic attached im tring to send any date but i cant my script is : WinWait("Open","Look &in:") If Not WinActive("Open","Look &in:") Then WinActivate("Open","Look &in:") WinWaitActive("Open","Your computer is not secure!") Send("C:\vdf_fusebundle.zip") the autoit windows information is : >>>> Window <<<< Title: Open Class: #32770 Position: 65, 66 Size: 561, 410 Style: 0x96C820C4 ExStyle: 0x00010501 Handle: 0x00090114 >>>> Control <<<< Class: Instance: ClassnameNN: Name: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: >>>> Mouse <<<< Position: 504, 79 Cursor ID: 0 Color: 0xBDB6BD >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< Look &in: My Documents FolderView File &name: Files of &type: VDF Update File (vdf_fusebundle.zip) &Open Cancel >>>> Hidden Text <<<< Open as &read-only &Help the program that i manage to send data to is avira antivirus as shown please help me
  5. hi im using autoit to manually update avira antivirus first : autoit cant recored anything from avire ( i think bc avira folder id read only ) so that i tried to make my own autoit commands my code is : Run('C:\Program Files\Avira\AntiVir Desktop\avcenter.exe') WinWait("Avira Free Antivirus","Your computer is not secure!") If Not WinActive("Avira Free Antivirus","Your computer is not secure!") Then WinActivate("Avira Free Antivirus","Your computer is not secure!") WinWaitActive("Avira Free Antivirus","Your computer is not secure!") Send("{ALTDOWN}") Send("{U}") Sleep(200) Send("{M}") Send("{ALTUP}") Sleep(200) WinWait("Open","ComboBox") If Not WinActive("Open","ComboBox") Then WinActivate("Open","ComboBox") WinWaitActive("Open","ComboBox") Send("C:\vdf_fusebundle.zip") Send("vdf_fusebundle.zip") Send("{ENTER}") WinWait("Avira Free Antivirus","Your computer is not secure!") If Not WinActive("Avira Free Antivirus","Your computer is not secure!") Then WinActivate("Avira Free Antivirus","Your computer is not secure!") WinWaitActive("Avira Free Antivirus","Your computer is not secure!") Send("{ALTDOWN}") Send("{F4}") Send("{ALTUP}") but that code stope at the browse window and didnt select the file can you help please ?
×
×
  • Create New...