pcjames Posted June 4, 2009 Posted June 4, 2009 (edited) I've been working on a unattended install of firefox and addons, which I need some help with! I'll post my script in 3 parts, Part 1 - Firefox Install (which I have no problems with) Part 2 - Addons (downloading & Installing) and it works most of the time, a few times when the script is typing my web addresses it may type "https" in the address bar then jumps to google search page bar (Mozilla Firefox start page) and finishes and naturally that doesn't work and I'm sure you all can give me some pointers of how to do it better. Part 3 - I'm trying to configure my plugins and despite reading the documentation, searching the forums and the internet... well I'm stuck on this and can't get any further, I need a lesson! Part 1 - Install expandcollapse popup; Install Firefox RunWait(@ScriptDir & '\Firefox Setup 3.0.10.exe \-ms') ; Set Defaults RunWait('C:\Program Files\Mozilla Firefox\firefox.exe') WinWait("Import Wizard","") If Not WinActive("Import Wizard","") Then WinActivate("Import Wizard","") Send("{DOWN}{TAB}{ENTER}") WinWait("Default Browser","") If Not WinActive("Default Browser","") Then WinActivate("Default Browser","") Send("{TAB 2}{SPACE}{ENTER}") WinWait("Welcome to Firefox - Mozilla Firefox","") If Not WinActive("Welcome to Firefox - Mozilla Firefox","") Then WinActivate("Welcome to Firefox - Mozilla Firefox","") ; Quit Firefox to remove Firefox First Run Send("{ALT}{UP 2}{ENTER}") WinWait("Quit Firefox","") If Not WinActive("Quit Firefox","") Then WinActivate("Quit Firefox","") Send("{TAB}{ENTER}") SLEEP(5000) ; Set Downloads to "Always ask me where to save files" Run('C:\Program Files\Mozilla Firefox\firefox.exe') WinWaitActive("Mozilla Firefox Start Page - Mozilla Firefox","") If Not WinActive("Mozilla Firefox Start Page - Mozilla Firefox","") Then WinActivate("Mozilla Firefox Start Page - Mozilla Firefox","") Send("{ALT}{RIGHT 5}{UP 2}{ENTER}") WinWaitActive("Options","") If Not WinActive("Options","") Then WinActivate("Options","") Send("{TAB 8}{DOWN}{TAB 2}{ENTER}") Send("{ALT}{UP 2}{ENTER}") ProcessClose("firefox.exe")oÝ÷ Øö«·`vìv'x'²Ö¥)àjëh×6Run('C:\Program Files\Mozilla Firefox\firefox.exe') ; Install Addons ; 1-Click Weather WinWaitActive("Mozilla Firefox Start Page - Mozilla Firefox","") If Not WinActive("Mozilla Firefox Start Page - Mozilla Firefox","") Then WinActivate("Mozilla Firefox Start Page - Mozilla Firefox","") Send("{ALT}{DOWN 3}{ENTER}") Send("https://addons.mozilla.org/en-US/firefox/downloads/latest/1035/addon-1035-latest.xpi") Send("{ENTER}") WinWaitActive("Software Installation","") If Not WinActive("Software Installation","") Then WinActivate("Software Installation","") SLEEP(1000) Send("{TAB 2}") SLEEP(500) Send("{ENTER}") SLEEP(15000) ; Adblock Plus WinActivate("Mozilla Firefox Start Page - Mozilla Firefox","") Send("{ALT}{DOWN 3}{ENTER}") Send("https://addons.mozilla.org/en-US/firefox/downloads/latest/1865/addon-1865-latest.xpi") Send("{ENTER}") WinWaitActive("Software Installation","") If Not WinActive("Software Installation","") Then WinActivate("Software Installation","") SLEEP(1000) Send("{TAB 2}") SLEEP(500) Send("{ENTER}") SLEEP(15000) ; Colorful Tabs WinActivate("Mozilla Firefox Start Page - Mozilla Firefox","") Send("{ALT}{DOWN 3}{ENTER}") Send("https://addons.mozilla.org/en-US/firefox/downloads/latest/1368/addon-1368-latest.xpi") Send("{ENTER}") WinWaitActive("Software Installation","") If Not WinActive("Software Installation","") Then WinActivate("Software Installation","") SLEEP(1000) Send("{TAB 2}") SLEEP(500) Send("{ENTER}") SLEEP(15000) ; Download Statusbar WinActivate("Mozilla Firefox Start Page - Mozilla Firefox","") Send("{ALT}{DOWN 3}{ENTER}") Send("https://addons.mozilla.org/en-US/firefox/downloads/latest/26/addon-26-latest.xpi") Send("{ENTER}") WinWaitActive("Software Installation","") If Not WinActive("Software Installation","") Then WinActivate("Software Installation","") SLEEP(1000) Send("{TAB 2}") SLEEP(500) Send("{ENTER}") SLEEP(15000) ; IE Tab WinActivate("Mozilla Firefox Start Page - Mozilla Firefox","") Send("{ALT}{DOWN 3}{ENTER}") Send("https://addons.mozilla.org/en-US/firefox/downloads/latest/1419/platform:5/addon-1419-latest.xpi") Send("{ENTER}") WinWaitActive("Software Installation","") If Not WinActive("Software Installation","") Then WinActivate("Software Installation","") SLEEP(1000) Send("{TAB 2}") SLEEP(500) Send("{ENTER}") SLEEP(15000) ; NoSquint WinActivate("Mozilla Firefox Start Page - Mozilla Firefox","") Send("{ALT}{DOWN 3}{ENTER}") Send("https://addons.mozilla.org/en-US/firefox/downloads/latest/2592/addon-2592-latest.xpi") Send("{ENTER}") WinWaitActive("Software Installation","") If Not WinActive("Software Installation","") Then WinActivate("Software Installation","") SLEEP(1000) Send("{TAB 2}") SLEEP(500) Send("{ENTER}") SLEEP(15000) ; NoScript WinActivate("Mozilla Firefox Start Page - Mozilla Firefox","") Send("{ALT}{DOWN 3}{ENTER}") Send("https://addons.mozilla.org/en-US/firefox/downloads/latest/722/addon-722-latest.xpi") Send("{ENTER}") WinWaitActive("Software Installation","") If Not WinActive("Software Installation","") Then WinActivate("Software Installation","") SLEEP(1000) Send("{TAB 2}") SLEEP(500) Send("{ENTER}") SLEEP(15000) ; Tab Mix Plus WinActivate("Mozilla Firefox Start Page - Mozilla Firefox","") Send("{ALT}{DOWN 3}{ENTER}") Send("https://addons.mozilla.org/en-US/firefox/downloads/latest/1122/addon-1122-latest.xpi") Send("{ENTER}") WinWaitActive("Software Installation","") If Not WinActive("Software Installation","") Then WinActivate("Software Installation","") SLEEP(1000) Send("{TAB 2}") SLEEP(500) Send("{ENTER}") SLEEP(15000) ; Toolbar Buttons WinActivate("Mozilla Firefox Start Page - Mozilla Firefox","") Send("{ALT}{DOWN 3}{ENTER}") Send("https://addons.mozilla.org/en-US/firefox/downloads/latest/2377/addon-2377-latest.xpi") Send("{ENTER}") WinWaitActive("Software Installation","") If Not WinActive("Software Installation","") Then WinActivate("Software Installation","") SLEEP(1000) Send("{TAB 2}") SLEEP(500) Send("{ENTER}") SLEEP(15000) ; Close Firefox WinActivate("Mozilla Firefox Start Page - Mozilla Firefox","") Send("{ALT}{UP 2}{ENTER}") SLEEP(5000) ; Start Firefox Run('C:\Program Files\Mozilla Firefox\firefox.exe') ; Set Tab Mix to use built in session manager WinWaitActive("TabMix Session Manager","") If Not WinActive("TabMix Session Manager","") Then WinActivate("TabMix Session Manager","") Send("{TAB 2}{ENTER}") ProcessClose("firefox.exe") SLEEP(5000) Run('C:\Program Files\Mozilla Firefox\firefox.exe') ; Configure 1-Click Weather WinWaitActive("Firefox - Restore Previous Session","") If Not WinActive("Firefox - Restore Previous Session","") Then WinActivate("Firefox - Restore Previous Session","") Send("{TAB}{ENTER}") WinWaitActive("Mozilla Firefox Start Page - Mozilla Firefox","") If Not WinActive("Mozilla Firefox Start Page - Mozilla Firefox","") Then WinActivate("Mozilla Firefox Start Page - Mozilla Firefox","") SLEEP(2000) WinActivate("1-Click Weather","") Send("{TAB}") SLEEP(1500) Send("39702") SLEEP(1500) Send("{TAB 3}") SLEEP(1500) Send("{UP 2}") SLEEP(1500) Send("{TAB}") SLEEP(1500) Send("{ENTER}") ProcessClose("firefox.exe")oÝ÷ Øö«·}B'$Yæêí¯(§Ú'jø j×é^~ÙæîµÆ§ßÛ_«z-¡Ú"µ©Ý¶¬Èî²Ù²«-jÛ^h~f§Ë}ÚºÚ"µÍÚ[XÝ]]J ][ÝÓ[Þ[HYÞÝYÙHH[Þ[HYÞ ][ÝË ][ÝÉ][ÝÊBBÙ[ ][ÝÞÐS^ÔQÒ _^ÑÕÓß^ÑSTI][ÝÊBÛY L BÙ[ ][ÝÞÕP^ÑSTI][ÝÊBÚ[XÝ]]J ][ÝÌKPÛXÚÈÙX]][ÝË ][ÝÉ][ÝÊBÛÛÛÛXÚÈ ][ÝÌKPÛXÚÈÙX]][ÝË ][ÝÉ][ÝË ][ÝÖÐÓTÔÎ[Þ[UÚ[ÝÐÛÜÎÈSÕSÑNWI][ÝË ][ÝÛY ][ÝÈHÌÈÌÈ I'm trying to learn Autoit so be patient with me and thanks in advance for any help you can provide me with, Edited June 10, 2009 by pcjames
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now