Article View: news.software.readers
Article #203869Re: [dialog] scripts archive
From: wrobik
Date: Thu, 16 Aug 2007 13:16
Date: Thu, 16 Aug 2007 13:16
70 lines
3344 bytes
3344 bytes
On Thu, 16 Aug 2007 12:44:32 +0100, Jim S wrote:
>> it's an italian site, if you have problems with the translation, I'll be
>> glad to help you.
>
> OK I have the script that gives me a sound when someone replies to my post,
> but if I am out of the room I miss it. I used to have the same one, but it
> also 'scored' the reply/thread so I could spot the reply in among other
> headers.
I've never really used that script (I tested it once and didn't like
it), but did you notice that on the page I linked before there are two
versions of the script, one that matches only direct replies and one
that matches also indirect replies (the ones to someone who had replied
to you)?
I'll attach the code below with a little bit of translation in the
settings comments.
<code>
program OnXover;
//---------------------------- Impostazioni (settings)
---------------------------------//
const
myFQDN = 'maluc.it';
// mettere il proprio FQDN unico. (insert your FQDN)
sound1 = 'C:\windows\media\chimes.wav';
// mettere il proprio percorso e il suono preferito per le risposte
dirette. (Path to sound file for direct replies)
sound2 = 'C:\windows\media\chord.wav';
// mettere il proprio percorso e il suono preferito per le risposte
indirette. (Path to sound file for indirect replies)
//-------------------------- Fine Impostazioni (End of settings)
-------------------------------//
function PlaySound( Filename: PChar; Options: LongWord ): Boolean;
external 'sndPlaySoundA@winmm.dll stdcall';
procedure OnXover(Var XoverData:TXoverData);
var
r, m: string;
n: integer;
begin
r:=XoverData.References;
m:=XoverData.MsgID;
n:=Length(myFQDN);
if (pos(myFQDN,r)>0) and (pos(myFQDN,m)=0) then
if (copy(r, Length(r)-n,n+1)=myFQDN+'>') then
PlaySound(sound1, 1)
else
PlaySound(sound2, 1);
end;
begin
end.
</code>
--
w.
Jump in the urinal and stand on your head. |
I'm the one that's alive, you're all dead. | Ubik (P. K. Dick)
Technical Details
Message-ID:
<f6z4mip9rrev.7axi0zrg4xta.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!194.177.97.95.MISMATCH!x-privat.org!not-for-mailReferences:
<170uum7zlhg5u.dlg@ID-104726.news.individual.net> <bqvhv0hzk6k2$.dyxer3mr4rsa.dlg@40tude.net> <1aszluug7a60s.dlg@ID-104726.news.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <f6z4mip9rrev.7axi0zrg4xta.dlg@40tude.net>
Subject: Re: [dialog] scripts archive
Date: Thu, 16 Aug 2007 15:16:11 +0200
From: wrobik <wrobik@grokmail.com.invalid>
References: <170uum7zlhg5u.dlg@ID-104726.news.individual.net> <bqvhv0hzk6k2$.dyxer3mr4rsa.dlg@40tude.net> <1aszluug7a60s.dlg@ID-104726.news.individual.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!194.177.97.95.MISMATCH!x-privat.org!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Reply-To: wrobik@gmail.com
Organization: Boston Tea Party
X-Face: ;
)jslO)N,o:5!X3&x$$KfbOwDM5vyh7''/Pk4%)/F#]n6#f="#*nVV/'T)E/UpcDBG{vUt/%z\V7'q6dt<4;
FYa\@AjwI_)!jh&4]rNHHw>"XV:>!ZGizIJ~zin3AUdTJiMF4m3>Y~
NNTP-Posting-Host: $$_cwcq_innnwo9.extreme.x-privat.org
Lines: 70
X-Complaints-To: abuse@x-privat.org