Disable corporate computer blocking
Task: Find way and implement anti-blocking computer tool
Corporate computer has policy to block in 10 inactive minutes. So the goal is avoid blocking.
Solution:
I am going to use Arduino Leonardo controller and will write program which emulates mouse move action every 1-2 minutes.
Program: MouseMover.ino
#include <Mouse.h>
void setup() {
randomSeed(analogRead(0));
Mouse.begin();
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
delay(60000 + random(60000)); // 60 seconds + random(0..60) seconds
switch (random(4)) { // random direction
case 0:
Mouse.move(2, 0, 0);
break;
case 1:
Mouse.move(-2, 0, 0);
break;
case 2:
Mouse.move(0, 2, 0);
break;
case 3:
Mouse.move(0, -2, 0);
break;
}
// Led indicator blink.
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off
}
Insert this controller into any USB port on your computer and your mouse will do little move (2 pixels) every 1-2 minutes as a result your OS will never be blocking.
Have a fun.
Done.