Hi Dave,
It's great that you're using DashBoard with Carbonite.
There are a couple of ways you can address this requirement.
The easiest is to just drag/drop the key cut button from Carbonite's live assist UI - the video tutorial panelbuilder 101 shows how to do this. I suspect that you want a bit more than this, so today I've tried & verified this alternative method:
1) create a blank custom panel
2) create a smaller blank canvas within it, give it a name and id, and set it's background color to something visible.
3) drag / drop the key cut button you'd like to keep track of into the new canvas. DashBoard will give you a dialog asking where to put it, the default response is the one you need.
4) create a label with an id (I called mine KeyStateIndicator)
5) add a task to the button you copied from carbonite in step 3
6) for the task body use ogscript code similar to this to change what's displayed on the label created in step 4.
var keyState = params.getValue(0x992,0);
var label = keyState ? "on" : "off";
ogscript.rename('KeyStateIndicator', label);
note 0x992 is the OID of the key for Key 1 in ME 1. If you're using a different ME or key, you'll need to use a different OID.
6) now pressing the key button in Carbonite's live assist panel (or the hard panel) will trigger the task and, in this example, rename the label. You can, of course use this as a trigger to make other updates to your panel as you wish.
7) by using ogscript.hide, you can hide the canvas (or abs) into which you dragged the cut button so that it doesn't appear in your UI.
Hope this helps,
John
#DashBoard