Kor
October 20th, 2003, 10:36 AM
I would like to use mute on/off on master volume and with an osd message with percent and ber display.
When i toggle mute on my group works ok, but when i toggle mute off the volume do not turn back at the right value, but stay 0. :cry:
I've controlled with Girder Variable Display (F10) and reg25 is correct (alwas the same number when mute on/off is performed).
To turn up with volume i have to use the normal volume control.
this is the Mute Group
<?xml version="1.0" encoding="UTF-8" ?>
- <Girder>
- <Group Name="Mute" Identifier="17890" Enabled="TRUE">
- <MultiGroup Name="Mute (2 states)" Identifier="17891" Enabled="TRUE">
<Comments>Button: Mute ; You need 1 button on the Remote to toggle mute.</Comments>
<StateCount>1</StateCount>
<StateBegin>1</StateBegin>
<StateCurrent>1</StateCurrent>
<StateInvert>FALSE</StateInvert>
- <Command Name="Importing variables and functions" Identifier="17892" Enabled="TRUE">
<StateCount>1</StateCount>
<StateBegin>1</StateBegin>
<StateCurrent>1</StateCurrent>
<StateInvert>FALSE</StateInvert>
<OSD>FALSE</OSD>
<Submatch>FALSE</Submatch>
<Topmost>TRUE</Topmost>
<OneMatch>FALSE</OneMatch>
<UseVar>FALSE</UseVar>
<MatchHidden>FALSE</MatchHidden>
<MatchNum>1</MatchNum>
<ActionType>4</ActionType>
<ActionSubType>10</ActionSubType>
<bValue1>FALSE</bValue1>
<bValue2>FALSE</bValue2>
<bValue3>FALSE</bValue3>
<lValue1>17821</lValue1>
</Command>
- <Command Name="Mute" Identifier="17893" Enabled="TRUE">
<Comments>mute OS command</Comments>
<StateCount>1</StateCount>
<StateBegin>1</StateBegin>
<StateCurrent>1</StateCurrent>
<StateInvert>FALSE</StateInvert>
<OSD>FALSE</OSD>
<Submatch>FALSE</Submatch>
<Topmost>TRUE</Topmost>
<OneMatch>FALSE</OneMatch>
<UseVar>FALSE</UseVar>
<MatchHidden>FALSE</MatchHidden>
<MatchNum>1</MatchNum>
<ActionType>2</ActionType>
<ActionSubType>5</ActionSubType>
<sValue2>0</sValue2>
<bValue1>FALSE</bValue1>
<bValue2>FALSE</bValue2>
<bValue3>FALSE</bValue3>
</Command>
- <Command Name="Calculate 1. state" Identifier="17894" Enabled="TRUE">
<Comments>Calculates the volume bar when Mute On.</Comments>
<StateCount>2</StateCount>
<StateBegin>1</StateBegin>
<StateCurrent>1</StateCurrent>
<StateInvert>FALSE</StateInvert>
<Binary Encoding="Base64">G0x1YUABBAQEIAYJCBLmW6GwubJBCAAAAD0obm9uZSkAAAAAAA AAAAAAAQAAAAAAAAAAAAAAAwAA AAYAAAByZWcxMAAJAAAAdm9sVmFsdWUACAAAAGNhbGNCYXIAAA AAAAAAAAAHAAAABgAAgBMAAADG //9/UwAAAIwAAAACAAAAAAAAAA==</Binary>
<OSD>FALSE</OSD>
<Submatch>FALSE</Submatch>
<Topmost>TRUE</Topmost>
<OneMatch>FALSE</OneMatch>
<UseVar>FALSE</UseVar>
<MatchHidden>FALSE</MatchHidden>
<MatchNum>1</MatchNum>
<ActionType>4</ActionType>
<ActionSubType>34</ActionSubType>
<sValue1>reg10=1 volValue = 0 calcBar()</sValue1>
<bValue1>FALSE</bValue1>
<bValue2>FALSE</bValue2>
<bValue3>FALSE</bValue3>
</Command>
- <Command Name="Display Mute On + bar 2. state" Identifier="17899" Enabled="TRUE">
<StateCount>2</StateCount>
<StateBegin>1</StateBegin>
<StateCurrent>1</StateCurrent>
<StateInvert>FALSE</StateInvert>
<OSD>FALSE</OSD>
<Submatch>FALSE</Submatch>
<Topmost>TRUE</Topmost>
<OneMatch>FALSE</OneMatch>
<UseVar>FALSE</UseVar>
<MatchHidden>FALSE</MatchHidden>
<MatchNum>1</MatchNum>
<ActionType>48</ActionType>
<ActionSubType>1</ActionSubType>
<sValue1>Mute On: Vol [volPercent]% [volBars]</sValue1>
<sValue3>Fixedsys|-27|700|0|0|0|0|0|65535|0|16744448|0|1|1|64|128|4|4 |8421504</sValue3>
<iValue1>575309130</iValue1>
<iValue3>10027018</iValue3>
<bValue1>TRUE</bValue1>
<bValue2>TRUE</bValue2>
<bValue3>FALSE</bValue3>
<lValue2>6554025</lValue2>
</Command>
- <Command Name="Calculate 2. state" Identifier="17896" Enabled="TRUE">
<Comments>Calculates the volume bar when Mute Off.</Comments>
<StateCount>2</StateCount>
<StateBegin>2</StateBegin>
<StateCurrent>2</StateCurrent>
<StateInvert>FALSE</StateInvert>
<Binary Encoding="Base64">G0x1YUABBAQEIAYJCBLmW6GwubJBCAAAAD0obm9uZSkAAAAAAA AAAAAAAQAAAAAAAAAAAAAABgAA AAYAAAByZWcxMAAJAAAAdm9sVmFsdWUABgAAAHJlZzI1AAwAAA BsaW1pdE1heFZvbAAMAAAAbGlt aXRNaW5Wb2wACAAAAGNhbGNCYXIAAAAAAAAAAAALAAAAxv//fxMAAACMAAAAUwAAAMwAAAACAAAA DAEAAAIAAABMAQAAAgAAAAAAAAA=</Binary>
<OSD>FALSE</OSD>
<Submatch>FALSE</Submatch>
<Topmost>TRUE</Topmost>
<OneMatch>FALSE</OneMatch>
<UseVar>FALSE</UseVar>
<MatchHidden>FALSE</MatchHidden>
<MatchNum>1</MatchNum>
<ActionType>4</ActionType>
<ActionSubType>34</ActionSubType>
<sValue1>reg10=0 volValue=reg25 limitMaxVol () limitMinVol () calcBar()</sValue1>
<bValue1>FALSE</bValue1>
<bValue2>FALSE</bValue2>
<bValue3>FALSE</bValue3>
</Command>
- <Command Name="Display Mute Off + bar 1. state" Identifier="17900" Enabled="TRUE">
<StateCount>2</StateCount>
<StateBegin>2</StateBegin>
<StateCurrent>2</StateCurrent>
<StateInvert>FALSE</StateInvert>
<OSD>FALSE</OSD>
<Submatch>FALSE</Submatch>
<Topmost>TRUE</Topmost>
<OneMatch>FALSE</OneMatch>
<UseVar>FALSE</UseVar>
<MatchHidden>FALSE</MatchHidden>
<MatchNum>1</MatchNum>
<ActionType>48</ActionType>
<ActionSubType>1</ActionSubType>
<sValue1>Mute Off: Vol [volPercent]% [volBars]</sValue1>
<sValue3>Fixedsys|-27|700|0|0|0|0|0|65535|0|16744448|0|1|1|64|128|4|4 |8421504</sValue3>
<iValue1>575309130</iValue1>
<iValue3>10027018</iValue3>
<bValue1>TRUE</bValue1>
<bValue2>TRUE</bValue2>
<bValue3>FALSE</bValue3>
<lValue2>6554025</lValue2>
</Command>
<EventString Name="Assign Mute Button here" Identifier="17898" Enabled="TRUE" Invert="FALSE" Device="62" IrStr="X10_DN_Mute" />
</MultiGroup>
</Group>
</Girder>
If u need the entire gml (lot of controls all together, not only get is here http://www.ghepard.bbk.org/TelecomandoAndrea_prove.GML
I've tried different solutions, but nothing solve this problem.
I've seen a topic in Tips forum, but i can't solve the problem yet.
Tnx
Kor
When i toggle mute on my group works ok, but when i toggle mute off the volume do not turn back at the right value, but stay 0. :cry:
I've controlled with Girder Variable Display (F10) and reg25 is correct (alwas the same number when mute on/off is performed).
To turn up with volume i have to use the normal volume control.
this is the Mute Group
<?xml version="1.0" encoding="UTF-8" ?>
- <Girder>
- <Group Name="Mute" Identifier="17890" Enabled="TRUE">
- <MultiGroup Name="Mute (2 states)" Identifier="17891" Enabled="TRUE">
<Comments>Button: Mute ; You need 1 button on the Remote to toggle mute.</Comments>
<StateCount>1</StateCount>
<StateBegin>1</StateBegin>
<StateCurrent>1</StateCurrent>
<StateInvert>FALSE</StateInvert>
- <Command Name="Importing variables and functions" Identifier="17892" Enabled="TRUE">
<StateCount>1</StateCount>
<StateBegin>1</StateBegin>
<StateCurrent>1</StateCurrent>
<StateInvert>FALSE</StateInvert>
<OSD>FALSE</OSD>
<Submatch>FALSE</Submatch>
<Topmost>TRUE</Topmost>
<OneMatch>FALSE</OneMatch>
<UseVar>FALSE</UseVar>
<MatchHidden>FALSE</MatchHidden>
<MatchNum>1</MatchNum>
<ActionType>4</ActionType>
<ActionSubType>10</ActionSubType>
<bValue1>FALSE</bValue1>
<bValue2>FALSE</bValue2>
<bValue3>FALSE</bValue3>
<lValue1>17821</lValue1>
</Command>
- <Command Name="Mute" Identifier="17893" Enabled="TRUE">
<Comments>mute OS command</Comments>
<StateCount>1</StateCount>
<StateBegin>1</StateBegin>
<StateCurrent>1</StateCurrent>
<StateInvert>FALSE</StateInvert>
<OSD>FALSE</OSD>
<Submatch>FALSE</Submatch>
<Topmost>TRUE</Topmost>
<OneMatch>FALSE</OneMatch>
<UseVar>FALSE</UseVar>
<MatchHidden>FALSE</MatchHidden>
<MatchNum>1</MatchNum>
<ActionType>2</ActionType>
<ActionSubType>5</ActionSubType>
<sValue2>0</sValue2>
<bValue1>FALSE</bValue1>
<bValue2>FALSE</bValue2>
<bValue3>FALSE</bValue3>
</Command>
- <Command Name="Calculate 1. state" Identifier="17894" Enabled="TRUE">
<Comments>Calculates the volume bar when Mute On.</Comments>
<StateCount>2</StateCount>
<StateBegin>1</StateBegin>
<StateCurrent>1</StateCurrent>
<StateInvert>FALSE</StateInvert>
<Binary Encoding="Base64">G0x1YUABBAQEIAYJCBLmW6GwubJBCAAAAD0obm9uZSkAAAAAAA AAAAAAAQAAAAAAAAAAAAAAAwAA AAYAAAByZWcxMAAJAAAAdm9sVmFsdWUACAAAAGNhbGNCYXIAAA AAAAAAAAAHAAAABgAAgBMAAADG //9/UwAAAIwAAAACAAAAAAAAAA==</Binary>
<OSD>FALSE</OSD>
<Submatch>FALSE</Submatch>
<Topmost>TRUE</Topmost>
<OneMatch>FALSE</OneMatch>
<UseVar>FALSE</UseVar>
<MatchHidden>FALSE</MatchHidden>
<MatchNum>1</MatchNum>
<ActionType>4</ActionType>
<ActionSubType>34</ActionSubType>
<sValue1>reg10=1 volValue = 0 calcBar()</sValue1>
<bValue1>FALSE</bValue1>
<bValue2>FALSE</bValue2>
<bValue3>FALSE</bValue3>
</Command>
- <Command Name="Display Mute On + bar 2. state" Identifier="17899" Enabled="TRUE">
<StateCount>2</StateCount>
<StateBegin>1</StateBegin>
<StateCurrent>1</StateCurrent>
<StateInvert>FALSE</StateInvert>
<OSD>FALSE</OSD>
<Submatch>FALSE</Submatch>
<Topmost>TRUE</Topmost>
<OneMatch>FALSE</OneMatch>
<UseVar>FALSE</UseVar>
<MatchHidden>FALSE</MatchHidden>
<MatchNum>1</MatchNum>
<ActionType>48</ActionType>
<ActionSubType>1</ActionSubType>
<sValue1>Mute On: Vol [volPercent]% [volBars]</sValue1>
<sValue3>Fixedsys|-27|700|0|0|0|0|0|65535|0|16744448|0|1|1|64|128|4|4 |8421504</sValue3>
<iValue1>575309130</iValue1>
<iValue3>10027018</iValue3>
<bValue1>TRUE</bValue1>
<bValue2>TRUE</bValue2>
<bValue3>FALSE</bValue3>
<lValue2>6554025</lValue2>
</Command>
- <Command Name="Calculate 2. state" Identifier="17896" Enabled="TRUE">
<Comments>Calculates the volume bar when Mute Off.</Comments>
<StateCount>2</StateCount>
<StateBegin>2</StateBegin>
<StateCurrent>2</StateCurrent>
<StateInvert>FALSE</StateInvert>
<Binary Encoding="Base64">G0x1YUABBAQEIAYJCBLmW6GwubJBCAAAAD0obm9uZSkAAAAAAA AAAAAAAQAAAAAAAAAAAAAABgAA AAYAAAByZWcxMAAJAAAAdm9sVmFsdWUABgAAAHJlZzI1AAwAAA BsaW1pdE1heFZvbAAMAAAAbGlt aXRNaW5Wb2wACAAAAGNhbGNCYXIAAAAAAAAAAAALAAAAxv//fxMAAACMAAAAUwAAAMwAAAACAAAA DAEAAAIAAABMAQAAAgAAAAAAAAA=</Binary>
<OSD>FALSE</OSD>
<Submatch>FALSE</Submatch>
<Topmost>TRUE</Topmost>
<OneMatch>FALSE</OneMatch>
<UseVar>FALSE</UseVar>
<MatchHidden>FALSE</MatchHidden>
<MatchNum>1</MatchNum>
<ActionType>4</ActionType>
<ActionSubType>34</ActionSubType>
<sValue1>reg10=0 volValue=reg25 limitMaxVol () limitMinVol () calcBar()</sValue1>
<bValue1>FALSE</bValue1>
<bValue2>FALSE</bValue2>
<bValue3>FALSE</bValue3>
</Command>
- <Command Name="Display Mute Off + bar 1. state" Identifier="17900" Enabled="TRUE">
<StateCount>2</StateCount>
<StateBegin>2</StateBegin>
<StateCurrent>2</StateCurrent>
<StateInvert>FALSE</StateInvert>
<OSD>FALSE</OSD>
<Submatch>FALSE</Submatch>
<Topmost>TRUE</Topmost>
<OneMatch>FALSE</OneMatch>
<UseVar>FALSE</UseVar>
<MatchHidden>FALSE</MatchHidden>
<MatchNum>1</MatchNum>
<ActionType>48</ActionType>
<ActionSubType>1</ActionSubType>
<sValue1>Mute Off: Vol [volPercent]% [volBars]</sValue1>
<sValue3>Fixedsys|-27|700|0|0|0|0|0|65535|0|16744448|0|1|1|64|128|4|4 |8421504</sValue3>
<iValue1>575309130</iValue1>
<iValue3>10027018</iValue3>
<bValue1>TRUE</bValue1>
<bValue2>TRUE</bValue2>
<bValue3>FALSE</bValue3>
<lValue2>6554025</lValue2>
</Command>
<EventString Name="Assign Mute Button here" Identifier="17898" Enabled="TRUE" Invert="FALSE" Device="62" IrStr="X10_DN_Mute" />
</MultiGroup>
</Group>
</Girder>
If u need the entire gml (lot of controls all together, not only get is here http://www.ghepard.bbk.org/TelecomandoAndrea_prove.GML
I've tried different solutions, but nothing solve this problem.
I've seen a topic in Tips forum, but i can't solve the problem yet.
Tnx
Kor