🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #144163

Re: [Dialog] help needed with scripts

#144163
From: MLC
Date: Wed, 25 Feb 2004 12:33
34 lines
2587 bytes
mercoledì 25/feb/2004 _Jeff Relf_ ha scritto:

> Hi MLC,
>   Re:  Re your script that 
>   runs in the background checking for replies,
>   and how it can't tell when the downloads are finished.
> 
> Is there a  " process ended "  message somewhere ?
> 
> This probably won't help,
>   but here's how I wait for a process to finish in C,
> 
> PROCESS_INFORMATION Thread;  STARTUPINFO s;
> 
> CreateProcess( 0, Command_Line, 0,0,0,0,0,0, &s, &Thread );
> 
> DWORD Thread_Status; 
>   while( 
>     GetExitCodeProcess( Thread.hProcess , & Thread_Status ) 
>     && Thread_Status == STILL_ACTIVE )
>   { 
>     while( PeekMessage( & Msg, 0,0,0,0 ) ) 
>       DispatchMessage( & Msg );
>     Sleep(300); 
>   }
>   Sleep(300);

Thanks Jeff, but I think that the script language doesn't allow it, at least
I don't know.
-- 
Maria Luisa C - 25/02/04 13.30.15, here.
Le FAQ italiane del newsreader 40tude Dialog
http://fido.altervista.org/Dialog/faq.html
http://www.lillathedog.net/dialog/faq.html
Technical Details
Message-ID: <ox6d26wveq87.dlg@ID-187316.user.uni-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!fu-berlin.de!uni-berlin.de!ppp-17-199.26-151.libero.IT!not-for-mail
References: <1mops9bm8bjs5.dlg@ID-187316.user.uni-berlin.de> <c1f98k.8a.1@czy.konie.mnie.slysza> <6e80ibdpsm5s.dlg@ID-187316.user.uni-berlin.de> <c1fihj.81.1@czy.konie.mnie.slysza> <ngkmlovt4m4e.dlg@ID-187316.user.uni-berlin.de> <1tffsilp76wgt$.dlg@ID-187316.user.uni-berlin.de> <mol5j968vmn3$.dlg@x.Jeff.Relf> <l7vvwohdulfu.dlg@ID-187316.user.uni-berlin.de> <18kqouppuno6q.dlg@x.Jeff.Relf>

Show Full Headers
Complete Article Headers
Message-ID: <ox6d26wveq87.dlg@ID-187316.user.uni-berlin.de>
Subject: Re: [Dialog] help needed with scripts
Date: Wed, 25 Feb 2004 13:33:10 +0100
From: MLC <maluc52@yahoo.it>
References: <1mops9bm8bjs5.dlg@ID-187316.user.uni-berlin.de> <c1f98k.8a.1@czy.konie.mnie.slysza> <6e80ibdpsm5s.dlg@ID-187316.user.uni-berlin.de> <c1fihj.81.1@czy.konie.mnie.slysza> <ngkmlovt4m4e.dlg@ID-187316.user.uni-berlin.de> <1tffsilp76wgt$.dlg@ID-187316.user.uni-berlin.de> <mol5j968vmn3$.dlg@x.Jeff.Relf> <l7vvwohdulfu.dlg@ID-187316.user.uni-berlin.de> <18kqouppuno6q.dlg@x.Jeff.Relf>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!npeer.de.kpn-eurorings.net!fu-berlin.de!uni-berlin.de!ppp-17-199.26-151.libero.IT!not-for-mail
Newsgroups: news.software.readers
Organization: none
Lines: 34
Reply-To: mlcald@msn.com
NNTP-Posting-Host: ppp-17-199.26-151.libero.it (151.26.199.17)
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de 1077712400 53773786 I 151.26.199.17 ([187316])
User-Agent: 40tude_Dialog/2.0.10.1it (1e97dd7c.479.485)
X-Face: (O6iue.kQNT|`uU@vD|.WKC^TF~T<TIA,\;
 B'27kz>*1Mk|Z6U!2EKSFc')'xVk]t'/3<,#
 #L+5&I{L<!Q%p[k|+%mSCT"e2\4JnDJhbQ,`EA4fu$q0q>{7W?\gQeqD@*lzcR0~:9Zzn!1yCRb