bitfocus / companion-module-folivora-btt

MIT License
1 stars 0 forks source link

Module Request: BetterTouchTool Software #1

Open houtacheng opened 5 years ago

houtacheng commented 5 years ago

BTT have web server: https://docs.bettertouchtool.net/docs/1104_webserver.html

How can I use the http command to trigger the action of btt? like this: http://127.0.0.1:50227/execute_assigned_actions_for_trigger/?uuid=96B5D58D-E0BF-484F-8F29-F9AFD1FDABA8

houtacheng commented 4 years ago

btt.zip I wrote such a module, I don't know if Companion can add this module? Works in my own test environment.

JeffreyDavidsz commented 4 years ago

Did you upload your code to a repo on GitHub for us to see? Don't like to download a random zip file...

houtacheng commented 4 years ago

here https://github.com/kloktech-mark/companion-module-btt

JeffreyDavidsz commented 4 years ago

Looks nice, I'll review it and at to core

krocheck commented 4 years ago

The module name will need to be 'folivora-btt' and 'companion-module-folivora-btt'

JeffreyDavidsz commented 4 years ago

@houtacheng I've uploaded your code to the new repo, I'll send you an invitation. Did some code changes, let me know if they work for your, than I can add it to the core

houtacheng commented 4 years ago

It's Work!!!!!! Apr-06-2020 01-51-48

makiaea commented 2 years ago

this is brilliant! i am using it on my mac to call btt, and from btt i can call alfred actions too (probably also keyboardmaestro and others). you can also call btt's show floating webview to show your bitfocus companion interface in a minimal window.

20220627 PS you can "dismiss" the floating webview and run window actions on your original window if you add an action (before the window action) to hide btt:

use a named trigger e.g. "hidebtt", containing hide (only) bettertouchtool + delay next action by 0.1 seconds

hth