🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by foxidrive Mon, 16 Jun 2003 11:52
[Dialog] Playing a sound on arrival of new email
#126461
Author: foxidrive
Date: Mon, 16 Jun 2003 11:52
46 lines
2623 bytes
My question was:

>>1) Can Dialog play a sound on arrival of new email?

And I was given this good advice:
 
>      not directly, but it's possible with scripting. marcus has
>      posted a solution on news.software.readers, so you might want
>      to google it up. look for "dialog" and "sound".

I found the thread at:
http://groups.google.com.au/groups?hl=en&lr=&ie=UTF-8&threadm=1kl6t78iexk8.
18aietz27qbn.dlg%4040tude.net&rnum=2&prev=/groups%3Fq%3Dnews.software.reade
rs%2Bdialog%2B%2522play%2Bsound%2522%26hl%3Den%26lr%3D%26ie%3DUTF-8%26selm%
3D1kl6t78iexk8.18aietz27qbn.dlg%254040tude.net%26rnum%3D2

but I cannot get sound to play on arrival of email.

I successfully compiled the playsound function and a command to play a wav
file into a message script, so that's working.

The instruction from Marcus that I didn't quite follow was this:

"Make sure you generate MsgIDs with Dialog that are based on your domain"
(...and then use this OnXover event script)

Can someone please shed some light on this for me?

My script follows:

===[start]===
program OnXover;
function PlaySound( Filename: PChar; Options: LongWord ): Boolean;
         external 'sndPlaySoundA@winmm.dll stdcall';
procedure OnXover(Var XoverData:TXoverData);
begin
 if pos('what goes here?',xoverdata.references)>0 then 
 PlaySound( 'c:\Progra~1\Internet\40TUDE\mail.wav', 1 );
end;
begin
end.
===[end]===

Thanks.
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