Digistump Forums

The Digispark => Digispark Projects => Topic started by: chumponimys on December 29, 2012, 08:15:59 pm

Title: Using Multiple Modifiers
Post by: chumponimys on December 29, 2012, 08:15:59 pm
Hey Digistump Community!
I'm not entirely sure where I should put this topic, it's not entirely a problem so I'm not sure if it should go into the support forum, but it's not exactly a project idea, so I'm not sure it belongs here...
Anyways, I am curious as to how I can use multiple modifiers? If I wanted to, for example, use cmd-shft-3 for a screenshot, or cmd-alt-ctr-8? Thanks!

~Josh
Title: Using Multiple Modifiers
Post by: digistump on December 29, 2012, 10:16:57 pm
I\'m guessing this is in reference to the keyboard library -

try something like this:


DigiKeyboard.sendKeyStroke(KEY_3, MOD_ALT_RIGHT | MOD_SHIFT_RIGHT);


I think it should work.
Title: Using Multiple Modifiers
Post by: chumponimys on December 30, 2012, 10:32:59 am
This is exactly what I was looking for. Thanks!