-
• #2
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 thatkb.MODIFY.SHIFT+CTRL
is addingCTRL
tokb.MODIFY.SHIFT
- and the global variableCTRL
doesn't exist. -
• #3
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. -
• #4
Hi @medicohih, I have tested it on Teams and it works well
-
• #5
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
-
• #6
Looks great!
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)
...etc
Starting to think this possiblilty isn't implemented yet?
Here is the module http://www.espruino.com/modules/ble_hid_keyboard.js