Jump to content
Sign in to follow this  
MrChris

RunWait then a MsgBox before RunWait closes?

Recommended Posts

MrChris

I am running a command via the RunWait function and was hoping to have a MsgBox popup after the RunWait function is executed but before it is closed. The MsgBox will have something like "The program is running in the systray. The script will continue when the tray app is closed."

Make sense?

Thanks,

MrChris

Share this post


Link to post
Share on other sites
Vivvic

Ok, assuming you want to run a program with Runwait, and before the program finishes you want a message box to pop up. To my knowlage (which isnt that extensive at all) RunWait pauses the script until the program finishes. I think you can however do something like the following script.

Run("Program.exe")
MsgBox(0, "Message", "The program is running in the systray. The script will continue when the tray app is closed."
WinWaitClose("TITLE of your program")

EDIT: Could be wrong though.

Edited by Vivvic

[quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote]

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.