I only showed part of the code as i thought you would understand.
im trying to use the digispark as a keyboard to annoy a frend at work.

#include "DigiKeyboard.h"
void setup() {
}
void loop() {
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.print("mshta vbscript:Execute("msgbox ""ANNOYING MESSAGEBOX"":close")");
DigiKeyboard.sendKeyStroke(KEY_ENTER)
for (;;) {
}
}But arduino gives me this error :
exit status 1
expected ')' before 'msgbox'
So the question is why dont it do what i want.
I have also tryed to make it type 1 letter at time.
like this :
#include "DigiKeyboard.h"
void setup() {
}
void loop() {
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.print("m");
DigiKeyboard.delay(500);
DigiKeyboard.print("s");
DigiKeyboard.delay(500);
DigiKeyboard.print("h");
DigiKeyboard.delay(500);
DigiKeyboard.print("a");
and so on.....
but i still get the same error message.
The "script works if you type it in the run meny , so nothing wrong there.
/edit..
yes the digispark works with "blink" and simple "hello world"
i'm not running the script on the digispark , im trying to get it to type it in the run meny.
but i guess it dont like that there is a "(" in the text i'm trying to make it type.