A kind soul kindly sent me this script which gives an audible alert when a
chat window opens on my PC.
It doesn't work on VISTA any ideas as to what needs to be changed?
set shell=createobject("wscript.shell")
while NOT shell.appactivate("Private Chat")
wscript.sleep 2000
wend
shell.run "c:/windows/media/tada.wav"
wscript.quit
On Jun 12, 5:52 am, "Billericay Pete" <billericayp...@hotmail.com>
wrote:
> A kind soul kindly sent me this script which gives an audible alert when a
> chat window opens on my PC.
> It doesn't work on VISTA any ideas as to what needs to be changed?
>
> set shell=createobject("wscript.shell")
> while NOT shell.appactivate("Private Chat")
> wscript.sleep 2000
> wend
> shell.run "c:/windows/media/tada.wav"
> wscript.quit
>
> Thanks
> Pete
It worked fine on XP - just doesn't do anything on vista - no errors - just
doesn't work....
thanks
Pete
<cheley_bonstell88@live.com> wrote in message
news:f598cc65-9d3b-4ff5-8d66-2a1b74933c3c@p25g2000hsf.googlegroups.com...
> On Jun 12, 5:52 am, "Billericay Pete" <billericayp...@hotmail.com>
> wrote:
>> A kind soul kindly sent me this script which gives an audible alert when
>> a
>> chat window opens on my PC.
>> It doesn't work on VISTA any ideas as to what needs to be changed?
>>
>> set shell=createobject("wscript.shell")
>> while NOT shell.appactivate("Private Chat")
>> wscript.sleep 2000
>> wend
>> shell.run "c:/windows/media/tada.wav"
>> wscript.quit
>>
>> Thanks
>> Pete
>
> what sort of errors are you getting?
>
> Does it work on Windows XP ?
>
"Billericay Pete" <billericaypete@hotmail.com> wrote in message
news:4851326f$0$2492$da0feed9@news.zen.co.uk...
> It worked fine on XP - just doesn't do anything on vista - no errors -
> just doesn't work....
> thanks
> Pete
>
> <cheley_bonstell88@live.com> wrote in message
> news:f598cc65-9d3b-4ff5-8d66-2a1b74933c3c@p25g2000hsf.googlegroups.com...
>> On Jun 12, 5:52 am, "Billericay Pete" <billericayp...@hotmail.com>
>> wrote:
>>> A kind soul kindly sent me this script which gives an audible alert when
>>> a
>>> chat window opens on my PC.
>>> It doesn't work on VISTA any ideas as to what needs to be changed?
>>>
>>> set shell=createobject("wscript.shell")
>>> while NOT shell.appactivate("Private Chat")
>>> wscript.sleep 2000
>>> wend
>>> shell.run "c:/windows/media/tada.wav"
>>> wscript.quit
>>>
>>> Thanks
>>> Pete
>>
>> what sort of errors are you getting?
>>
>> Does it work on Windows XP ?
>>
Hi Mark - I had a feeling that it may have been you who wrote the script
some years ago...
I ran it again, and in fact it did give a compilation error - 'line 5 char
1 - expected statement.'
I think I may have played around with it as it didn't work (and now messed
it up completely!)
c:/windows/media/tada.wav does work from the command line.
Thanks
Pete
"Mark L. Ferguson" <MarkLFerguson@discussions.microsoft.com> wrote in
message news:98F7C7F5-B52F-446A-837B-A7EF1D0426D2@microsoft.com...
> Does wscript show as a process in task manager? Does
> c:/windows/media/tada.wav work from the Run line?
>
> --
> click the Ratings button. Voting helps the web interface.
> http://www.microsoft.com/wn3/locales/help/help_en-us.htm see ''rate a
> post''
> Mark L. Ferguson
>
> "Billericay Pete" <billericaypete@hotmail.com> wrote in message
> news:4851326f$0$2492$da0feed9@news.zen.co.uk...
>> It worked fine on XP - just doesn't do anything on vista - no errors -
>> just doesn't work....
>> thanks
>> Pete
>>
>> <cheley_bonstell88@live.com> wrote in message
>> news:f598cc65-9d3b-4ff5-8d66-2a1b74933c3c@p25g2000hsf.googlegroups.com...
>>> On Jun 12, 5:52 am, "Billericay Pete" <billericayp...@hotmail.com>
>>> wrote:
>>>> A kind soul kindly sent me this script which gives an audible alert
>>>> when a
>>>> chat window opens on my PC.
>>>> It doesn't work on VISTA any ideas as to what needs to be changed?
>>>>
>>>> set shell=createobject("wscript.shell")
>>>> while NOT shell.appactivate("Private Chat")
>>>> wscript.sleep 2000
>>>> wend
>>>> shell.run "c:/windows/media/tada.wav"
>>>> wscript.quit
>>>>
>>>> Thanks
>>>> Pete
>>>
>>> what sort of errors are you getting?
>>>
>>> Does it work on Windows XP ?
>>>
In article <98F7C7F5-B52F-446A-837B-A7EF1D0426D2@microsoft.com>,
Mark L. Ferguson <MarkLFerguson@discussions.microsoft.com> wrote:
>Does wscript show as a process in task manager? Does
>c:/windows/media/tada.wav work from the Run line?
>
>--
Is the private chat window called Private Chat in Vista?
"the wharf rat" <wrat@panix.com> wrote in message
news:g2rdth$83a$1@reader2.panix.com...
> In article <98F7C7F5-B52F-446A-837B-A7EF1D0426D2@microsoft.com>,
> Mark L. Ferguson <MarkLFerguson@discussions.microsoft.com> wrote:
>>Does wscript show as a process in task manager? Does
>>c:/windows/media/tada.wav work from the Run line?
>>
>>--
>
> Is the private chat window called Private Chat in Vista?
>
wscript.quit
--end file--
Save this as "Private Chat.VBS", and keep notepad open while you run the
test, to give it a window with "Private Chat' in it.
"Billericay Pete" <billericaypete@hotmail.com> wrote in message
news:48513aa8$0$26090$db0fefd9@news.zen.co.uk...
> Hi Mark - I had a feeling that it may have been you who wrote the script
> some years ago...
> I ran it again, and in fact it did give a compilation error - 'line 5 char
> 1 - expected statement.'
> I think I may have played around with it as it didn't work (and now messed
> it up completely!)
> c:/windows/media/tada.wav does work from the command line.
>
> Thanks
> Pete
>
>
> "Mark L. Ferguson" <MarkLFerguson@discussions.microsoft.com> wrote in
> message news:98F7C7F5-B52F-446A-837B-A7EF1D0426D2@microsoft.com...
>> Does wscript show as a process in task manager? Does
>> c:/windows/media/tada.wav work from the Run line?
>>
>> --
>> click the Ratings button. Voting helps the web interface.
>> http://www.microsoft.com/wn3/locales/help/help_en-us.htm see ''rate a
>> post''
>> Mark L. Ferguson
>>
>> "Billericay Pete" <billericaypete@hotmail.com> wrote in message
>> news:4851326f$0$2492$da0feed9@news.zen.co.uk...
>>> It worked fine on XP - just doesn't do anything on vista - no errors -
>>> just doesn't work....
>>> thanks
>>> Pete
>>>
>>> <cheley_bonstell88@live.com> wrote in message
>>> news:f598cc65-9d3b-4ff5-8d66-2a1b74933c3c@p25g2000hsf.googlegroups.com...
>>>> On Jun 12, 5:52 am, "Billericay Pete" <billericayp...@hotmail.com>
>>>> wrote:
>>>>> A kind soul kindly sent me this script which gives an audible alert
>>>>> when a
>>>>> chat window opens on my PC.
>>>>> It doesn't work on VISTA any ideas as to what needs to be changed?
>>>>>
>>>>> set shell=createobject("wscript.shell")
>>>>> while NOT shell.appactivate("Private Chat")
>>>>> wscript.sleep 2000
>>>>> wend
>>>>> shell.run "c:/windows/media/tada.wav"
>>>>> wscript.quit
>>>>>
>>>>> Thanks
>>>>> Pete
>>>>
>>>> what sort of errors are you getting?
>>>>
>>>> Does it work on Windows XP ?
>>>>
want to rate your post, but can't see a rating button........
thanks again
Pete
"Mark L. Ferguson" <MarkLFerguson@discussions.microsoft.com> wrote in
message news:0BDAAB1B-6010-4C06-A4AC-D3487E2313E2@microsoft.com...
> --Private Chat.VBS--
> set shell=createobject("wscript.shell")
> while NOT shell.appactivate("Private Chat")
> wscript.sleep 5000
> wend
>
> shell.run "wmplayer.exe" & " /Play c:/windows/media/tada.wav"
> wscript.sleep 2000
> shell.run "taskkill /IM wmplayer.exe"
>
> wscript.quit
> --end file--
> Save this as "Private Chat.VBS", and keep notepad open while you run the
> test, to give it a window with "Private Chat' in it.
>
> --
> click the Ratings button. Voting helps the web interface.
> http://www.microsoft.com/wn3/locales/help/help_en-us.htm see ''rate a
> post''
> Mark L. Ferguson
>
> "Billericay Pete" <billericaypete@hotmail.com> wrote in message
> news:48513aa8$0$26090$db0fefd9@news.zen.co.uk...
>> Hi Mark - I had a feeling that it may have been you who wrote the script
>> some years ago...
>> I ran it again, and in fact it did give a compilation error - 'line 5
>> char 1 - expected statement.'
>> I think I may have played around with it as it didn't work (and now
>> messed it up completely!)
>> c:/windows/media/tada.wav does work from the command line.
>>
>> Thanks
>> Pete
>>
>>
>> "Mark L. Ferguson" <MarkLFerguson@discussions.microsoft.com> wrote in
>> message news:98F7C7F5-B52F-446A-837B-A7EF1D0426D2@microsoft.com...
>>> Does wscript show as a process in task manager? Does
>>> c:/windows/media/tada.wav work from the Run line?
>>>
>>> --
>>> click the Ratings button. Voting helps the web interface.
>>> http://www.microsoft.com/wn3/locales/help/help_en-us.htm see ''rate a
>>> post''
>>> Mark L. Ferguson
>>>
>>> "Billericay Pete" <billericaypete@hotmail.com> wrote in message
>>> news:4851326f$0$2492$da0feed9@news.zen.co.uk...
>>>> It worked fine on XP - just doesn't do anything on vista - no errors -
>>>> just doesn't work....
>>>> thanks
>>>> Pete
>>>>
>>>> <cheley_bonstell88@live.com> wrote in message
>>>> news:f598cc65-9d3b-4ff5-8d66-2a1b74933c3c@p25g2000hsf.googlegroups.com...
>>>>> On Jun 12, 5:52 am, "Billericay Pete" <billericayp...@hotmail.com>
>>>>> wrote:
>>>>>> A kind soul kindly sent me this script which gives an audible alert
>>>>>> when a
>>>>>> chat window opens on my PC.
>>>>>> It doesn't work on VISTA any ideas as to what needs to be changed?
>>>>>>
>>>>>> set shell=createobject("wscript.shell")
>>>>>> while NOT shell.appactivate("Private Chat")
>>>>>> wscript.sleep 2000
>>>>>> wend
>>>>>> shell.run "c:/windows/media/tada.wav"
>>>>>> wscript.quit
>>>>>>
>>>>>> Thanks
>>>>>> Pete
>>>>>
>>>>> what sort of errors are you getting?
>>>>>
>>>>> Does it work on Windows XP ?
>>>>>
"Mark L. Ferguson" <MarkLFerguson@discussions.microsoft.com> wrote in
message news:0BDAAB1B-6010-4C06-A4AC-D3487E2313E2@microsoft.com...
> --Private Chat.VBS--
> set shell=createobject("wscript.shell")
> while NOT shell.appactivate("Private Chat")
> wscript.sleep 5000
> wend
>
> shell.run "wmplayer.exe" & " /Play c:/windows/media/tada.wav"
> wscript.sleep 2000
> shell.run "taskkill /IM wmplayer.exe"
>
> wscript.quit
> --end file--
> Save this as "Private Chat.VBS", and keep notepad open while you run the
> test, to give it a window with "Private Chat' in it.
>
> --
> click the Ratings button. Voting helps the web interface.
> http://www.microsoft.com/wn3/locales/help/help_en-us.htm see ''rate a
> post''
> Mark L. Ferguson
>
> "Billericay Pete" <billericaypete@hotmail.com> wrote in message
> news:48513aa8$0$26090$db0fefd9@news.zen.co.uk...
>> Hi Mark - I had a feeling that it may have been you who wrote the script
>> some years ago...
>> I ran it again, and in fact it did give a compilation error - 'line 5
>> char 1 - expected statement.'
>> I think I may have played around with it as it didn't work (and now
>> messed it up completely!)
>> c:/windows/media/tada.wav does work from the command line.
>>
>> Thanks
>> Pete
>>
>>
>> "Mark L. Ferguson" <MarkLFerguson@discussions.microsoft.com> wrote in
>> message news:98F7C7F5-B52F-446A-837B-A7EF1D0426D2@microsoft.com...
>>> Does wscript show as a process in task manager? Does
>>> c:/windows/media/tada.wav work from the Run line?
>>>
>>> --
>>> click the Ratings button. Voting helps the web interface.
>>> http://www.microsoft.com/wn3/locales/help/help_en-us.htm see ''rate a
>>> post''
>>> Mark L. Ferguson
>>>
>>> "Billericay Pete" <billericaypete@hotmail.com> wrote in message
>>> news:4851326f$0$2492$da0feed9@news.zen.co.uk...
>>>> It worked fine on XP - just doesn't do anything on vista - no errors -
>>>> just doesn't work....
>>>> thanks
>>>> Pete
>>>>
>>>> <cheley_bonstell88@live.com> wrote in message
>>>> news:f598cc65-9d3b-4ff5-8d66-2a1b74933c3c@p25g2000hsf.googlegroups.com...
>>>>> On Jun 12, 5:52 am, "Billericay Pete" <billericayp...@hotmail.com>
>>>>> wrote:
>>>>>> A kind soul kindly sent me this script which gives an audible alert
>>>>>> when a
>>>>>> chat window opens on my PC.
>>>>>> It doesn't work on VISTA any ideas as to what needs to be changed?
>>>>>>
>>>>>> set shell=createobject("wscript.shell")
>>>>>> while NOT shell.appactivate("Private Chat")
>>>>>> wscript.sleep 2000
>>>>>> wend
>>>>>> shell.run "c:/windows/media/tada.wav"
>>>>>> wscript.quit
>>>>>>
>>>>>> Thanks
>>>>>> Pete
>>>>>
>>>>> what sort of errors are you getting?
>>>>>
>>>>> Does it work on Windows XP ?
>>>>>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.