Created
January 22, 2023 21:28
-
-
Save Ajak58a/0da14b66aaf9931f112e52cd95549da0 to your computer and use it in GitHub Desktop.
Automate tasks login rubber ducky
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Keyboard.h" | |
void typeKey(int key) | |
{ | |
Keyboard.press(key); | |
delay(50); | |
Keyboard.release(key); | |
} | |
void setup() | |
{ | |
Keyboard.begin(); | |
delay(500); | |
Keyboard.press(KEY_LEFT_GUI); | |
Keyboard.press('r'); | |
Keyboard.releaseAll(); | |
delay(500); | |
Keyboard.print("powershell"); | |
typeKey(KEY_RETURN); | |
delay(100); | |
Keyboard.print("notepad.exe"); | |
typeKey(KEY_RETURN); | |
delay(1000); | |
for(int i=0; i<100; i++){ | |
Keyboard.print("The quick brown fox jumps over the lazy dog"); | |
typeKey(KEY_RETURN); | |
} | |
Keyboard.end(); | |
} | |
/* Unused endless loop */ | |
void loop() {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment