Hello
I would like to monitor the MC1-UHD Key status (On/Off) through Dashboard.
I created the label using the code below, but the current status is only updated when I click on the label.
Is there a way to continuously monitor the Key status without having to click the label?
<label height="51" id="Key1_ST" left="52" name="Key1" style="txt-align:center;" top="245" width="99">
<task tasktype="ogscript">/*! block id=1001,1000,1003,1004 !*/
if (params.getParam("RAPTOR.1", '0x4100', 0).getValue() == 0)
{
ogscript.setStyle("Key1_ST", "bg#0A6CFF")
} else {
ogscript.setStyle("Key1_ST", "bg#FF0A0A")
}
/*!!
<block id="1001" type="if" x="396" y="280" w="268" INPUT1="ID:1000" OPERATION="equals" INPUT2="0" TRUE="ID:1003" FALSE="ID:1004" IGNORE="" />
<block id="1000" type="param_RAPTOR.1&amp;Key State (0x4100)[0]" x="95" y="195" w="243" SET="" />
<block id="1003" type="ogscript_setstyle" x="790" y="277" w="243" ID="Key1_ST" STYLE="bg#0A6CFF" />
<block id="1004" type="ogscript_setstyle" x="708" y="534" w="243" ID="Key1_ST" STYLE="bg#FF0A0A" />
!!*/
/*!!<checksum>70b4094c9bc23cf3e946c299bf0b2fd5</checksum>!!*/</task>
</label>
------------------------------
Sean Oh
Youngdo B&C
Seoul Korea, Republic of
------------------------------