• 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
    I've tried
    kb.tap(kb.KEY.M, kb.MODIFY.SHIFT.CTRL);
    kb.tap(kb.KEY.M, kb.MODIFY.SHIFT+CTRL);
    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

  • try:

    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.

  • 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.

    1 Attachment

    • PuckPuck.jpg
  • Looks great!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

ble_hid_keyboard Microsoft Teams Hot Mike Button/ Indicater

Posted by Avatar for medicohih @medicohih