Article View: news.software.readers
Article #259696Re: [Dialog] Script check
From: 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
Technical Details
Message-ID:
<zhf1lzlfjaf8$.dlg@sqwertz.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mailReferences:
<uozbanidqg7h.dlg@jimXscott.co.uk> <6bimlyt85m8c.dlg@sqwertz.com> <8r9ll4ks9rag$.dlg@jimXscott.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <zhf1lzlfjaf8$.dlg@sqwertz.com> Subject: Re: [Dialog] Script check Date: Fri, 6 Nov 2015 12:40:03 -0600 From: Sqwertz <swertz@cluemail.compost> References: <uozbanidqg7h.dlg@jimXscott.co.uk> <6bimlyt85m8c.dlg@sqwertz.com> <8r9ll4ks9rag$.dlg@jimXscott.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail Newsgroups: news.software.readers User-Agent: ForteAgent/7.10.32.1212 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Organization: Me, Myself, and Inc. X-no-archive: yes Lines: 45 X-Complaints-To: abuse@blocknews.net NNTP-Posting-Date: Fri, 06 Nov 2015 18:40:01 UTC X-Received-Bytes: 2150 X-Received-Body-CRC: 503836553