Most recent activity
-
The puck now shows up immedieatly in Windows 11 "Add Devices" and connects as well.
With this code, on button press, it just opens the quick settings window however 😅
It seems to execute "Win + A", instead of "Win + ALT + A".However, huge thanks to your help already! No way, that I could have ever figured this out by myself.
Espruino IDE still throws the same error as before though - even if it works in windows.
-
thanks a lot for your help!
Im trying to get the combo: "WIN + ALT + B" send to Windows via Puck Keypress -> Switch HDR on and off.
the above call of
kb.tap()
seems to work - https://forum.espruino.com/conversations/371473/#comment16333536 -
-
Im only connecting the Puck via Edge Browser to the Espruino IDE.
Even after a power cycle, Windows 11 Bluetooth "Add Device" never finds the puckjs.
Connection to the Web IDE via Web Bluetooth works almost instantly. However, it throws the above error everytime I press its button.
--- When I save to flash, power cycle and reconnect to the Espruino IDE, the error looks slightly different (no BLE info)
Uncaught Error: ERR 0x3401 (:3272) at line 3 col 275 in .bootcde ...0,0,0],function(){a&&a()})}) in function "tap" called from line 8 col 58 in .bootcde kb.tap(kb.KEY.A, kb.MODIFY.LEFT_GUI, kb.MODIFY.LEFT_ALT); in function called from system
-
Hi,
im trying to send keyinputs using a PuckJS ( 2v19 (c) 2021 G.Williams).//http://www.espruino.com/BLE+Keyboard var kb = require("ble_hid_keyboard"); NRF.setServices(undefined, { hid : kb.report }); function btnPressed() { kb.tap(kb.KEY.A, kb.MODIFY.LEFT_GUI, kb.MODIFY.LEFT_ALT); } setWatch(btnPressed, BTN, {edge:"rising",repeat:true,debounce:50});
However, it throws this error, on every puck button press:
BLE Connected, queueing BLE restart for later
Uncaught Error: ERR 0x3401 (:3272)
at line 1 col 104
...0,0,0],function(){a&&a()})})
in function "tap" called from line 7 col 56
kb.tap(kb.KEY.A, kb.MODIFY.LEFT_GUI, kb.MODIFY.LEFT_ALT);
in function called from systemAny ideas? Im using basically the same code as from the example and other forum threads e.g https://forum.espruino.com/conversations/371473/#comment16333536
No idea why its not working.
Yes, with your line nothing happens in Windows 11.
How can I send a keypress combo with more than two inputs, if not via the above comma seperated "list".
Nvm, im dumb - too early.
of course you are correct. The above works fine. (Key.B instead of A) now switches Windows HDR Mode. Absolutely briliant. I love it.
Thanks again! Your help has been absolutely amazing, I can now finally use my puck device! 😍