Wondering if it’s possible to latch a file button in its “1” state.
I am using it to trigger a new instrument that records. In the past I have used a “rec” and “stop” button individually and swapped their positions out but I want to do something like this with a single button (and have it switch between color:0 and color:1 too!)
filebutton bounds(345, 390, 30, 30), latched(1), text("R", "R"), channel("RecordMode"), mode("save") $BUTTON1, colour:0("245,0,245,200")
gSSaveFile, kTrigRecord cabbageGetValue “RecordMode”
schedkwhennamed kTrigRecord, 0, 1, “recorder”, 0, 500000
and then pass the instrument a turnoff
when the button returns to its zero “off” state. Possible to do this with a single button?