🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
10 messages
10 total messages Started by Larry Sun, 09 Nov 2003 17:03
[Dialog] Help with script
#137180
Author: Larry
Date: Sun, 09 Nov 2003 17:03
11 lines
1576 bytes
I'd like to put together a script to do the following:
In the newsgroup I'm currently reading, collapse all threads and return the
pointer to the top of the list.  I may just assign this to a button for
now, but later make it the default behavior when leaving a newsgroup.  Any
ideas?

Thanks,
-- 

Larry
email is rapp at lmr dot com
Re: [Dialog] Help with script
#137185
Author: Enrico Bauer
Date: Sun, 09 Nov 2003 19:07
18 lines
1669 bytes
09.11.2003 18:03:23, *Larry*:

> I'd like to put together a script to do the following:
> In the newsgroup I'm currently reading, collapse all threads and return the
> pointer to the top of the list.  I may just assign this to a button for
> now, but later make it the default behavior when leaving a newsgroup.  Any
> ideas?

Try this:

Program test;
Begin
ADo('CollapseAllThreads');
ADo('FirstMessage');
End.

HTH
Enrico B.
Re: [Dialog] Help with script
#137224
Author: Larry
Date: Mon, 10 Nov 2003 19:42
31 lines
2098 bytes
On Sun, 9 Nov 2003 20:07:49 +0100, Enrico Bauer wrote:

> 09.11.2003 18:03:23, *Larry*:
> 
>> I'd like to put together a script to do the following:
>> In the newsgroup I'm currently reading, collapse all threads and return the
>> pointer to the top of the list.  I may just assign this to a button for
>> now, but later make it the default behavior when leaving a newsgroup.  Any
>> ideas?
> 
> Try this:
> 
> Program test;
> Begin
> ADo('CollapseAllThreads');
> ADo('FirstMessage');
> End.
> 
> HTH
> Enrico B.

Thanks, Enrico,

	That works perfectly.  Now, I need to either assign this to a button, or
make it happen automatically when I leave a newsgroup.  Where does one find
the functions you used and buttons to which they can be connected?   Again,
thanks. 
-- 

Larry
email is rapp at lmr dot com
Re: [Dialog] Help with script
#137338
Author: Enrico Bauer
Date: Wed, 12 Nov 2003 10:04
14 lines
1792 bytes
10.11.2003 20:42:23, *Larry*:
> make it happen automatically when I leave a newsgroup.

For the left or the entered group?

> Where does one find the functions you used and buttons to which they
> can be connected?

Settings - Scripting - Scripting... - Show button config.

Choose the respective function and drag'n'drop it into the scripting
window between the "Begin" and the "End".

Enrico B.
Re: [Dialog] Help with script
#137378
Author: Larry
Date: Wed, 12 Nov 2003 22:11
22 lines
2019 bytes
On Wed, 12 Nov 2003 11:04:57 +0100, Enrico Bauer wrote:

> 10.11.2003 20:42:23, *Larry*:
>> make it happen automatically when I leave a newsgroup.
> 
> For the left or the entered group?

For the group just left, after leaving it.

>> Where does one find the functions you used and buttons to which they
>> can be connected?
> 
> Settings - Scripting - Scripting... - Show button config.
> 
> Choose the respective function and drag'n'drop it into the scripting
> window between the "Begin" and the "End".

Thanks, Enrico - don't know how I missed that.
-- 

Larry
email is rapp at lmr dot com
Re: [Dialog] Help with script
#137379
Author: Larry
Date: Wed, 12 Nov 2003 22:18
28 lines
2290 bytes
On Wed, 12 Nov 2003 11:04:57 +0100, Enrico Bauer wrote:

> 10.11.2003 20:42:23, *Larry*:
>> make it happen automatically when I leave a newsgroup.
> 
> For the left or the entered group?
> 
>> Where does one find the functions you used and buttons to which they
>> can be connected?
> 
> Settings - Scripting - Scripting... - Show button config.
> 
> Choose the respective function and drag'n'drop it into the scripting
> window between the "Begin" and the "End".
> 
> Enrico B.

Is there any way to add your own button?  There doesn't seem to be anything
appropriate.  What I want to do is to create a button which essentially
resets the group - which is what the script does (now, with your help!)

Otherwise, I need to have this happen automatically when leaving a group.

Thanks,
-- 

Larry
email is rapp at lmr dot com
Re: [Dialog] Help with script
#137381
Author: Enrico Bauer
Date: Wed, 12 Nov 2003 22:58
32 lines
2285 bytes
12.11.2003 23:18:08, *Larry*:

You can achieve both.

> Is there any way to add your own button?  There doesn't seem to be anything
> appropriate.  What I want to do is to create a button which essentially
> resets the group - which is what the script does (now, with your help!)

Settings - Configure buttons/Shortcuts - Scripts - drag'n'drop the
respective script (or some other function) from the window onto a
toolbar.

But that's actually not necessary: You can collapse all threads in a
group just by pressing [Shift][-].
 
> Otherwise, I need to have this happen automatically when leaving a group.

Program SkipToNextGroup;
Begin
lockdisplay;
try
ADo('CollapseAllThreads');
ADo('SkipToNextUnreadNewsgroup');
ADo('RefreshView');
ADo('ArticlePane');
finally
unlockdisplay;
end;
End.

HTH
Enrico B.
Re: [Dialog] Help with script
#137435
Author: Larry
Date: Thu, 13 Nov 2003 18:56
49 lines
3120 bytes
On Wed, 12 Nov 2003 23:58:48 +0100, Enrico Bauer wrote:

> 12.11.2003 23:18:08, *Larry*:
> 
> You can achieve both.
> 
>> Is there any way to add your own button?  There doesn't seem to be anything
>> appropriate.  What I want to do is to create a button which essentially
>> resets the group - which is what the script does (now, with your help!)
> 
> Settings - Configure buttons/Shortcuts - Scripts - drag'n'drop the
> respective script (or some other function) from the window onto a
> toolbar.

Ok, I see.  That works, although the "button" is a text string.  No matter,
it does get there.

> But that's actually not necessary: You can collapse all threads in a
> group just by pressing [Shift][-].

True, but that doesn't reset the pointer to the first message.  

>> Otherwise, I need to have this happen automatically when leaving a group.
> 
> Program SkipToNextGroup;
> Begin
> lockdisplay;
> try
> ADo('CollapseAllThreads');
> ADo('SkipToNextUnreadNewsgroup');
> ADo('RefreshView');
> ADo('ArticlePane');
> finally
> unlockdisplay;
> end;
> End.

That doesn't seem to work.  I made it into a button, but it still doesn't
seem to do anything.  However, it is sitting in Custom scripts.  Is this
the right place?  I also tried adding ADo('FirstMessage'); after and before
the ADo('CollapseAllThreads'); but that didn't matter.  Either pressing the
button or leaving the group doesn't seem to have an effect.  I am probably
missing something, but I can't see what.

Thanks, Enrico
-- 

Larry
email is rapp at lmr dot com
Re: [Dialog] Help with script
#137595
Author: Enrico Bauer
Date: Sun, 16 Nov 2003 12:19
34 lines
2596 bytes
13.11.2003 19:56:40, *Larry*:
> On Wed, 12 Nov 2003 23:58:48 +0100, Enrico Bauer wrote:
>>> Otherwise, I need to have this happen automatically when leaving a group.
>> Program SkipToNextGroup;
>> Begin
>> lockdisplay;
>> try
>> ADo('CollapseAllThreads');
>> ADo('SkipToNextUnreadNewsgroup');
>> ADo('RefreshView');
>> ADo('ArticlePane');
>> finally
>> unlockdisplay;
>> end;
>> End.
> That doesn't seem to work.

I use it. "It is mine and I own it. That's what it is."

> I made it into a button, but it still doesn't seem to do anything.
> However, it is sitting in Custom scripts. Is this the right place?

Yes. Did you try to call t with a shortcut?

> I also tried adding ADo('FirstMessage'); after and before
> the ADo('CollapseAllThreads'); but that didn't matter.

If the script is not called that's what could be expected. :-)

> I am probably missing something, but I can't see what.

You did save *and* compile it, didn't you?

Enrico B.
Re: [Dialog] Help with script
#137604
Author: Larry
Date: Sun, 16 Nov 2003 18:42
59 lines
3623 bytes
On Sun, 16 Nov 2003 13:19:22 +0100, Enrico Bauer wrote:

> 13.11.2003 19:56:40, *Larry*:
>> On Wed, 12 Nov 2003 23:58:48 +0100, Enrico Bauer wrote:
>>>> Otherwise, I need to have this happen automatically when leaving a group.
>>> Program SkipToNextGroup;
>>> Begin
>>> lockdisplay;
>>> try
>>> ADo('CollapseAllThreads');
>>> ADo('SkipToNextUnreadNewsgroup');
>>> ADo('RefreshView');
>>> ADo('ArticlePane');
>>> finally
>>> unlockdisplay;
>>> end;
>>> End.
>> That doesn't seem to work.
> 
> I use it. "It is mine and I own it. That's what it is."
> 
>> I made it into a button, but it still doesn't seem to do anything.
>> However, it is sitting in Custom scripts. Is this the right place?
> 
> Did you try to call t with a shortcut?

Yes, ctrl-space, didn't work there either, but I found the problem.  

I'm not sure how I managed to do theis, but when I did a compile I didn't
get any message.  Note, I mean ANY message, including "Successfully
compiled".  Somehow, I managed to minimize the debug output window so that
messages were no longer visible.  Once I straightened that out, and
compiled it again, I saw that there was a syntax error in
ADo('ArticlePane'); - I left out the second single quote - so it never
compiled.   

>> I also tried adding ADo('FirstMessage'); after and before
>> the ADo('CollapseAllThreads'); but that didn't matter.
> 
> If the script is not called that's what could be expected. :-)
> 
>> I am probably missing something, but I can't see what.
> 
> You did save *and* compile it, didn't you?

Yes, but see above.

Now, I would just like to make this the default behavior when leaving a
group.  I would expect that to make that happen, I would need to have an
event like "OnAboutToLeaveNewsgroup" and trigger the above script, minus
ADo('SkipToNextUnreadNewsgroup'); before going to the next group.  

I guess I'll just leave it for use with a button or shortcut for now.  

Thanks for your help.  
 -- 

Larry
email is rapp at lmr dot com
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