From 153361a9ab49cdd2954d944c506607bba579e12d Mon Sep 17 00:00:00 2001 From: bwees Date: Fri, 26 Jun 2020 17:10:06 -0400 Subject: [PATCH 1/6] Create Breadstick.ino --- Breadstick.ino | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Breadstick.ino diff --git a/Breadstick.ino b/Breadstick.ino new file mode 100644 index 0000000..e2b9de2 --- /dev/null +++ b/Breadstick.ino @@ -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() { } From bc4183ca6acf6d3ba484fad37fbd405972b2623d Mon Sep 17 00:00:00 2001 From: bwees Date: Fri, 26 Jun 2020 17:10:48 -0400 Subject: [PATCH 2/6] moved Breadstick --- Breadstick.ino => Breadstick/Breadstick.ino | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Breadstick.ino => Breadstick/Breadstick.ino (100%) diff --git a/Breadstick.ino b/Breadstick/Breadstick.ino similarity index 100% rename from Breadstick.ino rename to Breadstick/Breadstick.ino From 2e93edbd421e47b7f7c9d2366542f3424d0f24d2 Mon Sep 17 00:00:00 2001 From: bwees Date: Fri, 26 Jun 2020 17:12:51 -0400 Subject: [PATCH 3/6] Create README.md --- Breadstick/README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Breadstick/README.md diff --git a/Breadstick/README.md b/Breadstick/README.md new file mode 100644 index 0000000..6122f01 --- /dev/null +++ b/Breadstick/README.md @@ -0,0 +1,2 @@ +Fun little RickRoll type script. Downloads image from the internet (breadsticks in this case) and proceeds to copy/paste it 300 times on the desktop. Harmless way to mess with your friends. +Personally if one of my friends leaves their computer logged in, it will get "breadsticked" From 2e32c5abaf65bd45a29a5fef979e51eb595d1b01 Mon Sep 17 00:00:00 2001 From: bwees Date: Fri, 26 Jun 2020 17:14:32 -0400 Subject: [PATCH 4/6] Update Breadstick.ino --- Breadstick/Breadstick.ino | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/Breadstick/Breadstick.ino b/Breadstick/Breadstick.ino index e2b9de2..77db710 100644 --- a/Breadstick/Breadstick.ino +++ b/Breadstick/Breadstick.ino @@ -6,29 +6,17 @@ 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.sendKeyStroke(0, MOD_GUI_LEFT,KEY_R); + DigiKeyboard.delay(50); 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.delay(50); 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.delay(50); 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.delay(50); DigiKeyboard.print("exit"); DigiKeyboard.sendKeyStroke(KEY_ENTER);} From 5f88279be8aadaa2cfe1bbbcd4e37a7a803f0360 Mon Sep 17 00:00:00 2001 From: bwees Date: Fri, 26 Jun 2020 17:15:04 -0400 Subject: [PATCH 5/6] Update README.md --- Breadstick/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Breadstick/README.md b/Breadstick/README.md index 6122f01..609f063 100644 --- a/Breadstick/README.md +++ b/Breadstick/README.md @@ -1,2 +1,4 @@ -Fun little RickRoll type script. Downloads image from the internet (breadsticks in this case) and proceeds to copy/paste it 300 times on the desktop. Harmless way to mess with your friends. +**Fun little RickRoll type script.** + +Downloads image from the internet (breadsticks in this case) and proceeds to copy/paste it 300 times on the desktop. Harmless way to mess with your friends. Personally if one of my friends leaves their computer logged in, it will get "breadsticked" From 985f9a070a7aace86111ad741de660c750c63e78 Mon Sep 17 00:00:00 2001 From: bwees Date: Fri, 26 Jun 2020 17:18:16 -0400 Subject: [PATCH 6/6] Update Breadstick.ino --- Breadstick/Breadstick.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Breadstick/Breadstick.ino b/Breadstick/Breadstick.ino index 77db710..36f8d20 100644 --- a/Breadstick/Breadstick.ino +++ b/Breadstick/Breadstick.ino @@ -1,6 +1,7 @@ // 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 +// The number of duplications can be chaged by editing the number on line 18 in the "foreach($number in 1..300)" where the number of duplications would be 300 +// To change the image to use, change the link in line 15 to one that points directly to an image file (has .jpg or .png on the end of it) #include "DigiKeyboard.h"