Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Keyboard.h"
- void winRun() {
- Keyboard.press(KEY_LEFT_GUI);
- Keyboard.press('r');
- delay(30);
- Keyboard.releaseAll();
- delay(100);
- }
- void setup() {
- Keyboard.begin();
- delay(2000);
- winRun();
- Keyboard.println("cmd");
- Keyboard.write(KEY_RETURN);
- delay(500);
- Keyboard.println("msg * loh");
- Keyboard.write(KEY_RETURN);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement