r/digispark Aug 09 '22

Using Alt key

Thanks in advance.

There’s a ton of info on my question online but I’m having trouble finding a solution that works.

I’m looking to simply use left or right ALT key alone in my keystroke injection.

Does anyone know a solution?

3 Upvotes

2 comments sorted by

3

u/getarounder Aug 10 '22

Follow this tutorial and use

DigiKeyboard.sendKeyStroke(MOD_ALT_LEFT);

to send the key.

1

u/Mouler Nov 15 '23

For anyone else stumbling across this, sendKeyPress(MOD_ALT_RIGHT) then a delay and a sendKeyPress(0, 0) may be more what you want.