I've found code that works to set up Puck as a BT keyboard that can send single letter with a single modifier e.g "m+ SHIFT"
I'd like to be able to send the "MS Teams" Keyboard short cut "SHIFT+CTRL+M" to be able to toggle the mic quickly .
The code I'm trying to change is her https://www.espruino.com/BLE+Keyboard
kb.tap(kb.KEY.M, kb.MODIFY.SHIFT, kb.MODIFY.CTRL)
Starting to think this possiblilty isn't implemented yet?
Here is the module http://www.espruino.com/modules/ble_hid_keyboard.js
kb.tap(kb.KEY.M, kb.MODIFY.SHIFT | kb.MODIFY.CTRL)
Using kb.MODIFY.SHIFT + kb.MODIFY.CTRL would work as well, the issue is just that kb.MODIFY.SHIFT+CTRL is adding CTRL to kb.MODIFY.SHIFT - and the global variable CTRL doesn't exist.
kb.MODIFY.SHIFT + kb.MODIFY.CTRL
The first example worked.... at least it did for opening closed tabs on chrome Ctrl+Shift+T.
Gonna have to wait until monday to test with a Ctrl+Shift+M on a computer at work with MS teams on.
Thanks for the quick response.... gonna spend some time learning basic JS for now.
Hi @medicohih, I have tested it on Teams and it works well
Glad to hear it seanfixer TY. Working for me now, with a nice 3D printed case so it can slide like a propper puck, and we can send it across the conference table easily.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem