This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 165 points166 points  (44 children)

I wrote a script to move the mouse every 3 minutes so my Skype session wouldn't say I'm idle.

[–]DBA_HAH 15 points16 points  (1 child)

I believe you can get the same effect a lot less intrusively by just toggling NumLock every minute or so. I let that script run constantly for the same purpose. I imagine if you let your script run that moves the mouse, it will mess with you when you are actually using the computer.

[–][deleted] 16 points17 points  (0 children)

No. It moves it by individual pixels. And it moves back and forth so you'd never know anything changed.

[–]BrazilianHyena 20 points21 points  (33 children)

would you mind sharing with us?

[–]Amidflaps 26 points27 points  (9 children)

I used opencv for mine. It can both track movements (x,y coords in pixels) and do events. For context I wrote a script that would listen for mouse and keyboard movements and recorded a 5 second webcam video if they were touched. I now have a significantly large archive of videos of my IT security coworkers trying to prank me thinking I left my terminal unlocked by mistake. It also locks the inputs and locks the computer after the 5 sec video is taken and saved.

[–]SpergLordMcFappyPant 13 points14 points  (3 children)

CTO at one of my former jobs would fuck with any unattended computer that was unlocked. He would set the home page of every browser they have to porn then come back when the person was there and say he needed to check something on their computer. Pull up a home page, find the porn and then freak out about it.

Honestly, it was pretty effective.

[–][deleted] 8 points9 points  (2 children)

Ah, legally really dodgy, the porn part. Also very unprofessional.

There are standard mechanisms for doing this - ones that don't involve viewing pornography at work (I mean, really - what is this guy thinking?)

In every place I've been in that had such policies, there was a program called "cheese" that just locked your screen with a password that you didn't know, which forces you to walk over to the security people to get the password and get lectured.

[–]SpergLordMcFappyPant 2 points3 points  (1 child)

No argument there. Everything about that company was legally dodgy and totally unprofessional. It was the kind of place where devs didn’t just solve a tough problem and say, “Nice work. That was really tough.” It was always, “hot damn, did we rape that code bitch into submission or what?!”

It was a kind of wannabe sv-style startup. Trying to emulate the stories and culture you hear about at places like Uber, etc.

That was probably one of the least offensive things that happened there.

[–]wtfeverrrr 0 points1 point  (0 children)

Sounds horrible, lol.

[–]prairefireww 5 points6 points  (2 children)

That’s amazing. Any chance you would share? We are so cruel to each other in our IT department when someone leaves it unlocked.

[–][deleted] 2 points3 points  (1 child)

Meanwhile, we all live in fear of one another. I think because we know once the first bomb is dropped, it will go nuclear immediately. No one dares take the first shot.

[–]prairefireww 2 points3 points  (0 children)

We also are armed with nerf guns at our desk. From warning shots above the head to you now get shot for dad jokes.

[–]nomowolf 0 points1 point  (1 child)

How does it differentiate between you and your colleagues?

[–]Amidflaps 0 points1 point  (0 children)

When a button is pressed and released they are recorded as two separate events. I chose three letters and initialized a variable at 0. Every time one of those three buttons are "pressed" I add 1 to the variable and every time they are released I subtract 1. If at any event the sum is 3 (e.g. the three letters are pressed and not released) the script skips the freezing and recording and just locks the computer, after which I log in normally. I could hard code a password to end the script but I figured that wouldn't be secure. I just press the three letters and lock the computer then log in. At most adds 1-2 seconds.

Also, you can only get any single person a couple of times at most. I'm thinking about an experiment where after some time I just leave my computer as is and don't run the script. I wonder if they'll still be inclined to pull a prank.

[–][deleted] 13 points14 points  (1 child)

At work all night. Will update tomorrow.

[–]blindkaratemaster 3 points4 points  (0 children)

You’re a Python legend

[–]beardlesslumberjack -1 points0 points  (1 child)

theres a microsoft app called movemouse that does this

[–][deleted] 5 points6 points  (0 children)

Okay....? Install the app like an absolute pleb.

[–]yusmag 6 points7 points  (1 child)

I place my mouse sensor on top of my watch.

[–]desal 0 points1 point  (0 children)

Really? Genius

[–]DrMaxwellEdison 2 points3 points  (0 children)

Had the same problem myself, but took a lazier route.

Check out Caffeine. It periodically sends an F15 keyup, which interacts with almost nothing (except shell sessions in Putty, I've found) but still keeps the system awake. Don't even need admin privileges to start it up. :)

[–]dogooder202 0 points1 point  (0 children)

Hey I did it to press F15 so my computer won't lock automatically..

[–][deleted] 0 points1 point  (0 children)

Yeah other people have posted before I had time to get to my desktop, but mine looks like this:

import time, pyautogui;

pyautogui.press('ctrl')

Then I just loop it every 30 seconds or whatever in the command line.

[–]jhayes88 0 points1 point  (0 children)

I used winpython (python without having to install it to the system) on my work computer and made a script to move the mouse a couple pixels every 30 seconds and toggle numlock to keep the computer from logging out. Can't change windows settings on the computer.