🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
13 messages
13 total messages Started by Liz Albin Thu, 10 Jul 2003 00:03
[dialog] Mark thread as read
#128227
Author: Liz Albin
Date: Thu, 10 Jul 2003 00:03
4 lines
1035 bytes
How do I mark a thread as read?
I'm sure this is simple, but I can't figure out how to do it.
-- 
liz
Re: [dialog] Mark thread as read
#128238
Author: Timothy Luders
Date: Thu, 10 Jul 2003 02:33
9 lines
1278 bytes
On Wed, 9 Jul 2003 20:03:54 -0400, Liz Albin wrote:

> How do I mark a thread as read?
> I'm sure this is simple, but I can't figure out how to do it.

collapse thread  -
mark read  x

Timothy
Re: [dialog] Mark thread as read
#128241
Author: Master Cougar
Date: Thu, 10 Jul 2003 02:37
8 lines
1589 bytes
On Wed, 9 Jul 2003 20:03:54 -0400, Liz Albin wrote:

> How do I mark a thread as read?
> I'm sure this is simple, but I can't figure out how to do it.

	I wish there was one, but I haven't seen hide or tail of such.
-- 
Marc, No comment
Re: [dialog] Mark thread as read
#128247
Author: Master Cougar
Date: Thu, 10 Jul 2003 04:04
14 lines
1728 bytes
On Thu, 10 Jul 2003 02:33:00 GMT, Timothy Luders wrote:

> On Wed, 9 Jul 2003 20:03:54 -0400, Liz Albin wrote:
> 
>> How do I mark a thread as read?
>> I'm sure this is simple, but I can't figure out how to do it.
> 
> collapse thread  -
> mark read  x

	Way too much work. A single keystroke,much like marking a post read would
work better. 
-- 
Marc, No comment
Re: [dialog] Mark thread as read
#128249
Author: Jarrod Cifer
Date: Thu, 10 Jul 2003 04:15
13 lines
1869 bytes
Master Cougar, upon reaching Nirvana, postulated:

> On Wed, 9 Jul 2003 20:03:54 -0400, Liz Albin wrote:

>> How do I mark a thread as read?
>> I'm sure this is simple, but I can't figure out how to do it.

> 	I wish there was one, but I haven't seen hide or tail of such.

The keys '-' and then 'x' do it for me.

-- 
J. Cifer
Re: [dialog] Mark thread as read
#128251
Author: Liz Albin
Date: Thu, 10 Jul 2003 04:31
14 lines
1377 bytes
On Thu, 10 Jul 2003 02:33:00 GMT, Timothy Luders wrote:

> collapse thread  -
> mark read  x

I wrote a script that does this, and attached a keystroke.  

I'm dissatisfied however.  Is there a way for me to tell whether the
thread was expanded when I started?  I'd like to leave it in its
original state.

thanks again
-- 
liz
Re: [dialog] Mark thread as read
#128253
Author: Jarrod Cifer
Date: Thu, 10 Jul 2003 05:03
43 lines
3388 bytes
Master Cougar, upon reaching Nirvana, postulated:

> On Thu, 10 Jul 2003 02:33:00 GMT, Timothy Luders wrote:

>> On Wed, 9 Jul 2003 20:03:54 -0400, Liz Albin wrote:

>>> How do I mark a thread as read?
>>> I'm sure this is simple, but I can't figure out how to do it.

>> collapse thread  -
>> mark read  x

> 	Way too much work. A single keystroke,much like marking a post read would
> work better.

Open up the scripting window, make sure the custom script tab is opened. In 
the file menu choose 'new Script' Give it a name for example 
'MarkThreadRead' Click on the button 'Show button config.' in the lower 
left hand corner of the scripting window. In the 'categories' field on the 
left side choose 'Navigate', scroll down to 'Collapse Thread' in the 
'Commands' field on the left side. Drag and Drop this command to your open 
scripting window. Now choose 'Message' in the 'Categories' field, scroll 
down to 'Mark Message Read' in the 'Commands' field. Drag  and Drop this 
command into your scripting window as well. Back to 'Navigate' we go and 
this time we drag and drop the 'Expand Thread' into our scripting window. 
We now have a script that looks like this:

Program MarkThreadRead;
Begin
ADo('CollapseThread');
ADo('MarkRead');
ADo('ExpandThread');
End.

BTW the ExpandThread command is optional, you're not really interested in 
the thread anymore, so you can just as well leave it closed after you mark 
it read. This script we save, compile and then run. Now we leave the 
Scripting window and choose 'Configure Buttons/Shortcuts' from the settings 
menu. Choose 'scripts' in the categories field and in the 'command' field 
our newly created 'MarkThreadRead', now assign this script with a keystroke 
shortcut of your choice. HTH,
-- 
J. Cifer
Re: [dialog] Mark thread as read
#128263
Author: Marcus Mönnig
Date: Thu, 10 Jul 2003 09:58
37 lines
2423 bytes
On Thu, 10 Jul 2003 00:31:37 -0400, Liz Albin wrote:

> I'm dissatisfied however.  Is there a way for me to tell whether the
> thread was expanded when I started?  I'd like to leave it in its
> original state.

There is no way yet to get information about the selected message, so you
don't know it's initial expansion state. I still have to implement access to the
messages in scripts.

If you would always want to expand the thread that you want to mark read,
you can use the script below, however this might not be what you really need
here.

Program ThreadIgnore;
begin
LockDisplay;
try
ADo('CollapseThread');
ADo('MarkRead');
ADo('AddMarker');
ADo('NextMessage');
ADo('AddMarker');
ADo('PreviousMessage');
ADo('ExpandThread');
ADo('GoToPreviousMarker');
finally
UnlockDisplay;
end;

End.

Marcus
-- 
No replies in private e-mail, please, unless explicitly requested!
Please log bug reports into Mantis: http://www.40tude.com/dialog/mantis/
Please share your scripts and tips: http://www.40tude.com/dialog/wiki/
Re: [dialog] Mark thread as read
#128285
Author: Master Cougar
Date: Thu, 10 Jul 2003 14:17
9 lines
1799 bytes
On Thu, 10 Jul 2003 07:03:43 +0200, Jarrod Cifer wrote:

>  Choose 'scripts' in the categories field and in the 'command' field 
> our newly created 'MarkThreadRead', now assign this script with a keystroke 
> shortcut of your choice. HTH,

	Thank you! I will save this post and do it was soon as time allows me to. 
-- 
Marc, No comment
Re: [dialog] Mark thread as read
#128299
Author: Marcus Mönnig
Date: Thu, 10 Jul 2003 20:07
17 lines
2113 bytes
On Thu, 10 Jul 2003 07:27:45 -0400, Liz Albin wrote:

> Thanks again.   I'd figured out  writing a script would be the way to
> go, but your script has a feature I hadn't expected.  Would you explain
> why you add a marker and go to it?

The reason was that we don't know how many messages there are between the
currently selected first-in-thread message and the next first-in-thread message.
Now that you asked, I realize that the same can of course be achieved by using 
ADo('SkiptToNextThread').

Marcus
-- 
No replies in private e-mail, please, unless explicitly requested!
Please log bug reports into Mantis: http://www.40tude.com/dialog/mantis/
Please share your scripts and tips: http://www.40tude.com/dialog/wiki/
Re: [dialog] Mark thread as read
#128310
Author: Master Cougar
Date: Thu, 10 Jul 2003 23:08
13 lines
2053 bytes
On Thu, 10 Jul 2003 07:03:43 +0200, Jarrod Cifer wrote:

> Choose 'scripts' in the categories field and in the 'command' field 
> our newly created 'MarkThreadRead', now assign this script with a keystroke 
> shortcut of your choice. HTH,

	Wow, it worked so very well. I even added the "Skip to next unread
message" button, assigned "T" to the script and now it's doing exactly what
I want. If I don't want to read the thread, I press "T" the thread gets
marked read and then skips to the next unread message. COOL! I am starting
to really like this program.
-- 
Marc, No comment
Re: [dialog] Mark thread as read
#128311
Author: Liz Albin
Date: Fri, 11 Jul 2003 00:01
8 lines
1383 bytes
On Thu, 10 Jul 2003 22:07:29 +0200, Marcus Mönnig wrote:

> Now that you asked, I realize that the same can of course be achieved by using 
> ADo('SkiptToNextThread').

The explanation is very helpful.  Thanks again
-- 
liz
Re: [dialog] Mark thread as read
#128363
Author: Alain GUERIN
Date: Fri, 11 Jul 2003 13:02
65 lines
3278 bytes
Hello,

On Thu, 10 Jul 2003 11:58:17 +0200, Marcus Mönnig wrote:

> On Thu, 10 Jul 2003 00:31:37 -0400, Liz Albin wrote:
> 
>> I'm dissatisfied however.  Is there a way for me to tell whether the
>> thread was expanded when I started?  I'd like to leave it in its
>> original state.
> 
> There is no way yet to get information about the selected message, so you
> don't know it's initial expansion state. I still have to implement access to the
> messages in scripts.
> 

If I understand well the problem, there is perhaps a work around with
something like the following script, but please don't stop the foreseen
implementation if my tip is working:  ;-)

uses 
   Forms, 
   StdCtrls;

                    
CONST
   filename = 'C:\Mes documents\test\Test.txt';
VAR
   Chaine : string;
   list: TStringList;
   index : integer; 
   NotOpenBracket : boolean;
   DummyEdit : TEdit;

BEGIN
   ADo('Copy');
   DummyEdit := TEdit.create(nil);
   DummyEdit.Parent := Application.Mainform;
   DummyEdit.PasteFromClipboard;
   Chaine := DummyEdit.Text;
   DummyEdit.free;
   IF Chaine > '' THEN
   BEGIN         
      list := TStringList.Create();
      IF fileexists(filename) THEN
         list.LoadFromFile(filename);
      list.add(Chaine);
      list.SaveToFile(filename);
      list.free;
      beep
   END    
END.

As, it is extracted from another stript copying selected groupname name in a
file, it has to be adapted to your purpose. 

If the thread is expanded, Chaine will be something like:
	4	[dialog] Mark thread as read (Liz Albin)	10/07/2003 02:03:54
and if not expanded, something like that:
	[13]	[dialog] Mark thread as read (Liz Albin)	10/07/2003 02:03:54

So it will not be very difficult to analyse the line and have a boolean
function telling you if it is expanded or not.

-- 
A.G.
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