Can the visibility of a floating menu be toggled with an AppleScript?

Is it possible to toggle the visibility of a floating menu using AppleScript?

If it is possible can you please share an example?

you can trigger any BTT action via Apple Script, easiest configure it once via UI , then copy the Apple Script:

tell application "BetterTouchTool"
trigger_action "{
  BTTPredefinedActionType: 388,
  BTTAdditionalActionData: '{\\\"BTTMenuActionActivateKeyboardFocus\\\":1,\\\"BTTMenuActionRestorePosition\\\":true,\\\"BTTMenuActionMenuID\\\":\\\"chatgpt\\\"}'
}"


end tell

Is there a way to do that without creating the trigger, so directly in the AppleScript?

I posted an example apple script in the post above. In general you'd just use the trigger to configure the action as you want, after copying the Apple Script you can delete it.

Very Slick!

Works like a charm. :smiley: