mIRC Home    About    Download    Register    News    Help

Print Thread
#189424 07/11/07 03:52 PM
Joined: Oct 2003
Posts: 110
D
Vogon poet
OP Offline
Vogon poet
D
Joined: Oct 2003
Posts: 110
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=186064
This 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=188895
This 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

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
This may be of help: exec.dll by argv. You can capture results without a window being visible.

Joined: Oct 2003
Posts: 110
D
Vogon poet
OP Offline
Vogon poet
D
Joined: Oct 2003
Posts: 110
Thanks, this is an awesome dll. Works perfectly!


Link Copied to Clipboard