🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #217630

Re: [Dialog] Collapsing threads VIA scripting

#217630
From: Sqwertz
Date: Tue, 11 Mar 2008 01:07
50 lines
2819 bytes
Karl-Heinz Rademacher <Karl-Heinz Rademacher <Raady@t-online.de>>
wrote:

> *Quote* [*Sqwertz*] schrieb am 10.03.2008
> 
>> I'm trying to collapse all threads when I enter a group.  I've put
>> the following code in the "OnGroupEntered" event, and it works when
>> I run it from within the script editor, but not when I enter the
>> group.
> 
>> BEGIN
>>    ADo ('CollapseAllThreads');
>> END.
> 
>> What am I missing?  When exactly is this event triggered?
> 
>> Perhaps I previously had this in a Message Script, but I don't
>> remember what action I had it bound to.
> 
>> I'd like to collapse all threads but the current, or collapse them
>> when I enter or exit a group.
> 
> You probably need this Script... (?)
> 
> program OnGroupEntered;
>  
> procedure OnGroupEntered(Groupname: string);
> begin
>   lockdisplay;
>   try
>     ADo('CollapseAllThreads');
>   finally
>     unlockdisplay;
>   end;
> end;
> 
> begin
> end. 

Either it was the lock/unlock display, or the 'procedure' block that
makes this work.  I guess I needed to hit "File -> New Script" to
see all the tags that it enters automatically when creating message
scripts.  Othewrwise I almost had it ;-)

I do remember my previous script had lock/unlock display in it.


Thanks.

-sw
Technical Details
Message-ID: <y6z60sscrbo2$.dlg@sqwertz.com>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!newsdst01.news.prodigy.net!prodigy.com!postmaster.news.prodigy.com!newssvr12.news.prodigy.net.POSTED!666d6152!not-for-mail
References: <h9yev7k6n39y$.dlg@sqwertz.com> <100308.234528.nsr.4.39.dlg@kaheira.albasani.net>

Show Full Headers
Complete Article Headers
Message-ID: <y6z60sscrbo2$.dlg@sqwertz.com>
Subject: Re: [Dialog] Collapsing threads VIA scripting
Date: Tue, 11 Mar 2008 01:07:37 GMT
From: Sqwertz <swertz@cluemail.compost>
References: <h9yev7k6n39y$.dlg@sqwertz.com> <100308.234528.nsr.4.39.dlg@kaheira.albasani.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!newsdst01.news.prodigy.net!prodigy.com!postmaster.news.prodigy.com!newssvr12.news.prodigy.net.POSTED!666d6152!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Organization: Me, Myself, and Inc.
X-No-Archive: banter
X-WebTV-Stationery: Standard; BGColor=red;
 Background="http://i26.tinypic.com/25polj9.gif"; TextColor=red
Lines: 50
NNTP-Posting-Host: 70.253.74.80
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr12.news.prodigy.net 1205197657 ST000 70.253.74.80 (Mon,
NNTP-Posting-Date: Mon, 10 Mar 2008 21:07:37 EDT
X-UserInfo1: TSU[@I_A\S@US^T[KROLN[TDFZ\@@FXLM@TDOCQDJ@_@FNHCYFWUQBKZQLYJX\_ITFD_KFVLUN[DOM_A_NSYNWPFWNS[XV\I]PZ@BQ[@CDQDPCL^FKCBIPC@KLGEZEFNMDYMKHRL_YYYGDSSODXYN@[\BK[LVTWI@AXGQCOA_SAH@TPD^\AL\RLGRFWEARBM