Author Topic: keyboard prank does not work on mac?  (Read 2580 times)

yamat0

  • Newbie
  • *
  • Posts: 2
keyboard prank does not work on mac?
« on: August 20, 2015, 11:19:31 pm »
I saw the keyboardprank hacks that people have built and I have tried then on my PC with great success.
but when i try to plugin the easiest one "turn off and on capslock" on my mac at work, nothing happens.

I use this line to invoke the caps lock key, and it works like a charm on my pc, but when I tried it in my mac(tried it via external TBG usb port and in USB directly on my Macbookpro) it did not work at all?? any ideas why? (I have programmed the digispark via PC)


Code: [Select]
#include "DigiKeyboard.h"

void setup() {
  DigiKeyboard.update();
}

void loop() {
  DigiKeyboard.sendKeyStroke(57);
  delay(random(1000,60000));
}


yamat0

  • Newbie
  • *
  • Posts: 2
Re: keyboard prank does not work on mac?
« Reply #1 on: August 21, 2015, 05:14:38 am »
I have noticed that on mac, each keyboard works in their own bubble!, If you press caps-lock on the external tbg it does not mean that you have capslock on the laptop keyboard. could this be it? is this why I cant just set keystroke 57, as it does not _what_ tbg Im referring to?