Hi. I have a Bluetooth speaker which has a couple buttons on it (Play/Pause, Next Track, Previous Track…). Sadly at this point these buttons just control iTunes. I would love to assign those buttons as triggers for Keyboard Maestro.
As far as I am aware there is no way to detect a bluetooth device connection. There is no system notification when a device is connected that I know of.
I do not want to use polling for any triggers, since either the poll period would be long enough as to be annoyingly slow, or polling would cause Keyboard Maestro Engine to use significantly more CPU/Energy.
A utility called Eventscripts was mentioned in another post. It can be used to respond to Bluetooth events and thereby trigger KM macros. Haven’t tried it but could be worth exploring.
Very interesting App. It seems well documented and well designed.
On first testing, however, it will only inconsistently trigger that it found my Trackpad when I turn it off/on. And it will never trigger that it found my mouse when I turn it off/on.
Not sure if I am doing something wrong - I will see what tech support says. But given that it works at least intermittently I suspect this is a limitation of their app and not of my script.