![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||