I don’t want to be a PITA but it seems to me that the entire script you wrote can be more simply written like this:
Var
MIN : MidiInBlock
BT0 : Widget
BT1 : Widget
BT2 : Widget
BT3 : Widget
BT4 : Widget
BT5 : Widget
BT6 : Widget
BT7 : Widget
// Called when any of several widgets changed
// The widget and index parameters are optional
On WidgetValueChanged(w : Widget, index: integer, newValue : double) from BT0, BT1, BT2, BT3, BT4, BT5, BT6, BT7
if newValue == 1.0 then
SendNow(MIN, MakeControlChangeMessage(69,index))
End
End