Thread View: news.software.readers
3 messages
3 total messages
Started by Sqwertz
Mon, 10 Mar 2008 19:34
[Dialog] Collapsing threads VIA scripting
Author: Sqwertz
Date: Mon, 10 Mar 2008 19:34
Date: Mon, 10 Mar 2008 19:34
18 lines
1920 bytes
1920 bytes
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.
-sw
Re: [Dialog] Collapsing threads VIA scripting
Author: Karl-Heinz Rademacher
Date: Mon, 10 Mar 2008 22:45
Date: Mon, 10 Mar 2008 22:45
48 lines
3565 bytes
3565 bytes
*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('Catchup WithSelectedGroups');
ADo('PurgeSelectedGroups');
ADo('CollapseAllThreads');
ADo('RefreshView');
//ADo('ArticlePane');
ADo('GetNewHeadersInSelectedGroups');
finally
unlockdisplay;
end;
end;
begin
end.
HTH
Karl-Heinz
--
http://kh-rademacher.de/face
http://kh-rademacher.de/4d
Re: [Dialog] Collapsing threads VIA scripting
Author: Sqwertz
Date: Tue, 11 Mar 2008 01:07
Date: Tue, 11 Mar 2008 01:07
50 lines
2819 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads