Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "WProgram.h"
- #include "usb_private.h"
- #include "usb_api.h"
- #include "n3onli8.h"
- void CtrlAltDel()
- {
- Keyboard.set_modifier(MODIFIERKEY_CTRL);
- Keyboard.send_now();
- Keyboard.set_modifier(MODIFIERKEY_CTRL | MODIFIERKEY_ALT);
- Keyboard.send_now();
- Keyboard.set_key1(KEY_DELETE);
- Keyboard.send_now();
- Keyboard.set_modifier(0);
- Keyboard.set_key1(0);
- Keyboard.send_now();
- delay(1500);
- }
- void StartRUN()
- {
- Keyboard.set_modifier(MODIFIERKEY_GUI);
- Keyboard.send_now();
- Keyboard.set_key1(KEY_R);
- Keyboard.send_now();
- delay(1500);
- Keyboard.set_modifier(0);
- Keyboard.set_key1(0);
- Keyboard.send_now();
- Keyboard.set_key1(KEY_BACKSPACE);
- Keyboard.send_now();
- delay(100);
- Keyboard.set_modifier(0);
- Keyboard.set_key1(0);
- Keyboard.send_now();
- delay(100);
- }
- void Enter()
- {
- Keyboard.set_key1(KEY_ENTER);
- Keyboard.send_now();
- Keyboard.set_key1(0);
- Keyboard.send_now();
- }
- void PrintScreen()
- {
- Keyboard.set_key1(KEY_PRINTSCREEN);
- Keyboard.send_now();
- Keyboard.set_key1(0);
- Keyboard.send_now();
- }
- void Minimize()
- {
- Keyboard.set_modifier(MODIFIERKEY_GUI);
- Keyboard.send_now();
- Keyboard.set_key1(KEY_D);
- Keyboard.send_now();
- delay(300);
- Keyboard.set_modifier(0);
- Keyboard.set_key1(0);
- Keyboard.send_now();
- delay(200);
- }
- void Menu()
- {
- Mouse.set_buttons(0, 0, 1);
- Mouse.set_buttons(0, 0, 0);
- }
- void AltF4()
- {
- Keyboard.set_modifier(MODIFIERKEY_ALT);
- Keyboard.send_now();
- Keyboard.set_key1(KEY_F4);
- Keyboard.send_now();
- delay(200);
- Keyboard.set_modifier(0);
- Keyboard.set_key1(0);
- Keyboard.send_now();
- delay(200);
- }
- void Paste(){
- Keyboard.set_modifier(MODIFIERKEY_CTRL);
- Keyboard.set_key1(KEY_V);
- Keyboard.send_now();
- delay(200);
- Keyboard.set_modifier(0);
- Keyboard.set_key1(0);
- Keyboard.send_now();
- delay(200);
- }
- void Save(){
- Keyboard.set_modifier(MODIFIERKEY_CTRL);
- Keyboard.set_key1(KEY_S);
- Keyboard.send_now();
- delay(200);
- Keyboard.set_modifier(0);
- Keyboard.set_key1(0);
- Keyboard.send_now();
- delay(200);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement