🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #141893

Re: [Dialog] Timed download of headers for some groups

#141893
From: Barry Jones
Date: Thu, 22 Jan 2004 15:53
51 lines
2861 bytes
On Wed, 21 Jan 2004 23:22:15 +0100, MLC wrote:

> mercoledì 21/gen/2004 _Barry Jones_ ha scritto:
> 
>> I noticed that when a particular category is shown, and I click on
>> GetNewHeadersInSubscribed/CategorizedGroups, only the selected category is
>> updated. Can I use that information somehow in a script?
> 
> You can.
> If the name of your server is "news.whichever" and your category is
> "whichever", rename it "&whichever", so you can call it with Alt-W (also via
> script).
> Then write this custom script:
> 
> Program GetHeadersFromW;
> begin
> 
> PostKey(Ord('W'), false, true, false, false, false, false, false, false);
> // Alt-W ; change the above W if your shortkey is another letter
> 
> ADo('GetNewHeadersInSubscribedGroups');
> 
> ADo('PreviousMessageInHistory');
> // to return where you were; if you don't want it, remove the line
> 
> End.

Thanks MLC. It seems to get headers from all subscribed groups, rather than
just the one category/server. I tried the following:

Program test;
Procedure mytest;
Begin
  PostKey(Ord('R'),false,true,false,false,false,false,false,false);
  //Alt-R selects Roadrunner category
  ADo('NewsgroupPane');
  PostKey(Ord('A'),false,false,true,false,false,false,false,false);
  //Ctrl-A Selects all
  ADo('GetNewHeadersInSelectedGroups');
  ADo('PreviousMessageInHistory');
  ADo('HeaderlistPane');
end;
begin
mytest;
end.

If I compile and run it, it does the right thing. If I run it from a
shortcut or an icon on the taskbar, it does something incorrect. Any clues?

Also, is there a reference for the key names for PostKey? For example, how
would I specify a function key, or an arrow key (Left, Right, etc.)?
Technical Details
Message-ID: <1flr1epm1njvn$.16jw8j4f7jje7.dlg@40tude.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!intern1.nntp.aus1.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!twister.nyc.rr.com.POSTED!not-for-mail
References: <i98luk128ggo.1oev06pizh9v.dlg@40tude.net> <1eiajevpui5yh.dlg@ID-187316.user.uni-berlin.de>

Show Full Headers
Complete Article Headers
Message-ID: <1flr1epm1njvn$.16jw8j4f7jje7.dlg@40tude.net>
Subject: Re: [Dialog] Timed download of headers for some groups
Date: Thu, 22 Jan 2004 15:53:00 GMT
From: Barry Jones <bjones01@acm.org>
References: <i98luk128ggo.1oev06pizh9v.dlg@40tude.net> <1eiajevpui5yh.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!intern1.nntp.aus1.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!twister.nyc.rr.com.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.10.1
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Lines: 51
NNTP-Posting-Host: 24.161.97.192
X-Complaints-To: abuse@rr.com
X-Trace: twister.nyc.rr.com 1074786780 24.161.97.192 (Thu,
NNTP-Posting-Date: Thu, 22 Jan 2004 10:53:00 EST
Organization: Road Runner - NYC