My Own C# Alarm Clock - Newbie Question

  • Thread starter Thread starter orekinbck
  • Start date Start date
O

orekinbck

Hi

I am trying to write a simple C# windows application that plays a WMA
file at a set time. If the application is not stopped the WMA file
keeps replaying at a higher volume.

Is there a simple way to set the volume and play a WMA file through C#
? I am still on C# L plates so example code would be greatly
appreciated!!

TIA
Bill
__________________________________________________________________
btw ..... as you can probably tell, this 'brute force' approach to
forcing myself to get up in the mornings!! I have started to develop
the somewhat disturbing ability to switch off an alarm clock in my
sleep. Not good for my career.
 
You can change the system volume instead of WMP's volume or write a WMP
plugin to receive commands from the alarm clock program and change the
volume like that. You might also be able to manually hack and do it
(emulate mouse movement and other crazy stuff), but I'm unsure about
that.
 
Thanks Hao, I have sorted it all out now. The Windows Media Player SDK
was surprisingly easy to use, I just grabbed the included C# sample and
butchered it from there !!!!!
 
Back
Top