Re: play a sound when IE opens a new window?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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
.



Relevant Pages

  • Re: Character names
    ... "verbose" mode off unless you want your chat window spammed with info about ... Sagart - Undead Priest (lvl 55) ... Beag - Dwarf Paladin ...
    (alt.games.warcraft)
  • Re: Beware Getting Reported
    ... thought to isolate that channel in its own window. ... Multiple windows for chat is a great way to separate the wheat from ... Separating it on another channel might make it usable. ...
    (alt.games.warcraft)
  • Re: communicator time out
    ... You may want to use the link below to post this to the MS Office Communicator newsgroup and describe your setup in a bit more ... When in a chat and nobody enters text for 10 minutes, ... If you enter text and send to the chat, it opens up another chat window so ...
    (microsoft.public.office.misc)
  • Re: activating windows from a separate thread
    ... programs where you have your main contacts window and multiple chat windows. ... > is called from the child form, it's visible flag is set to false. ... > I've tried calling invoke directly without testing...I get an exception ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Beware Getting Reported
    ... thought to isolate that channel in its own window. ... Multiple windows for chat is a great way to separate the wheat from ... It takes up more screen space, but it means the guild chat and all the ...
    (alt.games.warcraft)