Jump to content

Recommended Posts

Posted

Hello,

Autoit newb here! I am trying to launch 2 different apps, in any order, without Autoit closing after script launch. I have 2 different vbscripts I am launching. One compiles a .WSI, and the other installs the MSI. I can launch either one successfully, but the GUI closes. I want to click either the BUILD or RUN button and run the respective script, but have the GUI still open.

I modified the app launcher script available on this site with the following:

Func APP_1(); Build and/or Install MSI

If $msg = $BUILD Then

RunWait("wscript.exe c:\compile.vbs", "")

Else

EndIf

If $msg = $RUN Then

RunWait("wscript.exe c:\install-MSI.vbs", "")

Else

Endif

EndFunc

Any ideas?

Thx

Posted

I'm lost. If you are using an AutoIT GUI, where are all your GUI commands? If you're using the default GUI mode, you will need everything to be in a loop..or it is only going to check the conditions once and quit.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...