This has been discussed quite a few times in here, from the searches I did. However none of the solution I found allowed to capture the output while running the external command/process minimized.
I have been using the following for a few years:
Write a bat file with the command, and a wrapper that sends back the original chan/nick, and cid, as well as the output using a signaling program. However that is quite dirty, forces to writing external files, and having a splitted(since it's asynchronous and separated waits) answer function.
I found the following posts about this:
https://forums.mirc.com/ubbthreads.php?ubb=showflat&Board=5&Number=186064This one is a bit dodgy too, as it uses the clipboard and a timer... which does not seem like a proper way to do it...
https://forums.mirc.com/ubbthreads.php?ubb=showflat&Board=5&Number=188895This one actually is very well scripted, using com and wrapping, however it uses the exec function which does not allow for starting a program minimized.
I tried modifying the com version(second one) but it did not come out very clean with trying to redirect output using wshell.Script's run function... So if anyone has a solution, I'd be glad to hear about it.
(Note: I do not mind a blocking call since I run extremely fast processes most of the time)
Thanks for any suggestions,
DeathWolf