PDA

View Full Version : Mute with OSD and reg25 value (X10/ATI)?



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 &#40;2 states&#41;" Identifier="17891" Enabled="TRUE">
<Comments>Button&#58; 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&#40;&#41;</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&#58; Vol &#91;volPercent&#93;% &#91;volBars&#93;</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 &#40;&#41; limitMinVol &#40;&#41; calcBar&#40;&#41;</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&#58; Vol &#91;volPercent&#93;% &#91;volBars&#93;</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

miked
October 20th, 2003, 11:22 AM
I'm having difficulty parsing your GML with all the XML tags. Can you reenter the GML, perhaps typing it in by hand?

Kor
October 20th, 2003, 11:32 AM
I'm having difficulty parsing your GML with all the XML tags. Can you reenter the GML, perhaps typing it in by hand?

U need only mute.gml or u need the entire control gml

If u need only the mute one get it here http://www.ghepard.bbk.org/Mute.GML
(use "save as" so explored didn't edit it, i have sometimes problem viewing gml's in IE)

I'm sorry, but sometimes i do not understand english as well...

Kor
October 24th, 2003, 01:59 AM
The problem was simple. In the Mute Tag was selected "Volume" (ID 0), but the right parameter to select was "Mut" under master control (ID 4).
The solution was in the simple Online Help page. I read this another time to get the solution on this problem!!!

Now the script is working well!!!
Tnx and enjoy if u want to use it (but corect it first)
Kor