🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #153801

Re: [Dialog] Another Basic Script Question

#153801
From: MLC
Date: Sat, 14 Aug 2004 07:58
157 lines
5048 bytes
Hi _Copelandia Cyanescens_,

> MLC wrote...
> 
>>> Suggestions?
>> 
>> Here I am! ;-)
> 
> I love you. <grin>

Good! ;)

> 
> Thanks again, it works perfectly now. I didn't see "FirstMessage"
> anywhere in the help files, and can't seem to locate it in the menus
> structure...???

You can find it in the Customize buttons/shortcuts window, under Navigation.

If you want a list of all the actions you can use in your scripts, the
simplest way is to run a single line script that will show them all in the
debug panel:

Program ShowActions;
Begin
 writeln(GetActionList);
End.

To have them in a text file (I think it is more comfortable to look up), I
made this script:

Program MyActionList;

const
 //write here a valid path; the txt file doesn't need to exist,
 //it is created by the script
 filename = 'C:\Programmi\40tude Dialog\ListaComandi.txt';
 
var
 myString: string;
 list: TStringList;

Begin
 list := TStringList.Create();
 myString:=GetActionList;

try
 list.add(myString);
 list.SaveToFile(filename);
finally
 list.free;
end;
End.


> 
> And another nit picky question...
> 
>   try
>    LockDisplay;
>    ...
>   finally
>    UnlockDisplay;
> 
> I see this typically written with Lockdisplay before try. Does it
> matter?

AFAIK it doesn't matter a lot, however I think you're right because the
UnlockDisplay is out of the try...finally block.
That was one of my slips :)

> I don't experience the alleged "flickering" either way myself,
> even when flipping panes and traversing header lists.

In this script me too. You can remove the LockDisplay.
In other cases instead it's useful, e.g. when you have to select text or
display the headers...

> 
>> A resource is the keycodes.exe little program (the zip is only 3.39 KB).
> 
> And again I thank you!
> 
> Could you, or someone, expand on the reasons why PostKey(...) is such a
> bear? Why it won't work in situations like this??

I'm afraid I can't. I only see that often the Postkey is kicked by the
following statements.

> 
>> It's in German but you can understand very well what to do :)
> 
> And if I couldn't, I'd just ask my girlfriend to translate. She's a
> German citizen in the States on a "green card", and she owes me one for
> finding a way to dynamically search the 37K+/- HTML/PDF/DOC files on CD
> she brought home from work the other day. <g>

Then you managed it :)

> 
> In any case, here's the silly final product left diced up in procedures
> because I have "plans", and another little bit of nonsense that seem to
> help make reading high traffic groups a bit easier when assigned to a
> couple icons in the tool bar and placed next to the standard message
> navigation buttons. For me anyway. :)
> 
> // **********
> // 
> Program RefreshView;
>  
> procedure RefreshHeaderDisplayList();
>  begin
>   Ado('HeaderlistPane');
>   ADo('RefreshView');
>   Ado('FirstMessage');
>  end;
>  
> procedure JumpPane();
>  begin
>   ADo('ArticlePane');
>  end;
> 
> Begin  
>  lockdisplay;
>  try
>   RefreshHeaderDisplayList();
>   JumpPane();
>  finally
>  unlockdisplay; 
> end;
> End.
> // **********
> 
> // **********
> Program MarkThreadRead;
> Begin
>  lockdisplay;
>  try
>   Ado('HeaderlistPane');
>   ADo('CollapseThread');
>   ADo('MarkRead');
>   ADo('ExpandThread');
>   ADo('SkipToNextUnreadMessage');
>   Ado('ArticlePane');
>  finally
>  unlockdisplay;
> end;
> End.
> //**********

Well done!
I'd suggest also to associate them with hotkeys, it's fine navigating with
the keyboard.

Cheers, 
-- 
Maria Luisa C - 14/08/2004 9.20.56
Technical Details
Message-ID: <agjgag729rfy$.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!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!not-for-mail
References: <1ci4ar6pm0w8q$.dlg@x02x67invalid.net> <g5oosmddpgyg.dlg@ID-187316.user.uni-berlin.de> <1hmj1m0bwef3$.dlg@x02x67invalid.net>

Show Full Headers
Complete Article Headers
Message-ID: <agjgag729rfy$.dlg@ID-187316.user.uni-berlin.de>
Subject: Re: [Dialog] Another Basic Script Question
Date: Sat, 14 Aug 2004 09:58:35 +0200
From: MLC <maluc52@yahoo.it>
References: <1ci4ar6pm0w8q$.dlg@x02x67invalid.net> <g5oosmddpgyg.dlg@ID-187316.user.uni-berlin.de> <1hmj1m0bwef3$.dlg@x02x67invalid.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!border2.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Organization: none
Lines: 157
Reply-To: mlcald@msn.com
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de /xugm/qua/uOM0Q2l375ZQK0JJhm6xvY/33b73DSRlaxFrvTEh
User-Agent: 40tude_Dialog/2.0.12.1it (98897dcc.400.426)
X-Coord: Lat 44.317 N, Long 11.417 E
X-face: $5565tO5I&Ml1yV962Ei2n}3A4OrkQ!`#3w<#g]"0IW{:nT7"Q\Ps7Qr;
 gUZMn]]aebqb^3 &WTZoh^D=0!Pb&Sr/S+(=2K; !; ^UWs1c'vPC`i;
 =fk2<>yv@pbNe@23yQ<"iCZMhLD[syJ@+6IR'O~ _6)a\PizKXvLcAS)BVtL*q8T^OS;
 iZ#2olr3j%l|0,zB|<r0Sh<l-.6f[[01(=?j/S2}rSIiHLi/su JRgk>t-WfOv/f,fhNz\K
X-URL: http://fido.altervista.org/index.php