Thread View: news.software.readers
5 messages
5 total messages
Started by Jim S
Thu, 05 Nov 2015 20:59
[Dialog] Script check
Author: Jim S
Date: Thu, 05 Nov 2015 20:59
Date: Thu, 05 Nov 2015 20:59
18 lines
1466 bytes
1466 bytes
I thought this would send me a sound when someone replied to a post, but
it's not working.
Can someone tell me what I did wrong.
function PlaySound( Filename: PChar; Options: LongWord ): Boolean;
external '***@winmm.dll stdcall';
procedure OnXover(Var XoverData:TXoverData);
begin
if pos('@jimXscott.co.uk',xoverdata.references)>0 then
PlaySound('c:\windows\media\notify.wav', 1 );
end;
begin
end.
--
Jim S
Re: [Dialog] Script check
Author: Sqwertz
Date: Fri, 06 Nov 2015 04:27
Date: Fri, 06 Nov 2015 04:27
23 lines
1586 bytes
1586 bytes
On Thu, 5 Nov 2015 20:59:45 +0000, Jim S wrote:
> I thought this would send me a sound when someone replied to a post, but
> it's not working.
> Can someone tell me what I did wrong.
>
> function PlaySound( Filename: PChar; Options: LongWord ): Boolean;
> external '***@winmm.dll stdcall';
>
> procedure OnXover(Var XoverData:TXoverData);
> begin
> if pos('@jimXscott.co.uk',xoverdata.references)>0 then
> PlaySound('c:\windows\media\notify.wav', 1 );
> end;
>
> begin
> end.
What is "***"? I see somebody posted that script 12 years ago, but
that just doesn't look right. Maybe try 'sndPlaySoundA' instead of
'***'? That's what all the examples I see use.
-sw
Re: [Dialog] Script check
Author: Jim S
Date: Fri, 06 Nov 2015 10:26
Date: Fri, 06 Nov 2015 10:26
31 lines
2044 bytes
2044 bytes
On Thu, 5 Nov 2015 22:27:43 -0600, Sqwertz wrote:
> On Thu, 5 Nov 2015 20:59:45 +0000, Jim S wrote:
>
>> I thought this would send me a sound when someone replied to a post, but
>> it's not working.
>> Can someone tell me what I did wrong.
>>
>> function PlaySound( Filename: PChar; Options: LongWord ): Boolean;
>> external '***@winmm.dll stdcall';
>>
>> procedure OnXover(Var XoverData:TXoverData);
>> begin
>> if pos('@jimXscott.co.uk',xoverdata.references)>0 then
>> PlaySound('c:\windows\media\notify.wav', 1 );
>> end;
>>
>> begin
>> end.
>
> What is "***"? I see somebody posted that script 12 years ago, but
> that just doesn't look right. Maybe try 'sndPlaySoundA' instead of
> '***'? That's what all the examples I see use.
>
> -sw
Oops. I don't know how that got there. Thanks.
If it works now I'll try the one that 'sounds' for replies but not my own
posts.
--
Jim S
Re: [Dialog] Script check
Author: Jim S
Date: Fri, 06 Nov 2015 10:51
Date: Fri, 06 Nov 2015 10:51
30 lines
1999 bytes
1999 bytes
On Thu, 5 Nov 2015 22:27:43 -0600, Sqwertz wrote:
> On Thu, 5 Nov 2015 20:59:45 +0000, Jim S wrote:
>
>> I thought this would send me a sound when someone replied to a post, but
>> it's not working.
>> Can someone tell me what I did wrong.
>>
>> function PlaySound( Filename: PChar; Options: LongWord ): Boolean;
>> external '***@winmm.dll stdcall';
>>
>> procedure OnXover(Var XoverData:TXoverData);
>> begin
>> if pos('@jimXscott.co.uk',xoverdata.references)>0 then
>> PlaySound('c:\windows\media\notify.wav', 1 );
>> end;
>>
>> begin
>> end.
>
> What is "***"? I see somebody posted that script 12 years ago, but
> that just doesn't look right. Maybe try 'sndPlaySoundA' instead of
> '***'? That's what all the examples I see use.
>
> -sw
Thanks that did it.
If you reply now I should get a sound, since you are not me :-)
--
Jim S
Re: [Dialog] Script check
Author: Sqwertz
Date: Fri, 06 Nov 2015 18:40
Date: Fri, 06 Nov 2015 18:40
45 lines
2368 bytes
2368 bytes
On Fri, 6 Nov 2015 10:26:36 +0000, Jim S wrote:
> On Thu, 5 Nov 2015 22:27:43 -0600, Sqwertz wrote:
>
>> On Thu, 5 Nov 2015 20:59:45 +0000, Jim S wrote:
>>
>>> I thought this would send me a sound when someone replied to a post, but
>>> it's not working.
>>> Can someone tell me what I did wrong.
>>>
>>> function PlaySound( Filename: PChar; Options: LongWord ): Boolean;
>>> external '***@winmm.dll stdcall';
>>>
>>> procedure OnXover(Var XoverData:TXoverData);
>>> begin
>>> if pos('@jimXscott.co.uk',xoverdata.references)>0 then
>>> PlaySound('c:\windows\media\notify.wav', 1 );
>>> end;
>>>
>>> begin
>>> end.
>>
>> What is "***"? I see somebody posted that script 12 years ago, but
>> that just doesn't look right. Maybe try 'sndPlaySoundA' instead of
>> '***'? That's what all the examples I see use.
>
> Oops. I don't know how that got there. Thanks.
A long time ago somebody did post that exact script with the ***'s.
> If it works now I'll try the one that 'sounds' for replies but not my own
> posts.
Note that if you get a handful (or more) replies during a Get New
Headers, that beep will probably get pretty irritating as it will
sound off for every new reply to your posts. I just colorize my posts
and followups with:
# Highlight my own posts and their followups
!setcolor(blue;default),watch message-id sqwertz
!setcolor(blue;default) references sqwertz
Glad you got it working.
-sw
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