Stream Deck Toggle button issues and setting BTT Custom Variable fail

Having issues with version 4.258 & 4.260 after upgrading from 4.229.

Mac mini M2 Pro, macOS 13.5.2, Stream Deck XL fully controlled by BTT

I'm using a Toggle On / Off Button
The On action runs a simple AppleScript asynchronously to call a Keyboard Maestro macro and then sets a BTT custom variable (Persist checked).
:point_right: The KM macro gets called but the BTT custom variable does not get set.

The Off action sets a BTT custom variable (Persist checked) to null and then runs a simple AppleScript asynchronously to call a Keyboard Maestro macro.
:point_right: The KM macro does not get called.

Setting up a normal Stream Deck button to set a BTT custom variable (Persist), to see if the clear action was working, Scripting Settings shows "No Persistent Variables Set" when the button is pressed.

Damn, you are right - sorry! Will upload a fix in a few minutes. Thanks for reporting!

should now be fixed once and for all!

:+1: Looks to be working fine again now — thank you.

Is there a way to determine the status of a toggle button, other than looking at the Stream Deck? This would save me setting some of the custom variables…

Cheers,
Ferrers

not any easy way right now.

You can grab the trigger config via the "get_trigger" scripting call:

tell application "BetterTouchTool"
	get_trigger "EAB1EAF5-D8B9-46E7-9C4D-E99B9F2D38B2"
end tell

Which will then return the json config for the trigger:

[
  {
    "BTTLastUpdatedAt" : 1695036676.0436831,
    "BTTTriggerType" : 732,
    "BTTTriggerTypeDescription" : "Toggle On \/ Off Button",
    "BTTTriggerClass" : "BTTTriggerTypeStreamDeck",
    "BTTPredefinedActionType" : 346,
    "BTTPredefinedActionName" : "Configure Actions for Toggle On \/ Off",
    "BTTAdditionalConfiguration" : "ON",
    "BTTUUID" : "EAB1EAF5-D8B9-46E7-9C4D-E99B9F2D38B2",
    "BTTEnabled" : 1,
    "BTTEnabled2" : 1,
    "BTTMergeIntoTouchBarGroups" : 0,
}

"BTTAdditionalConfiguration" : "ON" / "BTTAdditionalConfiguration" : "OFF" would be included there depending on the state

1 Like

Thanks… that works. I'll see if I can incorporate that into my logic.

Cheers,
Ferrers