Thread View: news.software.readers
8 messages
8 total messages
Started by Krzysztof Trybowski
Wed, 01 Sep 2004 07:32
[Dialog] Script question / problem
Author: Krzysztof Trybowski
Date: Wed, 01 Sep 2004 07:32
Date: Wed, 01 Sep 2004 07:32
18 lines
1756 bytes
1756 bytes
Hello All,
I have the following script in the startup, but it doesn't work:
program OnStartup;
procedure OnStartup;
begin
ADo('CheckForNewHeadersInSubscribedGroups');
timer1.interval:=60000*5;
timer1.enabled:=true;
end;
begin
end.
The problem seems to be name of the function
"CheckForNewHeadersInSubscribedGroups" since when it is changed to
"GetNewHeadersInSubscribedGroups" it works. What's the function's correct
name?
Re: [Dialog] Script question / problem
Author: Marcus Mönnig
Date: Wed, 01 Sep 2004 07:39
Date: Wed, 01 Sep 2004 07:39
35 lines
2642 bytes
2642 bytes
*Krzysztof Trybowski*, 1 Sep. 04, 09:32:
> I have the following script in the startup, but it doesn't work:
>
> program OnStartup;
> procedure OnStartup;
> begin
> ADo('CheckForNewHeadersInSubscribedGroups');
> timer1.interval:=60000*5;
> timer1.enabled:=true;
> end;
> begin
> end.
>
> The problem seems to be name of the function
> "CheckForNewHeadersInSubscribedGroups" since when it is changed to
> "GetNewHeadersInSubscribedGroups" it works. What's the function's correct
> name?
There is no "CheckForNewHeadersInSubscribedGroups" action.
You need to use "Ado('CheckNewHeadersinSubscribedGroups');".
This will connect to the server(s) and only check if there are any new
articles in the groups. If you want to actually download them, use
"Ado('GetNewHeadersInSubscribedGroups');".
To find the correct name of a function it's easiest to press the "Show
button config" button in the scripting window and drag and drop the needed
function onto the correct position in your script. It will then insert the
correct Ado statement automatically.
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] Script question / problem
Author: Krzysztof Trybowski
Date: Wed, 01 Sep 2004 07:58
Date: Wed, 01 Sep 2004 07:58
27 lines
2483 bytes
2483 bytes
On Wed, 1 Sep 2004 09:39:11 +0200, Marcus Mönnig wrote:
> There is no "CheckForNewHeadersInSubscribedGroups" action.
> You need to use "Ado('CheckNewHeadersinSubscribedGroups');".
Thanks, I'll test it right away! The problem appeared because someone once
told me that functions' names are the same as they appear on the menu, just
without spaces... I wasn't aware of the "show button config" thing (slap my
head!).
> This will connect to the server(s) and only check if there are any new
> articles in the groups. If you want to actually download them, use
> "Ado('GetNewHeadersInSubscribedGroups');".
Yes, and that worked. Only with so many gruops subscribed that I don't read
everyday and a few that I do, this wouldn't make sense.
I have two questions though.
- Can I Ado('GetNewHeadersInSubscribedGroups'); only for groups from
specified category?
- When I check for new headers, the column "New on the server" is updated.
When I then get new headers, the count is gone. How can I keep it in place
till next time I actually enter a newsgroup?
thanks
Re: [Dialog] Script question / problem
Author: Marcus Mönnig
Date: Wed, 01 Sep 2004 08:13
Date: Wed, 01 Sep 2004 08:13
23 lines
2438 bytes
2438 bytes
*Krzysztof Trybowski*, 1 Sep. 04, 09:58:
> - Can I Ado('GetNewHeadersInSubscribedGroups'); only for groups from
> specified category?
You would need to get Dialog to switch to that category in the GUI and then
issue the command. This might be possible by sending a key stroke upon
startup. Maybe one of the script experts can help here.
> - When I check for new headers, the column "New on the server" is updated.
> When I then get new headers, the count is gone. How can I keep it in place
> till next time I actually enter a newsgroup?
There's no way to do that. Once you downloaded the headers, there *are* no
further new messages on the server, thus the zero is correct. You should
however see a red number showing the new messages in Dialog to the left of
the newsgroup name.
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] Script question / problem
Author: Krzysztof Trybowski
Date: Wed, 01 Sep 2004 08:45
Date: Wed, 01 Sep 2004 08:45
19 lines
2312 bytes
2312 bytes
On Wed, 1 Sep 2004 10:13:17 +0200, Marcus Mönnig wrote: > You would need to get Dialog to switch to that category in the GUI and then > issue the command. This might be possible by sending a key stroke upon > startup. Maybe one of the script experts can help here. Okay, I'll look into it. > There's no way to do that. Once you downloaded the headers, there *are* no > further new messages on the server, thus the zero is correct. You should > however see a red number showing the new messages in Dialog to the left of > the newsgroup name. Well, doesn't this actually show unread messages? I guess that a feature request would be valid in this case: to have a counter that increases as there appear new messages in newsgrups (no matter if their headers are downloaded or not), and is reset only when user enter the given newsgrup.
Re: [Dialog] Script question / problem
Author: Marcus Mönnig
Date: Wed, 01 Sep 2004 09:32
Date: Wed, 01 Sep 2004 09:32
17 lines
2376 bytes
2376 bytes
*Krzysztof Trybowski*, 1 Sep. 04, 10:45: >> There's no way to do that. Once you downloaded the headers, there *are* no >> further new messages on the server, thus the zero is correct. You should >> however see a red number showing the new messages in Dialog to the left of >> the newsgroup name. > > Well, doesn't this actually show unread messages? Yes. Unread messages and new messages is the same. So, I'm not sure what you are looking for here. 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] Script question / problem
Author: Enrico Bauer
Date: Wed, 01 Sep 2004 09:38
Date: Wed, 01 Sep 2004 09:38
20 lines
2021 bytes
2021 bytes
01.09.2004 10:45:01, *Krzysztof Trybowski*: > I guess that a feature request would be valid in this case: to have a > counter that increases as there appear new messages in newsgrups (no matter > if their headers are downloaded or not), and is reset only when user enter > the given newsgrup. ,---- [dialog.chm::/theheaderlist.htm] | The first line on this panel shows the name of the active newsgroup, an | optional tag line (a short description of the newsgroup) and the number | of new messages, the number of new messages with bodies, the number of | messages not yet deleted and the total number of messages, including the | already deleted ones. '---- HTH Enrico B. -- No fear. No distractions. The ability to let that which does not matter truly slide.
Re: [Dialog] Script question / problem
Author: Krzysztof Trybowski
Date: Wed, 01 Sep 2004 21:18
Date: Wed, 01 Sep 2004 21:18
25 lines
2719 bytes
2719 bytes
On Wed, 1 Sep 2004 11:32:32 +0200, Marcus Mönnig wrote: > *Krzysztof Trybowski*, 1 Sep. 04, 10:45: > >>> There's no way to do that. Once you downloaded the headers, there *are* no >>> further new messages on the server, thus the zero is correct. You should >>> however see a red number showing the new messages in Dialog to the left of >>> the newsgroup name. >> >> Well, doesn't this actually show unread messages? > > Yes. Unread messages and new messages is the same. So, I'm not sure what you > are looking for here. Not for me! I don't read all messages, and I don't like to mark everything read, because I'd still like to keep record of what I actually have read. On the contrary I need to know how many posts arrived to newsgrup since I last browsed it (meaning: displayed on my screen and read its headers). So, I'd like to have a counter for each group that is increased always when we know something new has arrived (no matter, if those headers have been already downloaded or not, since by entering a newsgroup they will be downloaded anyway). The counter would be set to zero only when a user enters the given newsgrup (hence -- displays headers on his screen).
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