🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #144275

Re: [Dialog] help needed with scripts

#144275
From: Barry Jones
Date: Sat, 28 Feb 2004 21:04
48 lines
3705 bytes
On Sat, 28 Feb 2004 16:57:46 +0100, MLC wrote:

> sabato 28/feb/2004 _matija_ ha scritto:
> 
>>  well, i never worked with atoms too, so that makes two of us ;)
>> 
>>      basicly, they can be used as little pieces of information that
>>      can be shared globally across the OS; so, you'd need to set an
>>      atom somewhere and check it somewhere else. i don't know if this
>>      will be of any use of you, my mind is at another place the last
>>      few days, so i don't know if i understood what you were trying
>>      to accomplish in the first place...
> 
> It's seems to me a powerful tool to use, maybe I'll find a way to get what I
> want with it. I need time, however: often the solutions come to me while I'm
> sleeping :)
> 
> In short, this is what I'm trying to do: when the messages arrive, in
> OnBeforeSavingMessage I save some information from each of them in a file;
> this information is read and shown in a Form by a custom script PostShow.
> I can put PostShow on a button and it works very well, but I'd like also to
> have it done automatically, with a timer, so if you're working on other
> things, with Dialog minimized, you get a popup window with the list of the
> messages that are replies to you, or replies to replies,..., depending on
> the "depth" level you've chosen.
> I've already done all that, the only problem is that, being my timer2
> procedure this:
> 
> ADo('GetNewHeadersInSubscribedGroups');   
> ADo('Script_PostShow');
> 
> the popup window I get with PostShow shows the messages of the preceding
> timer2 event, because ADo('Script_PostShow') is triggered while
> ADo('GetNewHeadersInSubscribedGroups') is still executing.   
> 
> Now I'm thinking to put an atom somewhere...
> ...still don't know where... :-/

I don't see how that will help.

What are you doing with timer1? Could it be made available? If so, put a
sleep command in the OnStartup procedure between the two timer
initializations, with the same timer interval for both. Let timer 1 do
action 1 and timer 2 do action 2. If you used timer 1 for something else,
try to combine it with this use of the timer.

-- 
Barry
Technical Details
Message-ID: <ftjtroqrk52m.1rjusnlw45skn.dlg@40tude.net>
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!elnk-atl-nf1!newsfeed.earthlink.net!nx02.iad01.newshosting.com!newshosting.com!news3.optonline.net!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!twister.nyc.rr.com.POSTED!not-for-mail
References: <1mops9bm8bjs5.dlg@ID-187316.user.uni-berlin.de> <16n122oojxuel$.dlg@shpongle.604> <nyglx8d9lyfk$.dlg@ID-187316.user.uni-berlin.de> <1140be4el222s$.dlg@shpongle.604> <h7ndcuuku3ty.dlg@ID-187316.user.uni-berlin.de>

Show Full Headers
Complete Article Headers
Message-ID: <ftjtroqrk52m.1rjusnlw45skn.dlg@40tude.net>
Subject: Re: [Dialog] help needed with scripts
Date: Sat, 28 Feb 2004 21:04:17 GMT
From: Barry Jones <bjones01@acm.org>
References: <1mops9bm8bjs5.dlg@ID-187316.user.uni-berlin.de> <16n122oojxuel$.dlg@shpongle.604> <nyglx8d9lyfk$.dlg@ID-187316.user.uni-berlin.de> <1140be4el222s$.dlg@shpongle.604> <h7ndcuuku3ty.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!elnk-atl-nf1!newsfeed.earthlink.net!nx02.iad01.newshosting.com!newshosting.com!news3.optonline.net!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!twister.nyc.rr.com.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.10.1 (33e02558.66.508)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-face: e2NTUmwcx%.Md4?`$1jU@-!vtxbi{zN[q/+?#"<w*A8,NY71x\r^GqcZZwXuVFu.oU/YWTK
 Mt0N?81V\}A,3,D^A-0+@PwfIy4KK07gxIu=&)mj$*<O8`%&FQ`2oy>6:s8w&sb**YH*);
 D%K{h4+I B?2ro{%\t*%O
Lines: 48
NNTP-Posting-Host: 24.161.97.192
X-Complaints-To: abuse@rr.com
X-Trace: twister.nyc.rr.com 1078002257 24.161.97.192 (Sat,
NNTP-Posting-Date: Sat, 28 Feb 2004 16:04:17 EST
Organization: Road Runner - NYC