0

\ here is my code

include "DigiKeyboard.h"

void setup() { DigiKeyboard.sendKeyStroke(0); DigiKeyboard.delay(100); DigiKeyboard.sendKeyStroke(MOD_GUI_LEFT); DigiKeyboard.delay(100); DigiKeyboard.print("Camera") DigiKeyboard.delay(100); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.delay(100); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.delay(100); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.delay(100); DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT); DigiKeyboard.delay(100); DigiKeyboard.print("cmd") DigiKeyboard.delay(100); DigiKeyboard.sendKeyStroke(KEY_ENTER); DigiKeyboard.delay(100); DigiKeyboard.print("REDACTED") for(;;){ /empty/ }

}

2
  • Welcome to Arduino stackexchange. Next time, select your code and press ctrl-k to align it. – Michel Keijzers Apr 23 '20 at 22:05
  • @P1p - I have replaced the inappropriate text in your question with the word "REDACTED". Please ask your question again and remember to be kind and considerate of other people. – VE7JRO Apr 23 '20 at 23:11
1

You forgot the semi colon after

DigiKeyboard.print("Camera")

It should be:

DigiKeyboard.print("Camera");
8
  • 1
    He didn't put them on one line - that's just the bad formatting. If you edit the question you can see it all on individual lines. – Majenko Apr 23 '20 at 22:24
  • 1
    @MichelKeijzers ...and DigiKeyboard.print("REDACTED") once said something else that violates the Stack Exchange User agreement. Sorry I had to lock the post. – VE7JRO Apr 23 '20 at 23:17
  • 1
    @VE7JRO Actually didn't read further than what I first saw (first semi colon). – Michel Keijzers Apr 23 '20 at 23:20
  • 1
    @MichelKeijzers - That's one of the great things about Stack Exchange; lots of different people looking over the Q+A's. One person can not find everything, it's a team effort :) – VE7JRO Apr 23 '20 at 23:26
  • 1
    @MichelKeijzers - You do more than your 2 cents worth, by far, and not just here on Ard.SE, but on other stacks as well. And while I'm abusing the comments on this answer, Majenko, Nick Gammon, and at least a hundred others are on several different stacks, sharing their knowledge. – VE7JRO Apr 23 '20 at 23:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.