Hello,
i know im probably doing a stupid mistake, bout im new to the digispark script, so cann somone help me why, after "DigiKeyboard.sendKeyStroke(KEY_ARROW_LEFT);" when the program is confirming the admin permissions and opening the cmd, he isnt typing the rest bout just stoping, and when i turn off the admin notification it's working with no problem, cann somone help me?
#include "DigiKeyboard.h"
void setup() {
}
void loop() {
// put your main code here, to run repeatedly:
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.delay(5000);
DigiKeyboard.sendKeyStroke(0, MOD_GUI_LEFT);
DigiKeyboard.delay(1000);
DigiKeyboard.print("cmd");
DigiKeyboard.delay(1000);
DigiKeyboard.sendKeyStroke(KEY_ENTER, MOD_CONTROL_LEFT | MOD_SHIFT_LEFT);
DigiKeyboard.delay(1000);
DigiKeyboard.sendKeyStroke(KEY_ARROW_LEFT);
DigiKeyboard.delay(1000);
DigiKeyboard.print("shutdown -s -t 00");
DigiKeyboard.delay(1000);
DigiKeyboard.sendKeyStroke(KEY_ENTER);
}