Volume Query And Control Service
Download: Included with Services Host Download
(Also, source is included)
Code:
©2005 FrodoPlayer.com
©2005 Kevin Lincecum
VB Example
FrodoCommObject.PostMessageByName "VolumeService", "SET", "VOLUME", "XML", "<?xml version=""1.0"" encoding=""UTF-8""?><Volume><Master><Level>75.4</Level></Master></Volume>"
FrodoCommObject.PostMessageByName "VolumeService", "SET", "VOLUME", "XML", "<?xml version=""1.0"" encoding=""UTF-8""?><Volume><Master><Mute>False</Mute></Master></Volume>"
FrodoCommObject.PostMessageByName "VolumeService", "SET", "VOLUME", "XML", "<?xml version=""1.0"" encoding=""UTF-8""?><Volume><Master><Command>Up</Command></Master></Volume>"
Messages sent FROM the volume service:
Message Type: STATUS
Event Name: VOLUME
Format: XML
Should look just like messages sent to the service, except
without the "Command" attributes.
Messages sent TO the volume service:
FrodoCommName: VolumeService
Message Type: SET
Event Name: VOLUME
Format: XML
XML Messages List:
(Note, all are listed in one message, and will work.
but not all are needed, you can do one at a time or all.
This also applies to setting properties for each line)
Sample Speech:
<?xml version="1.0" encoding="UTF-8"?>
<Volume>
<Master>
<Level>75.4</Level>
<Mute>False</Mute>
<Command>Up</Command>
<Command>Down</Command>
</Master>
<Wave>
<Level>75.4</Level>
<Mute>False</Mute>
<Command>Up</Command>
<Command>Down</Command>
</Wave>
<CD>
<Level>75.4</Level>
<Mute>False</Mute>
<Command>Up</Command>
<Command>Down</Command>
</CD>
<Mic>
<Level>75.4</Level>
<Mute>False</Mute>
<Command>Up</Command>
<Command>Down</Command>
</Mic>
<Line>
<Level>75.4</Level>
<Mute>False</Mute>
<Command>Up</Command>
<Command>Down</Command>
</Line>
</Volume>"
Bookmarks