Created
January 23, 2023 21:18
-
-
Save Ajak58a/639c7f36f07cb5c317bd057db5a23b0b to your computer and use it in GitHub Desktop.
Gmail login
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