Re: play a sound when IE opens a new window?
- From: Pete <speedy99ukREMOVETHISBIT@xxxxxxxxxxx>
- Date: Sun, 06 May 2007 21:58:58 +0100
On Thu, 3 May 2007 09:35:00 -0700, Mark L. Ferguson
<MarkLFerguson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
You use the title of the window to detect that. For example, if the chat
window had a title starting with "My Chat Window...", you would run this
script file.
--detect window.vbs--
set shell=createobject("wscript.shell")
while NOT shell.appactivate("My Chat Window")
wscript.sleep 2000
wend
shell.run "c:/windows/system32/sndrec32.exe /play /close
c:/windows/media/ding.wav"
wscript.quit
--end file--
the longer line of this code will probably have a break put in it by the
newsgroup software. the shell.run statement goes all the way to the ding.wav
Run the file each time you want to detect a new chat window.
It works - many thanks Mark!!
Pete
.
- References:
- play a sound when IE opens a new window?
- From: Pete
- play a sound when IE opens a new window?
- Prev by Date: RE: Webcam installation problem
- Next by Date: Re: Outlook Express 6 problems
- Previous by thread: play a sound when IE opens a new window?
- Next by thread: Re: serious computer problems arising...
- Index(es):
Relevant Pages
|