Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Made with Duckuino, an open-source project.
- * Check the license at 'https://github.com/Nurrl/Duckuino/blob/master/LICENSE'
- */
- #include "Keyboard.h"
- void typeKey(uint8_t key)
- {
- Keyboard.press(key);
- delay(50);
- Keyboard.release(key);
- }
- /* Init function */
- void setup()
- {
- // Begining the Keyboard stream
- Keyboard.begin();
- // Wait 500ms
- delay(500);
- delay(3000);
- Keyboard.press(KEY_LEFT_CTRL);
- Keyboard.press(KEY_ESC);
- Keyboard.press("r");
- Keyboard.releaseAll();
- delay(100);
- Keyboard.print(F("iexplore http://s3.amazonaws.com/rapgenius/hotdog.jpg"));
- typeKey(KEY_RETURN);
- delay(2000);
- Keyboard.press(KEY_LEFT_ALT);
- Keyboard.press("f");
- Keyboard.releaseAll();
- delay(100);
- Keyboard.print(F("a"));
- delay(100);
- Keyboard.print(F("%USERPROFILE%\\hotdog.jpg"));
- delay(100);
- typeKey(KEY_RETURN);
- delay(100);
- Keyboard.press(KEY_LEFT_CTRL);
- Keyboard.press("w");
- Keyboard.releaseAll();
- delay(100);
- Keyboard.press(KEY_LEFT_CTRL);
- Keyboard.press(KEY_ESC);
- Keyboard.releaseAll();
- delay(100);
- Keyboard.print(F("paint"));
- delay(100);
- typeKey(KEY_RETURN);
- delay(500);
- Keyboard.press(KEY_LEFT_CTRL);
- Keyboard.press("o");
- Keyboard.releaseAll();
- delay(100);
- Keyboard.print(F("%USERPROFILE%\\hotdog.jpg"));
- typeKey(KEY_RETURN);
- delay(300);
- Keyboard.press(KEY_LEFT_ALT);
- Keyboard.press("f");
- Keyboard.releaseAll();
- delay(100);
- Keyboard.print(F("k"));
- delay(100);
- Keyboard.print(F("f"));
- delay(300);
- Keyboard.press(KEY_LEFT_ALT);
- Keyboard.press("f");
- Keyboard.releaseAll();
- delay(100);
- Keyboard.print(F("x"));
- // Ending stream
- Keyboard.end();
- }
- /* Unused endless loop */
- void loop() {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement