Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   catch realtime output from dos console (http://forums.winamp.com/showthread.php?t=269976)

Brummelchen 22nd April 2007 16:02

catch realtime output from dos console
 
Is that possible somehow?

so NOT the result after action - the result meanwhile action...

kichik 22nd April 2007 18:26

ExecDos might be able to do that. nsExec currently doesn't support it.

Brummelchen 22nd April 2007 19:23

sorry - not with execdos - it only offers a logfile after action.
my app creates a logfile during action but i was asked for
a bar like in "inetc" or "Nzipdll".
duration is depending on amount of files and the bar should
be relativ to this. app is writing one line for each file.

Afrow UK 22nd April 2007 20:14

I was after this same thing once upon a time but I couldn't find a solution. Even for Half-Life 1 command-line map compilers Valve could only read output in WorldCraft/Hammer on a line by line basis.

Stu

Takhir 23rd April 2007 10:29

ExecDos with /NOUNLOAD /ASYNC /TOSTACK options puts every output line to NSIS stack instead of log file and does this during application execution. Create loop and update progress bar basing on Pop result. The only problem you should solve for yourself is to find execution end. For progress bar you can use nxs (which I know is stable) or any other plug-in.
And I am not sure how safe is mutual access to NSIS stack...

Brummelchen 23rd April 2007 23:48

i'll give it a try - thx
i hope that nsis wont grab much cpu power while looping...

demiller9 24th April 2007 00:36

It will unless you add a 'Sleep' statement! - Section 4.9.7.7

Brummelchen 24th April 2007 14:08

i know that cause i have other programs running some calculations and they freeze my computer a little bit during that.


All times are GMT. The time now is 18:08.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.