Advertisement
Guest User

Untitled

a guest
Dec 15th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. /*
  2. * Generated with <3 by Dckuino.js, an open source project !
  3. */
  4.  
  5. #include "Keyboard.h"
  6.  
  7. void typeKey(int key)
  8. {
  9. Keyboard.press(key);
  10. delay(50);
  11. Keyboard.release(key);
  12. }
  13.  
  14. /* Init function */
  15. void setup()
  16. {
  17. // Begining the Keyboard stream
  18. Keyboard.begin();
  19.  
  20. // Wait 500ms
  21. delay(500);
  22.  
  23. delay(10000);
  24.  
  25. Keyboard.press(KEY_LEFT_GUI);
  26. Keyboard.press('d');
  27. Keyboard.releaseAll();
  28.  
  29. delay(100);
  30.  
  31. typeKey(206);
  32.  
  33. delay(100);
  34.  
  35. typeKey(229);
  36.  
  37. delay(70);
  38.  
  39. Keyboard.print("h");
  40.  
  41. delay(50);
  42.  
  43. Keyboard.print("b");
  44.  
  45. delay(50);
  46.  
  47. Keyboard.press(KEY_LEFT_GUI);
  48. Keyboard.press('r');
  49. Keyboard.releaseAll();
  50.  
  51. delay(200);
  52.  
  53. Keyboard.print("mspaint");
  54.  
  55. typeKey(KEY_RETURN);
  56.  
  57. delay(500);
  58.  
  59. Keyboard.press(KEY_LEFT_CTRL);
  60. Keyboard.press('v');
  61. Keyboard.releaseAll();
  62.  
  63. delay(300);
  64.  
  65. Keyboard.press(KEY_LEFT_ALT);
  66. Keyboard.press('f');
  67. Keyboard.releaseAll();
  68.  
  69. delay(300);
  70.  
  71. Keyboard.print("b");
  72.  
  73. delay(300);
  74.  
  75. typeKey(KEY_RETURN);
  76.  
  77. delay(300);
  78.  
  79. Keyboard.print("a1z2.png");
  80.  
  81. typeKey(KEY_RETURN);
  82.  
  83. Keyboard.press(KEY_LEFT_ALT);
  84. Keyboard.press(KEY_F4);
  85. Keyboard.releaseAll();
  86.  
  87. delay(300);
  88.  
  89. Keyboard.press(KEY_LEFT_GUI);
  90. Keyboard.press('d');
  91. Keyboard.releaseAll();
  92.  
  93. // Ending stream
  94. Keyboard.end();
  95. }
  96.  
  97. /* Unused endless loop */
  98. void loop() {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement