🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
9 messages
9 total messages Started by Frank Lekens Sun, 18 Jan 2004 19:47
[Dialog] automatically get new headers
#141551
Author: Frank Lekens
Date: Sun, 18 Jan 2004 19:47
26 lines
1840 bytes
I've implemented the script on
http://40tude.com/dialog/wiki/index.php/ScriptSoundOnReply to make Dialog
play a wav sound whenever someone replies to a message of mine.

The script is as follows:

program OnXover;

function PlaySound( Filename: PChar; Options: LongWord ): Boolean;
         external 'sndPlaySoundA@winmm.dll stdcall';

procedure OnXover(Var XoverData:TXoverData);
begin
if pos('@RonsDomainUsedInHisMsgIDs.uk',xoverdata.references)>0 then
 PlaySound( 'c:\windows\media\tada.wav', 1 );
end;

begin
end.

Can this be changed so as to have Dialog *not* play that wav when the next
addition to the thread comes from myself? So that only other people's
contributions are signalled, not my own?
-- 
Frank
(xs4all dot nl is where it's really @)
Re: [Dialog] automatically get new headers
#141575
Author: Antonio 'Gandalf' Favata
Date: Mon, 19 Jan 2004 01:42
17 lines
2016 bytes
news.software.readers ~ 18/01/04 20:47:23 ~ Frank Lekens:

> Can this be changed so as to have Dialog *not* play that wav when the
> next addition to the thread comes from myself? So that only other
> people's contributions are signalled, not my own?

I didn't try (not even to compile), but it looks like this...

Simply change
|| if pos('@coconino.nl',xoverdata.references)>0 then
to
|| if (pos('@coconino.nl',xoverdata.references)>0) and
|| (pos('@coconino.nl',xoverdata.message-id)=0) then
(all on the same line). LMK if I got this right :)
-- 
Fare Well! | Freeware powerful newsreader with multilingual GUI
G          | 40tude Dialog 2.0.10.1 ~ <http://snurl.com/dialog>
Re: [Dialog] automatically get new headers
#141590
Author: Frank Lekens
Date: Mon, 19 Jan 2004 07:05
27 lines
2357 bytes
Op Mon, 19 Jan 2004 02:42:49 +0100 schreef Antonio 'Gandalf' Favata:

> news.software.readers ~ 18/01/04 20:47:23 ~ Frank Lekens:
> 
>> Can this be changed so as to have Dialog *not* play that wav when the
>> next addition to the thread comes from myself? So that only other
>> people's contributions are signalled, not my own?
> 
> I didn't try (not even to compile), but it looks like this...
> 
> Simply change
>|| if pos('@coconino.nl',xoverdata.references)>0 then
> to
>|| if (pos('@coconino.nl',xoverdata.references)>0) and
>|| (pos('@coconino.nl',xoverdata.message-id)=0) then
> (all on the same line). LMK if I got this right :)

Nope, the compiling fails with the message:
[Error] (8:80): Unknown identifier 'MESSAGE'

Note also that I think the wav file is played also when I post a new
article, where 'coconino' is present only in the message-id, and there is
as yet no 'references' header in the post. So maybe the script can't
distinguish between message-id and the references header?
-- 
Frank
(xs4all dot nl is where it's really @)
Re: [Dialog] automatically get new headers
#141599
Author: Frank Lekens
Date: Mon, 19 Jan 2004 10:29
10 lines
1627 bytes
Op Mon, 19 Jan 2004 08:05:23 +0100 schreef Frank Lekens:

> Note also that I think the wav file is played also when I post a new
> article, where 'coconino' is present only in the message-id, and there is
> as yet no 'references' header in the post.

I was wrong about that. The wav does *not* sound when I post a new article.
-- 
Frank
(xs4all dot nl is where it's really @)
Re: [Dialog] automatically get new headers
#141604
Author: Antonio 'Gandalf' Favata
Date: Mon, 19 Jan 2004 17:10
14 lines
2031 bytes
news.software.readers ~ 19/01/04 08:05:23 ~ Frank Lekens:

>>|| (pos('@coconino.nl',xoverdata.message-id)=0) then
>> (all on the same line). LMK if I got this right :)
> Nope, the compiling fails with the message:
> [Error] (8:80): Unknown identifier 'MESSAGE'

I was just guessing that the identifier had to have the same name
of the header but it isn't so. Use msgid instead of message-id :)
-- 
Fare Well! | Freeware powerful newsreader with multilingual GUI
G          | 40tude Dialog 2.0.10.1 ~ <http://snurl.com/dialog>

Now playing: Seal - Future love paradise
Re: [Dialog] automatically get new headers
#141605
Author: Frank Lekens
Date: Mon, 19 Jan 2004 17:17
21 lines
2015 bytes
Op Mon, 19 Jan 2004 18:10:05 +0100 schreef Antonio 'Gandalf' Favata:

> news.software.readers ~ 19/01/04 08:05:23 ~ Frank Lekens:
> 
>>>|| (pos('@coconino.nl',xoverdata.message-id)=0) then
>>> (all on the same line). LMK if I got this right :)
>> Nope, the compiling fails with the message:
>> [Error] (8:80): Unknown identifier 'MESSAGE'
> 
> I was just guessing that the identifier had to have the same name
> of the header but it isn't so. Use msgid instead of message-id :)

Still no dice. I pasted in the following line (one one line):
if pos('@coconino.nl',xoverdata.references)>0 and
pos('@coconino.nl',xoverdata.msgid)=0 then

and on compiling it said 
[Error] (8:89): Type mismatch
-- 
Frank
(xs4all dot nl is where it's really @)
Re: [Dialog] automatically get new headers
#141608
Author: Antonio 'Gandalf' Favata
Date: Mon, 19 Jan 2004 17:42
18 lines
2157 bytes
news.software.readers ~ 19/01/04 18:17:28 ~ Frank Lekens:

> Still no dice. I pasted in the following line (one one line):
> if pos('@coconino.nl',xoverdata.references)>0 and
> pos('@coconino.nl',xoverdata.msgid)=0 then
> and on compiling it said 
> [Error] (8:89): Type mismatch

Not my fault this time, you forgot the brackets ;)

Try again:
|| if (pos('@coconino.nl',xoverdata.references)>0) and
|| (pos('@coconino.nl',xoverdata.msgid)=0) then
-- 
Fare Well! | Freeware powerful newsreader with multilingual GUI
G          | 40tude Dialog 2.0.10.1 ~ <http://snurl.com/dialog>

Now playing: Articolo 31 - 2030
Re: [Dialog] automatically get new headers
#141911
Author: Frank Lekens
Date: Thu, 22 Jan 2004 20:18
22 lines
2200 bytes
Op Mon, 19 Jan 2004 18:42:01 +0100 schreef Antonio 'Gandalf' Favata:

> news.software.readers ~ 19/01/04 18:17:28 ~ Frank Lekens:
> 
>> Still no dice. I pasted in the following line (one one line):
>> if pos('@coconino.nl',xoverdata.references)>0 and
>> pos('@coconino.nl',xoverdata.msgid)=0 then
>> and on compiling it said 
>> [Error] (8:89): Type mismatch
> 
> Not my fault this time, you forgot the brackets ;)
> 
> Try again:
>|| if (pos('@coconino.nl',xoverdata.references)>0) and
>|| (pos('@coconino.nl',xoverdata.msgid)=0) then

My apologies for not getting back about this. I had somehow missed your
post.
I tried it out just now, and it worked fine. Many thanks.
-- 
Frank
(xs4all dot nl is where it's really @)
Re: [Dialog] automatically get new headers
#141935
Author: Antonio 'Gandalf' Favata
Date: Fri, 23 Jan 2004 01:24
12 lines
1964 bytes
Frank Lekens on news.software.readers:

> I tried it out just now, and it worked fine.

Glad to hear that.

> Many thanks.

You're welcome :)
-- 
Fare Well! | Freeware powerful newsreader with multilingual GUI
G          | 40tude Dialog 2.0.10.1 ~ <http://snurl.com/dialog>
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