Hi @pianopaul! Your script has been a blessing, thank you very much! I wanted to add 2 more widgets to my rackspace that behave the same way (following each others settings as per your script). However, I cannot get all of the buttons work the same way for some reason. Here is the script you wrote, where “A” was the master slider widget.
var A : Widget
EA : ExternalWidget
on Activate
if BindExternalWidget(EA, “A”, “Control”) then
A.SetWidgetValue(GetExternalWidgetValue(EA))
end
end
// Called when a widget value has changed
On WidgetValueChanged(newValue : double) from A
SetExternalWidgetValue(EA, newValue)
End
I wanted to add 2 push buttons. I named them “B” and “C”. I assumed I should do this:
var A : Widget
EA : ExternalWidget
B : Widget
EB : ExternalWidget
C : Widget
EC : ExternalWidget
on Activate
if BindExternalWidget(EA, “A”, “Control”) then
A.SetWidgetValue(GetExternalWidgetValue(EA))
end
if BindExternalWidget(EA, “B”, “Control”) then
B.SetWidgetValue(GetExternalWidgetValue(EB))
end
if BindExternalWidget(EA, “C”, “Control”) then
C.SetWidgetValue(GetExternalWidgetValue(EC))
end
end
// Called when a widget value has changed
On WidgetValueChanged(newValue : double) from A
SetExternalWidgetValue(EA, newValue)
End
On WidgetValueChanged(newValue : double) from B
SetExternalWidgetValue(EB, newValue)
End
On WidgetValueChanged(newValue : double) from C
SetExternalWidgetValue(EC, newValue)
End
The slider A still works but the buttons don’t want to follow. Again, the only difference is that the original A was a slider, the others are push switches, but I doubt that matters. Can you tell what’s wrong? Thanks much in advance!