Sekhar 0 Posted June 4, 2013 Share Posted June 4, 2013 Hello Experts, Iam trying use the following code running installables one by one. Runwait("abc.exe") Runwait("def.exe") Runwait("xyz.exe") The problem iam having here is that once i run the script ,abc.exe is executing perfectly fine. But it is leaving a Porcess called abc.exe in Taskmanager and the Script is getting paused meaning not moving to next line and doing the def.exe execution. Is there any way i can kill the process after first installation so that second installation starts immedately after completion of first installation. or any other best methods? I tried this but no luck Runwait("abc.exe") Processclose("abc.exe") Runwait("def.exe") Runwait("xyz.exe") Any suggestion would be of great help. Best Regards, Sekhar Link to post Share on other sites
FireFox 261 Posted June 4, 2013 Share Posted June 4, 2013 (edited) Hi, The RunWait function as stated in the helpfile, waits for the program to close. If the program does not close automatically, you need to use the Run function and close it when you want using the WinWait/Send/ControlSend functions. Br, FireFox. Edited June 4, 2013 by FireFox OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDFMy Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme makerMy Examples : Capture tool | IP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewerMy Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control Link to post Share on other sites
Sekhar 0 Posted June 4, 2013 Author Share Posted June 4, 2013 Hi, Iam completely new and having little knowlegde,can you explian more clear? Thanks Link to post Share on other sites
Solution FireFox 261 Posted June 4, 2013 Solution Share Posted June 4, 2013 (edited) Well, the schema is the following :1. Run the setup2. Wait for it to finish3. Close it;1 Run(... ;setup path ;2 WinWait("Setup - Finished") ;your setup title (if this last changes its title when finished) ;3 ControlClick(... ;close button ;or ProcessClose(... ;setup pidBr, FireFox. Edited June 4, 2013 by FireFox Sekhar 1 OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDFMy Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme makerMy Examples : Capture tool | IP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewerMy Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control Link to post Share on other sites
Sekhar 0 Posted June 4, 2013 Author Share Posted June 4, 2013 Thanks, I wrote like this for the command but it did not work, It is getting stopped at the window ,you can see in the attachment Run(D:setup.exe") WinWait("ADW165_KIT2_SPC - InstallShield Wizard", "InstallShield Wizard Completed") WinActivate("ADW165_KIT2_SPC - InstallShield Wizard", "InstallShield Wizard Completed") Send("{ENTER}") Processclose("setup.exe) Please see the image . Link to post Share on other sites
FireFox 261 Posted June 4, 2013 Share Posted June 4, 2013 Use the AutoIt Window Info tool (CTRL+F6 hotkey in SciTE) and try with the ControlGetText function.If ControlGetText( ... = "... Completed" Then EndIfBr, FireFox. OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDFMy Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme makerMy Examples : Capture tool | IP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewerMy Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control Link to post Share on other sites
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