daily pastebin goal
46%
SHARE
TWEET

n3onli8.cpp

a guest Jan 11th, 2012 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "WProgram.h"
  2. #include "usb_private.h"
  3. #include "usb_api.h"
  4. #include "n3onli8.h"
  5.  
  6. void CtrlAltDel()
  7. {
  8.   Keyboard.set_modifier(MODIFIERKEY_CTRL);
  9.   Keyboard.send_now();
  10.   Keyboard.set_modifier(MODIFIERKEY_CTRL | MODIFIERKEY_ALT);
  11.   Keyboard.send_now();
  12.   Keyboard.set_key1(KEY_DELETE);
  13.   Keyboard.send_now();
  14.   Keyboard.set_modifier(0);
  15.   Keyboard.set_key1(0);
  16.   Keyboard.send_now();
  17.   delay(1500);
  18. }
  19.  
  20. void StartRUN()
  21. {
  22.     Keyboard.set_modifier(MODIFIERKEY_GUI);
  23.     Keyboard.send_now();
  24.     Keyboard.set_key1(KEY_R);
  25.     Keyboard.send_now();
  26.     delay(1500);
  27.    
  28.     Keyboard.set_modifier(0);
  29.     Keyboard.set_key1(0);
  30.     Keyboard.send_now();    
  31.     Keyboard.set_key1(KEY_BACKSPACE);
  32.     Keyboard.send_now();
  33.     delay(100);
  34.  
  35.     Keyboard.set_modifier(0);
  36.     Keyboard.set_key1(0);
  37.     Keyboard.send_now();
  38.     delay(100);
  39. }
  40.  
  41. void Enter()
  42. {
  43.     Keyboard.set_key1(KEY_ENTER);
  44.     Keyboard.send_now();
  45.     Keyboard.set_key1(0);
  46.     Keyboard.send_now();
  47. }
  48.  
  49. void PrintScreen()
  50. {
  51.         Keyboard.set_key1(KEY_PRINTSCREEN);
  52.         Keyboard.send_now();
  53.     Keyboard.set_key1(0);
  54.     Keyboard.send_now();
  55. }
  56.  
  57. void Minimize()
  58. {
  59.     Keyboard.set_modifier(MODIFIERKEY_GUI);
  60.     Keyboard.send_now();
  61.     Keyboard.set_key1(KEY_D);
  62.     Keyboard.send_now();
  63.     delay(300);
  64.        
  65.         Keyboard.set_modifier(0);
  66.     Keyboard.set_key1(0);
  67.     Keyboard.send_now();
  68.     delay(200);
  69. }
  70.  
  71. void Menu()
  72. {
  73.   Mouse.set_buttons(0, 0, 1);
  74.   Mouse.set_buttons(0, 0, 0);
  75. }
  76.  
  77. void AltF4()
  78. {
  79.     Keyboard.set_modifier(MODIFIERKEY_ALT);
  80.     Keyboard.send_now();
  81.     Keyboard.set_key1(KEY_F4);
  82.     Keyboard.send_now();
  83.     delay(200);
  84.        
  85.         Keyboard.set_modifier(0);
  86.     Keyboard.set_key1(0);
  87.     Keyboard.send_now();
  88.     delay(200);
  89. }
  90.  
  91. void Paste(){
  92.         Keyboard.set_modifier(MODIFIERKEY_CTRL);
  93.         Keyboard.set_key1(KEY_V);
  94.         Keyboard.send_now();
  95.         delay(200);
  96.         Keyboard.set_modifier(0);
  97.     Keyboard.set_key1(0);
  98.     Keyboard.send_now();
  99.     delay(200);
  100. }
  101.  
  102. void Save(){
  103.         Keyboard.set_modifier(MODIFIERKEY_CTRL);
  104.         Keyboard.set_key1(KEY_S);
  105.         Keyboard.send_now();
  106.         delay(200);
  107.         Keyboard.set_modifier(0);
  108.     Keyboard.set_key1(0);
  109.     Keyboard.send_now();
  110.     delay(200);
  111. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top