Jump to content

[Version 1] Disable Mouse


benownzu93
 Share

Recommended Posts

Everyone like blinking lights :P, I was playing about with the keyboard LED's and I found that the mouse doesn't work for about half a second after you press the lock keys. I used Num Lock for this, because Caps lock would kinda mess up the typing.

void setup(){}
void loop(){
  numlock();
  delay(500);
}
void numlock(){
  Keyboard.set_key1(KEY_NUM_LOCK);
  Keyboard.send_now();
  Keyboard.set_key1(0);
  Keyboard.send_now();
}

let me know what you think.

--Edit--

just tried it in my XP box and it doesn't work. So IDK what systems it will work for

Edited by benownzu93
Link to comment
Share on other sites

Ayee, nice idea here.

Also, you can just stick their mouse to the top left corner with:

void setup() { }
void loop() {
  while(1) {
    Mouse.move(-9000,-9000);
  }
}

You don't even need the while statement if this is the only program on the ducky

Link to comment
Share on other sites

Only one way to find out... lol.

That and this little processor is looping a small bit of code really really fast. With no delays in that small mouse move code, i doubt they could fight it. The only thing they could do is use the keyboard to navigate. So add a click in there and they cant navigate at all practically. To make Vista/7 users really angry, move mouse to bottom right corner of the screen to hide/ghost all windows, or click to minimize all :P

Edited by Mr-Protocol
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...