The waitflag parameter in MX_SHELLEX (MIAMEX 96) and TAB(-10,AG_SHLEXEC) has been expanded to contain the following options:
Value |
Description |
---|---|
0 |
No wait. Focus will most likely remain on launched app. |
1 |
Wait until launched app exits before returning. |
2 |
Don't wait, but try to get the focus back. |
Note that waiting (1) doesn't necessarily wait until the launched app exits. It only waits until the app "signals", which can mean different things for different applications. (It will wait for A-Shell).
Option 2 will now get the focus and keep getting it (if necessary) over a period of 4 seconds, in order to deal with difficult apps (like image viewers) that may take a couple of seconds to display the image and then grabs the focus for itself.