🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
11 messages
11 total messages Started by Barry Jones Wed, 21 Jan 2004 21:17
[Dialog] Timed download of headers for some groups
#141786
Author: Barry Jones
Date: Wed, 21 Jan 2004 21:17
18 lines
1773 bytes
New Dialog user here.

I set subscribed to the same groups with 3 servers, and separated them into
3 categories, one per server.

I'd like to used the timed download script, but only with the groups from
one of the servers. The ADo('GetNewHeadersInSubscribedGroups'); gets
headers from all the servers. Is there a way to apply this to just one
server (or just one category)?

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?

Thanks

-- 
Barry
Re: [Dialog] Timed download of headers for some groups
#141802
Author: MLC
Date: Wed, 21 Jan 2004 22:22
28 lines
2179 bytes
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.
-- 
random anagram: Eleven plus two = Twelve plus one
Maria Luisa C - 21/01/04 23.22.00, here.
http://fido.altervista.org/
Re: [Dialog] Timed download of headers for some groups
#141893
Author: 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.)?
Re: [Dialog] Timed download of headers for some groups
#141957
Author: MLC
Date: Fri, 23 Jan 2004 09:53
99 lines
3830 bytes
giovedì 22/gen/2004 _Barry Jones_ ha scritto:

> 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?

You're right: I tested it only in the script window and there it worked.
Instead with a button it doesn't, like your version.
I really don't have a clue about this behaviour.

> 
> 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.)?

I can give you those I have:

  VK_LBUTTON = 1;
  VK_RBUTTON = 2;
  VK_CANCEL = 3;
  VK_MBUTTON = 4;  { NOT contiguous with L & RBUTTON }
  VK_BACK = 8;
  VK_TAB = 9;
  VK_CLEAR = 12;
  VK_RETURN = 13;
  VK_SHIFT = $10;
  VK_CONTROL = 17;
  VK_MENU = 18;
  VK_PAUSE = 19;
  VK_CAPITAL = 20;
  VK_ESCAPE = 27;
  VK_SPACE = 32;
  VK_PRIOR = 33;
  VK_NEXT = 34;
  VK_END = 35;
  VK_HOME = 36;
  VK_LEFT = 37;
  VK_UP = 38;
  VK_RIGHT = 39;
  VK_DOWN = 40;
  VK_INSERT = 45;
  VK_DELETE = 46;
 VK_0 thru VK_9 (not numpad) are the same as ASCII '0' thru '9' (48 - 57)
  VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (41 - 90)
  VK_LWIN = 91;
  VK_RWIN = 92;
  VK_APPS = 93;
  VK_NUMPAD0 = 96;
  VK_NUMPAD1 = 97;
  VK_NUMPAD2 = 98;
  VK_NUMPAD3 = 99;
  VK_NUMPAD4 = 100;
  VK_NUMPAD5 = 101;
  VK_NUMPAD6 = 102;
  VK_NUMPAD7 = 103;
  VK_NUMPAD8 = 104;
  VK_NUMPAD9 = 105;
  VK_MULTIPLY = 106;
  VK_ADD = 107;
  VK_SUBTRACT = 109;
  VK_DECIMAL = 110;
  VK_DIVIDE = 111;
  VK_F1 = 112;
  VK_F2 = 113;
  VK_F3 = 114;
  VK_F4 = 115;
  VK_F5 = 116;
  VK_F6 = 117;
  VK_F7 = 118;
  VK_F8 = 119;
  VK_F9 = 120;
  VK_F10 = 121;
  VK_F11 = 122;
  VK_F12 = 123;
  VK_NUMLOCK = 144;
  VK_SCROLL = 145;
  
Ciao,
-- 
random anagram: The Detectives = Detect Thieves
Maria Luisa C - 23/01/04 10.15.52, here.
http://fido.altervista.org/
Re: [Dialog] Timed download of headers for some groups
#141958
Author: MLC
Date: Fri, 23 Jan 2004 09:56
98 lines
3883 bytes
giovedì 22/gen/2004 _Barry Jones_ ha scritto:

> 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?

You're right: I tested it only in the script window and there it worked.
Instead with a button it doesn't, like your version.
I really don't have a clue about this behaviour.

> 
> 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.)?

I can give you those I have:

  VK_LBUTTON = 1;
  VK_RBUTTON = 2;
  VK_CANCEL = 3;
  VK_MBUTTON = 4;  { NOT contiguous with L & RBUTTON }
  VK_BACK = 8;
  VK_TAB = 9;
  VK_CLEAR = 12;
  VK_RETURN = 13;
  VK_SHIFT = 16;
  VK_CONTROL = 17;
  VK_PAUSE = 19;
  VK_CAPITAL = 20;
  VK_ESCAPE = 27;
  VK_SPACE = 32;
  VK_PRIOR = 33;
  VK_NEXT = 34;
  VK_END = 35;
  VK_HOME = 36;
  VK_LEFT = 37;
  VK_UP = 38;
  VK_RIGHT = 39;
  VK_DOWN = 40;
  VK_INSERT = 45;
  VK_DELETE = 46;
  VK_0 thru VK_9 (not numpad) are the same as ASCII '0' thru '9' (48 - 57)
  VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (41 - 90)
  VK_LWIN = 91;
  VK_RWIN = 92;
  VK_APPS = 93;
  VK_NUMPAD0 = 96;
  VK_NUMPAD1 = 97;
  VK_NUMPAD2 = 98;
  VK_NUMPAD3 = 99;
  VK_NUMPAD4 = 100;
  VK_NUMPAD5 = 101;
  VK_NUMPAD6 = 102;
  VK_NUMPAD7 = 103;
  VK_NUMPAD8 = 104;
  VK_NUMPAD9 = 105;
  VK_MULTIPLY = 106;
  VK_ADD = 107;
  VK_SUBTRACT = 109;
  VK_DECIMAL = 110;
  VK_DIVIDE = 111;
  VK_F1 = 112;
  VK_F2 = 113;
  VK_F3 = 114;
  VK_F4 = 115;
  VK_F5 = 116;
  VK_F6 = 117;
  VK_F7 = 118;
  VK_F8 = 119;
  VK_F9 = 120;
  VK_F10 = 121;
  VK_F11 = 122;
  VK_F12 = 123;
  VK_NUMLOCK = 144;
  VK_SCROLL = 145;
  
Ciao,
-- 
random anagram: The Detectives = Detect Thieves
Maria Luisa C - 23/01/04 10.15.52, here.
http://fido.altervista.org/
Re: [Dialog] Timed download of headers for some groups
#141998
Author: Barry Jones
Date: Fri, 23 Jan 2004 23:12
78 lines
3275 bytes
On Fri, 23 Jan 2004 10:56:08 +0100, MLC wrote:

> giovedì 22/gen/2004 _Barry Jones_ ha scritto:
>> 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.)?
> 
> I can give you those I have:
> 
>   VK_LBUTTON = 1;
>   VK_RBUTTON = 2;
>   VK_CANCEL = 3;
>   VK_MBUTTON = 4;  { NOT contiguous with L & RBUTTON }
>   VK_BACK = 8;
>   VK_TAB = 9;
>   VK_CLEAR = 12;
>   VK_RETURN = 13;
>   VK_SHIFT = 16;
>   VK_CONTROL = 17;
>   VK_PAUSE = 19;
>   VK_CAPITAL = 20;
>   VK_ESCAPE = 27;
>   VK_SPACE = 32;
>   VK_PRIOR = 33;
>   VK_NEXT = 34;
>   VK_END = 35;
>   VK_HOME = 36;
>   VK_LEFT = 37;
>   VK_UP = 38;
>   VK_RIGHT = 39;
>   VK_DOWN = 40;
>   VK_INSERT = 45;
>   VK_DELETE = 46;
>   VK_0 thru VK_9 (not numpad) are the same as ASCII '0' thru '9' (48 - 57)
>   VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (41 - 90)
>   VK_LWIN = 91;
>   VK_RWIN = 92;
>   VK_APPS = 93;
>   VK_NUMPAD0 = 96;
>   VK_NUMPAD1 = 97;
>   VK_NUMPAD2 = 98;
>   VK_NUMPAD3 = 99;
>   VK_NUMPAD4 = 100;
>   VK_NUMPAD5 = 101;
>   VK_NUMPAD6 = 102;
>   VK_NUMPAD7 = 103;
>   VK_NUMPAD8 = 104;
>   VK_NUMPAD9 = 105;
>   VK_MULTIPLY = 106;
>   VK_ADD = 107;
>   VK_SUBTRACT = 109;
>   VK_DECIMAL = 110;
>   VK_DIVIDE = 111;
>   VK_F1 = 112;
>   VK_F2 = 113;
>   VK_F3 = 114;
>   VK_F4 = 115;
>   VK_F5 = 116;
>   VK_F6 = 117;
>   VK_F7 = 118;
>   VK_F8 = 119;
>   VK_F9 = 120;
>   VK_F10 = 121;
>   VK_F11 = 122;
>   VK_F12 = 123;
>   VK_NUMLOCK = 144;
>   VK_SCROLL = 145;
>   
> Ciao,

Nice reference! Thanks a lot. Where'd you get the information? Google did
not get me there.

I'm surprised there's so little discussion of the scripting language to be
found. Is this the best newsgroup for this stuff? I'm a C++ guy, so I don't
know how much of the scripting is part of Delphi.

-- 
Barry
Re: [Dialog] Timed download of headers for some groups
#142022
Author: MLC
Date: Sat, 24 Jan 2004 12:58
31 lines
2638 bytes
sabato 24/gen/2004 _Barry Jones_ ha scritto:

> Nice reference! Thanks a lot. Where'd you get the information? Google did
> not get me there.

Sorry I can't remember exactly: I remember I did a cut and paste from some
web page (very likely about Delphi) and then verified some keys and deleted
others.
> 
> I'm surprised there's so little discussion of the scripting language to be
> found. Is this the best newsgroup for this stuff?

Yes, I think it is.
If you understand Italian there is also
it.comp.software.newsreader  (it's great :))
and in German there is a group dedicated to Dialog:
de.comm.software.40tude-dialog
Don't forget also the Wiki pages
http://40tude.com/dialog/wiki/index.php/General%20scripts
where you can see many useful scripts.

>I'm a C++ guy, so I don't
> know how much of the scripting is part of Delphi.

I think the Dialog scripting is a little subset of Delphi.
In the help you can find a list of available functions and procedures. 
Being you a C++ guy, I'm sure you'll find the scripting very easy.
-- 
random anagram: Statue of Liberty = Built to Stay Free
Maria Luisa C - 24/01/04 13.38.01, here.
http://fido.altervista.org/
Re: [Dialog] Timed download of headers for some groups
#142051
Author: Barry Jones
Date: Sat, 24 Jan 2004 19:34
42 lines
2659 bytes
On Fri, 23 Jan 2004 10:56:08 +0100, MLC wrote:

> giovedì 22/gen/2004 _Barry Jones_ ha scritto:
> 
>> 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?
> 
> You're right: I tested it only in the script window and there it worked.
> Instead with a button it doesn't, like your version.
> I really don't have a clue about this behaviour.

Revisited: Remember I have 3 categories, with duplicate ngs from 3 servers
in them. I found that I could unsubscribe to the ngs in my 2 backup
servers, yet they remain visible in their respective category views. 

This allows me to use the simple statement:
ADo('GetNewHeadersInSubscribedGroups');  without doing all the window
hopping and such.

Simple is good.

-- 
Barry
Re: [Dialog] Timed download of headers for some groups
#142369
Author: Jarrod Cifer
Date: Thu, 29 Jan 2004 05:55
11 lines
2025 bytes
Barry Jones, upon reaching nirvana, postulated:

> Nice reference! Thanks a lot. Where'd you get the information? Google did
> not get me there.

Here is a nice place to start for all things Dialog:
http://40tude.com/dialog/wiki/index.php/Links
(Near the bottom of the page you'll see a link to Michael Schierl's Keycode
tool)  
-- 
J. Cifer
Re: [Dialog] Timed download of headers for some groups
#142371
Author: Barry Jones
Date: Thu, 29 Jan 2004 06:45
17 lines
1867 bytes
On Thu, 29 Jan 2004 06:55:51 +0100, Jarrod Cifer wrote:

> Barry Jones, upon reaching nirvana, postulated:
> 
>> Nice reference! Thanks a lot. Where'd you get the information? Google did
>> not get me there.
> 
> Here is a nice place to start for all things Dialog:
> http://40tude.com/dialog/wiki/index.php/Links
> (Near the bottom of the page you'll see a link to Michael Schierl's Keycode
> tool)

Thanks. I've been there, but at the time, I didn't recognize the value of
the Keycode tool. That's a useful item.

-- 
Barry
Re: [Dialog] Timed download of headers for some groups
#142387
Author: MLC
Date: Thu, 29 Jan 2004 18:11
22 lines
2193 bytes
sabato 24/gen/2004 _MLC_ ha scritto:

> sabato 24/gen/2004 _Barry Jones_ ha scritto:
> 
>> Nice reference! Thanks a lot. Where'd you get the information? Google did
>> not get me there.
> 
> Sorry I can't remember exactly: I remember I did a cut and paste from some
> web page (very likely about Delphi) and then verified some keys and deleted
> others.

Found that reference just now:
http://community.borland.com/article/0,1410,15546,00.html

I've seen also the Michael Schierl's Keycode, that Jarrod Cifer suggested to
you: a great utility indeed!

Ciao,
-- 
Maria Luisa C - 29/01/04 19.06.08, here.
5/8 di tutorial su Dialog:
http://fido.altervista.org/Dialog/dialog.php
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