drwoobie Posted April 27, 2006 Share Posted April 27, 2006 (edited) Hello all, Found AutoIt through the Dell De-crapifier. I am trying to automate an install (in this case Front Page) The install itself works fine, but after the script is done, the process is still running. I discovered how to turn off the tray Icon, but it is easier to turn off through the tray icon instead of going into task manager. I did look at autoit 1-2-3, but did not see my answer. So here is what I have so far: expandcollapse popupRun("SETUPFPG.EXE") WinWaitActive("Microsoft Office FrontPage 2003","Product Key") send("xxxxxxxxxxxxxxxxxxxxxxxxx") send("!n") WinWaitActive("Microsoft Office FrontPage 2003","User Information") send("!U") send("username") send("!i") send("na") send("!o") Send("company") send("{ENTER}") WinWaitActive("Microsoft Office FrontPage 2003","EULA") send("{SPACE}") send("{ENTER}") WinWaitActive("Microsoft Office FrontPage 2003","Type of Installation") send("{ENTER}") WinWaitActive("Microsoft Office FrontPage 2003","Summary") send("{ENTER}") WinWaitActive("Microsoft Office FrontPage 2003","Setup Complete") send("{TAB}") send("{TAB}") send("{TAB}") send("{SPACE}") send("{ENTER}") WinWaitActive("Microsoft Office FrontPage 2003","Reboot Screen") Send("!n") ProcessClose ("Deploy_FrontPage.exe") Some advice on where to look would be greatly appreciated. ps. Would using ProcessWaitClose do the trick? Thanks! Edited April 27, 2006 by drwoobie Thanks,drwoobieMy Projects:Network Drive Profile Tool Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 27, 2006 Share Posted April 27, 2006 HI, if your script really comes at its end, try just to put Exit(0) at end. So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
drwoobie Posted April 27, 2006 Author Share Posted April 27, 2006 HI,if your script really comes at its end, try just to put Exit(0) at end.So long,MegaThanks Mega, but it did not terminate the process.I tried:replacing the line "ProcessClose ("Deploy_FrontPage.exe")" with "Exit(0)"and I tried simply adding the Exit(0) satement after the ProcessClose command, and that did not work either.ProcessClose ("Deploy_FrontPage.exe") Exit(0)Other ideas? Thanks,drwoobieMy Projects:Network Drive Profile Tool Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 27, 2006 Moderators Share Posted April 27, 2006 Thanks Mega, but it did not terminate the process.I tried:replacing the line "ProcessClose ("Deploy_FrontPage.exe")" with "Exit(0)"and I tried simply adding the Exit(0) satement after the ProcessClose command, and that did not work either.ProcessClose ("Deploy_FrontPage.exe") Exit(0)Other ideas?Run this:expandcollapse popupRun("SETUPFPG.EXE") ToolTip('Setupfpg has commenced', 0, 0) WinWaitActive("Microsoft Office FrontPage 2003","Product Key") send("xxxxxxxxxxxxxxxxxxxxxxxxx") send("!n") ToolTip('Product Key done', 0, 0) WinWaitActive("Microsoft Office FrontPage 2003","User Information") send("!U") send("username") send("!i") send("na") send("!o") Send("company") send("{ENTER}") ToolTip('User Information done', 0, 0) WinWaitActive("Microsoft Office FrontPage 2003","EULA") send("{SPACE}") send("{ENTER}") ToolTip('EULA done', 0, 0) WinWaitActive("Microsoft Office FrontPage 2003","Type of Installation") send("{ENTER}") ToolTip('Type of Installation done', 0, 0) WinWaitActive("Microsoft Office FrontPage 2003","Summary") send("{ENTER}") ToolTip('Summary done', 0, 0) WinWaitActive("Microsoft Office FrontPage 2003","Setup Complete") send("{TAB}") send("{TAB}") send("{TAB}") send("{SPACE}") send("{ENTER}") ToolTip('Setup Complete Done', 0, 0) WinWaitActive("Microsoft Office FrontPage 2003","Reboot Screen") Send("!n") ToolTip('Reboot Screen done', 0, 0) Exit 0;This is what th.Meger was saying... ProcessClose ("Deploy_FrontPage.exe")And when your done, it should just exit, if it is hanging on a window, this should tell you. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
drwoobie Posted April 27, 2006 Author Share Posted April 27, 2006 Run this:Run("SETUPFPG.EXE") ... Exit 0;This is what th.Meger was saying... ProcessClose ("Deploy_FrontPage.exe")And when your done, it should just exit, if it is hanging on a window, this should tell you.Thanks. I will try your suggestions in the morning and post results. Thanks,drwoobieMy Projects:Network Drive Profile Tool Link to comment Share on other sites More sharing options...
drwoobie Posted April 28, 2006 Author Share Posted April 28, 2006 Run this:Run("SETUPFPG.EXE") ToolTip('Setupfpg has commenced', 0, 0) ..... ToolTip('Setup Complete Done', 0, 0) WinWaitActive("Microsoft Office FrontPage 2003","Reboot Screen") Send("!n") ToolTip('Reboot Screen done', 0, 0) Exit 0;This is what th.Meger was saying... ProcessClose ("Deploy_FrontPage.exe")And when your done, it should just exit, if it is hanging on a window, this should tell you.Ahhh ha! Thanks smoke. The process halts at "Setup complete done" and never makes it to "Reboot screeen done".Now I just have to figure out what behavior to watch for. Thanks,drwoobieMy Projects:Network Drive Profile Tool Link to comment Share on other sites More sharing options...
drwoobie Posted April 28, 2006 Author Share Posted April 28, 2006 Ahhh ha! Thanks smoke. The process halts at "Setup complete done" and never makes it to "Reboot screeen done".Now I just have to figure out what behavior to watch for.DING DING DING.Resolved. The script was hanging here:WinWaitActive("Microsoft Office FrontPage 2003","Setup Complete") send("{TAB}") send("{TAB}") send("{TAB}") send("{SPACE}") send("{ENTER}") ToolTip('Setup Complete Done', 0, 0) [color=#FF0000]WinActive[/color]("Microsoft Office FrontPage 2003","Reboot Screen") Send("!n") ToolTip('Reboot Screen done', 0, 0)I did some rtfm of the description of WinWaitActive:"Pauses execution of the script until the requested window is active."And since this scipt lauches IE to go to the MS office update page, the final page was being shoved to the background. Changed the last line from WinWaitActive to WinActive, and that took care of it.Thanks for the troubleshooting help smoke_n! Thanks,drwoobieMy Projects:Network Drive Profile Tool Link to comment Share on other sites More sharing options...
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