-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathWallpaper_Prank.ino
52 lines (50 loc) · 1.59 KB
/
Wallpaper_Prank.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#include "DigiKeyboard.h"
void setup() {
//empty
}
void loop() {
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.sendKeyStroke(KEY_D, MOD_GUI_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(70, MOD_ALT_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.print("mspaint");
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(800);
DigiKeyboard.sendKeyStroke(KEY_V, MOD_CONTROL_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_S, MOD_CONTROL_LEFT);
DigiKeyboard.delay(600);
DigiKeyboard.print("%USERPROFILE%\\wall.jpg");
DigiKeyboard.sendKeyStroke(KEY_ENTER);
DigiKeyboard.delay(600);
DigiKeyboard.sendKeyStroke(KEY_F, MOD_ALT_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_K);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_F);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_F, MOD_ALT_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_X);
DigiKeyboard.delay(600);
DigiKeyboard.sendKeyStroke(KEY_D, MOD_GUI_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_F10, MOD_SHIFT_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.sendKeyStroke(KEY_V);
DigiKeyboard.delay(200);
DigiKeyboard.sendKeyStroke(81);
DigiKeyboard.delay(200);
DigiKeyboard.sendKeyStroke(81);
DigiKeyboard.delay(200);
DigiKeyboard.sendKeyStroke(81);
DigiKeyboard.delay(200);
DigiKeyboard.sendKeyStroke(81);
DigiKeyboard.delay(200);
DigiKeyboard.sendKeyStroke(81);
DigiKeyboard.sendKeyStroke(KEY_ENTER);
for(;;){ /*empty*/ }
}