Thread View: news.software.readers
9 messages
9 total messages
Started by Bob Henson
Mon, 22 Nov 2010 14:52
Dialog Scripts
Author: Bob Henson
Date: Mon, 22 Nov 2010 14:52
Date: Mon, 22 Nov 2010 14:52
15 lines
2026 bytes
2026 bytes
I just set up a little script in Dialog which I copied verbatim from the Help files, and which checks for e-mail on all accounts and news on all groups. I put it in OnStartup in the Events scripts. The script worked fine when I ran it from the editor, so I compiled it, and assumed it would be called and run when Dialog ran. It isn't. Can anyone tell me what else I have to do to get it to run when I start Dialog? Another minor query, the splash screen that runs when Dialog starts flashes past so quickly that I can't read it anyway. As it is thus pointless, can it be disabled for tidiness? -- Regards, Bob Don't remarry - just find a women you hate and give her a house.
Re: Dialog Scripts
Author: Eggs Zachtly
Date: Mon, 22 Nov 2010 21:29
Date: Mon, 22 Nov 2010 21:29
17 lines
2165 bytes
2165 bytes
Bob Henson said: > I just set up a little script in Dialog which I copied verbatim from the > Help files, and which checks for e-mail on all accounts and news on all > groups. I put it in OnStartup in the Events scripts. The script worked fine > when I ran it from the editor, so I compiled it, and assumed it would be > called and run when Dialog ran. It isn't. Can anyone tell me what else I > have to do to get it to run when I start Dialog? IIRC, that's a two part script. Did you set the OnTimer1 part of the script correctly (re: in the OnTimer1 section of the "Event scripts"? -- Eggs -I know it sounds like I'm in denial, but I'm not.
Re: Dialog Scripts
Author: Oliver Cromm
Date: Mon, 22 Nov 2010 23:03
Date: Mon, 22 Nov 2010 23:03
26 lines
2576 bytes
2576 bytes
* Bob Henson: > I just set up a little script in Dialog which I copied verbatim from the > Help files, and which checks for e-mail on all accounts and news on all > groups. I put it in OnStartup in the Events scripts. The script worked fine > when I ran it from the editor, so I compiled it, and assumed it would be > called and run when Dialog ran. It isn't. Can anyone tell me what else I > have to do to get it to run when I start Dialog? If it is in OnStartup, it should be run one time when you start Dialog. Did it do that? If you want to fetch news and/or mail at intervals, you need to set up timers in OnStartup and then pull News/Mail in OnTimer1, OnTimer2 (that's what Eggs Zachtly referred to). > Another minor query, the splash screen that runs when Dialog starts flashes > past so quickly that I can't read it anyway. As it is thus pointless, can > it be disabled for tidiness? Not really. There are people who made it invisible, but that's really a hack. -- gugelfug, m., späsze, unfug GRIMM, Deutsches Wörterbuch
Re: Dialog Scripts
Author: Bob Henson
Date: Tue, 23 Nov 2010 09:19
Date: Tue, 23 Nov 2010 09:19
46 lines
3064 bytes
3064 bytes
Oliver Cromm wrote:
> * Bob Henson:
>
>> I just set up a little script in Dialog which I copied verbatim from the
>> Help files, and which checks for e-mail on all accounts and news on all
>> groups. I put it in OnStartup in the Events scripts. The script worked fine
>> when I ran it from the editor, so I compiled it, and assumed it would be
>> called and run when Dialog ran. It isn't. Can anyone tell me what else I
>> have to do to get it to run when I start Dialog?
>
> If it is in OnStartup, it should be run one time when you start Dialog.
> Did it do that?
No, it didn't. That's what I expected but I guess it needs more adding to
it somewhere. Perhaps it needs to be moved somewhere else in the directory
structure - I assumed it would automatically be in the correct place. I'm
only guessing what to do, I've no idea about programming in whatever
language it is. Here's what's in Onstartup - taken from the Help file -
Program GetHeadersAndEmail;
Begin
ADo('GetNewHeadersInSubscribedGroups');
ADo('GetNewEmailsForAllIdentities');
End.
Running that does "exactly what is says on the tin" - it fetches all e-mail
and news - but only when I run it manually.
>
> If you want to fetch news and/or mail at intervals, you need to set up
> timers in OnStartup and then pull News/Mail in OnTimer1, OnTimer2
> (that's what Eggs Zachtly referred to).
I'm not bothered about that too much, I was only trying to get it to run on
startup. It's no big deal either way, but I thought it would be handy.
--
Regards, Bob
It's not the pace of life that concerns me, it's the sudden stop at the
end.
Re: Dialog Scripts
Author: teabag
Date: Tue, 23 Nov 2010 15:00
Date: Tue, 23 Nov 2010 15:00
61 lines
3331 bytes
3331 bytes
On Tue, 23 Nov 2010 09:19:44 +0000, Bob Henson wrote:
> Oliver Cromm wrote:
>
>> * Bob Henson:
>>
>>> I just set up a little script in Dialog which I copied verbatim from the
>>> Help files, and which checks for e-mail on all accounts and news on all
>>> groups. I put it in OnStartup in the Events scripts. The script worked fine
>>> when I ran it from the editor, so I compiled it, and assumed it would be
>>> called and run when Dialog ran. It isn't. Can anyone tell me what else I
>>> have to do to get it to run when I start Dialog?
>>
>> If it is in OnStartup, it should be run one time when you start Dialog.
>> Did it do that?
>
> No, it didn't. That's what I expected but I guess it needs more adding to
> it somewhere. Perhaps it needs to be moved somewhere else in the directory
> structure - I assumed it would automatically be in the correct place. I'm
> only guessing what to do, I've no idea about programming in whatever
> language it is. Here's what's in Onstartup - taken from the Help file -
>
> Program GetHeadersAndEmail;
>
> Begin
>
> ADo('GetNewHeadersInSubscribedGroups');
>
> ADo('GetNewEmailsForAllIdentities');
>
> End.
>
> Running that does "exactly what is says on the tin" - it fetches all e-mail
> and news - but only when I run it manually.
>
>>
>> If you want to fetch news and/or mail at intervals, you need to set up
>> timers in OnStartup and then pull News/Mail in OnTimer1, OnTimer2
>> (that's what Eggs Zachtly referred to).
>
> I'm not bothered about that too much, I was only trying to get it to run on
> startup. It's no big deal either way, but I thought it would be handy.
Herre's what is in mine:
program OnStartup;
procedure OnStartup;
begin
ADo('GetNewHeadersInSubscribedGroups');
// ADo('GetNewEmailsForAllIdentities');
//Mails
timer1.interval:=60000*5;
timer1.enabled:=true;
//News
timer2.interval:=60000*30;
timer2.enabled:=true;
end;
begin
end.
Adds in the interval "get" that you don't have.
Re: Dialog Scripts
Author: Oliver Cromm
Date: Tue, 23 Nov 2010 18:13
Date: Tue, 23 Nov 2010 18:13
44 lines
2723 bytes
2723 bytes
* Bob Henson:
> Oliver Cromm wrote:
>
>> If it is in OnStartup, it should be run one time when you start Dialog.
>> Did it do that?
>
> No, it didn't. That's what I expected but I guess it needs more adding to
> it somewhere. Perhaps it needs to be moved somewhere else in the directory
> structure - I assumed it would automatically be in the correct place.
Should be.
> I'm
> only guessing what to do, I've no idea about programming in whatever
> language it is. Here's what's in Onstartup - taken from the Help file -
>
> Program GetHeadersAndEmail;
>
> Begin
>
> ADo('GetNewHeadersInSubscribedGroups');
>
> ADo('GetNewEmailsForAllIdentities');
>
> End.
>
> Running that does "exactly what is says on the tin" - it fetches all e-mail
> and news - but only when I run it manually.
Comparing with what's in my OnStartup, it seems to be missing an
additional
begin
end.
at the end. Don't ask me why that is needed, but all my scripts have it.
And program, begin, end are all non-capitalized in my version, but I
don't think that's important.
--
die gugelmänner schleppen leichen, kranke LILIENCRON
GRIMM, Deutsches Wörterbuch
Re: Dialog Scripts
Author: Bob Henson
Date: Wed, 24 Nov 2010 12:20
Date: Wed, 24 Nov 2010 12:20
46 lines
2839 bytes
2839 bytes
teabag wrote:
> On Tue, 23 Nov 2010 09:19:44 +0000, Bob Henson wrote:
>
>> Oliver Cromm wrote:
>>
>>> * Bob Henson:
>>>
>>>> I just set up a little script in Dialog which I copied verbatim from the
>>>> Help files, and which checks for e-mail on all accounts and news on all
>>>> groups. I put it in OnStartup in the Events scripts. The script worked fine
>>>> when I ran it from the editor, so I compiled it, and assumed it would be
>>>> called and run when Dialog ran. It isn't. Can anyone tell me what else I
>>>> have to do to get it to run when I start Dialog?
>> I'm not bothered about that too much, I was only trying to get it to run on
>> startup. It's no big deal either way, but I thought it would be handy.
>
> Herre's what is in mine:
>
> program OnStartup;
> procedure OnStartup;
> begin
> ADo('GetNewHeadersInSubscribedGroups');
> // ADo('GetNewEmailsForAllIdentities');
> //Mails
> timer1.interval:=60000*5;
> timer1.enabled:=true;
> //News
> timer2.interval:=60000*30;
> timer2.enabled:=true;
> end;
> begin
> end.
>
> Adds in the interval "get" that you don't have.
OK, I'll try some modifications on that basis and see what happens. Thanks.
--
Regards, Bob
Do infants enjoy infancy as much as adults enjoy adultery?
&
Regards, Bob
Do unto others, then run like hell.
Re: Dialog Scripts
Author: Bob Henson
Date: Wed, 24 Nov 2010 13:01
Date: Wed, 24 Nov 2010 13:01
20 lines
1974 bytes
1974 bytes
Oliver Cromm wrote: > Comparing with what's in my OnStartup, it seems to be missing an > additional > > begin > end. > > at the end. Don't ask me why that is needed, but all my scripts have it. > > And program, begin, end are all non-capitalized in my version, but I > don't think that's important. I made those changes, and it didn't help - so I'm off the try the other ideas now. -- Regards, Bob Why is there only one Competition Commission?
Re: Dialog Scripts
Author: Bob Henson
Date: Wed, 24 Nov 2010 13:08
Date: Wed, 24 Nov 2010 13:08
47 lines
2479 bytes
2479 bytes
teabag wrote:
>
> Herre's what is in mine:
>
> program OnStartup;
> procedure OnStartup;
> begin
> ADo('GetNewHeadersInSubscribedGroups');
> // ADo('GetNewEmailsForAllIdentities');
> //Mails
> timer1.interval:=60000*5;
> timer1.enabled:=true;
> //News
> timer2.interval:=60000*30;
> timer2.enabled:=true;
> end;
> begin
> end.
>
> Adds in the interval "get" that you don't have.
That did it. I didn't add the timers because I don't really need those. The
following worked just fine
program OnStartup;
Procedure OnStartup;
begin
ADo('GetNewHeadersInSubscribedGroups');
ADo('GetNewEmailsForAllIdentities');
end;
begin
end.
It looks as though the precedure line was the critical one, although I did
change the names to "OnStartup" too, so that may have been part of it.
Anyone, thanks to all for the help.
--
Regards, Bob
Alcohol and Calculus don't mix. Never drink and derive.
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