Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - 5342: Bug in timer gadget

Reply
 
Old 04-17-2006   #1 (permalink)
Deborggraeve Randy


 
 

5342: Bug in timer gadget

Not sure if this is the right location to post this, but don't know where
else i could post this.

I been looking at the new gadgets in the 5342 build and noticed a bug in the
timer gadget.
When the timer reaches 0, the sound effect is not played.

The bug is in the function sound
==============================================
if(s=="done")
{
system.Sound.PlaySound(s+".wav");
sw1 = true;
}
==============================================


i have changed the code to
==============================================
if(s=="done")
{
s= "assets\\media\\"+s+".wav";
wmp.play(s);
sw1 = true;
}
==============================================

now the sound effect is playing as it should be
Might be nice if the sound effect could be changed troug a settings page.


My System SpecsSystem Spec
Old 04-17-2006   #2 (permalink)
Zack Whittaker


 
 

Re: Bug in timer gadget

Seeing as I don't have sound on my main Vista machine, I didn't even know
there was a sound!! But great tip for the workaround!

--
Zack Whittaker
» ZackNET Enterprises: www.zacknet.co.uk
» MSBlog on ResDev: www.msblog.org
» Vista Knowledge Base: www.vistabase.co.uk
» This mailing is provided "as is" with no warranties, and confers no
rights. All opinions expressed are those of myself unless stated so, and not
of my employer, best friend, Ghandi, my mother or my cat. Glad we cleared
that up!

--: Original message follows :--
"Deborggraeve Randy" <randy1130@moerstaal.nl> wrote in message
news:eyKk5TgYGHA.1196@TK2MSFTNGP03.phx.gbl...
> Not sure if this is the right location to post this, but don't know where
> else i could post this.
>
> I been looking at the new gadgets in the 5342 build and noticed a bug in
> the timer gadget.
> When the timer reaches 0, the sound effect is not played.
>
> The bug is in the function sound
> ==============================================
> if(s=="done")
> {
> system.Sound.PlaySound(s+".wav");
> sw1 = true;
> }
> ==============================================
>
>
> i have changed the code to
> ==============================================
> if(s=="done")
> {
> s= "assets\\media\\"+s+".wav";
> wmp.play(s);
> sw1 = true;
> }
> ==============================================
>
> now the sound effect is playing as it should be
> Might be nice if the sound effect could be changed troug a settings page.



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
BUG in Weather gadget: gadget moves from right to left after days! Vista General
Egg Timer Gadget Vista General
5342 and 5365 are indeed under an NDA. Vista General
5342 build Vista General
Can not install 5342 Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46