Article View: news.software.readers
Article #243382Re: Dialog Scripts
From: 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.
Technical Details
Message-ID:
<r3bqz4f6a352.dlg@home.attbi.invalid>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!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mailReferences:
<1nz4dbxuja5mr.mcsw4gvqzysv$.dlg@40tude.net> <126dajg216sdx.dlg@mid.crommatograph.info> <1lnyo5ourd1nq$.1euswvc8r9gqy$.dlg@40tude.net>Show Full Headers
Complete Article Headers
Message-ID: <r3bqz4f6a352.dlg@home.attbi.invalid> Subject: Re: Dialog Scripts Date: Tue, 23 Nov 2010 07:00:03 -0800 From: teabag <tjluders@myrealbox.com> References: <1nz4dbxuja5mr.mcsw4gvqzysv$.dlg@40tude.net> <126dajg216sdx.dlg@mid.crommatograph.info> <1lnyo5ourd1nq$.1euswvc8r9gqy$.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!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: leftofright Lines: 61 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Injection-Info: mx02.eternal-september.org; posting-host="UbBnCRtoWcH8blebS6oU2A"; logging-data="16871"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190krx+FvChswuQK86A5hhJ" User-Agent: 40tude_Dialog/2.0.15.84 (6756fc72.382.102) Cancel-Lock: sha1:d+5LkN3RgqSTgDO/stMftqh4iWI= X-Original-Bytes: 3114