You are reading a single comment by @Gordon and its replies.
Click here to read the full conversation.
-
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
Just looking at the code again, and one thing that is an issue (but not the whole problem) is that you're calling
tap
slightly wrong:So the third argument is expecting a function to call back but it's getting a variable - this is what you want I think:
But I just tried with a Puck here and the code appears to work. I've tested it on Android, iOS, Windows 10 and it all works...
But I just tried Windows 11 and for some reason it doesn't show the device (Windows 10 shows loads of devices, but Windows 11 shows hardly any for me). I'll see if I can figure out what the problem is...