Is there a program that can wiggle my mouse every 5 minutes?

If the software doesn’t work, I’ve heard of a lady who used a clock. Rigged the second hand to jiggle a lever/ruler or some such against the mouse. Apparently it was enough movement to prevent the computer for logging off.

Out of curiosity are you in the travel industry? (SABRE has implemented just such a system wide requirement, to log of users after a set time period).

And here I thought “wiggle my mouse” was some new euphemism.

Probably not addressing the OP’s needs, but I had a need to do this sort of thing from java a few months back. FWIW, there’s a java.awt class that can manipulate the mouse and keyboard, actually intended for writing automated test harnesses and demos, and it’s very simple. It can do screen captures as well. It’s been around since JDK 1.3.

import java.awt.Robot;
import java.awt.event.KeyEvent;

Robot robo = new Robot();

robo.keyPress(KeyEvent.VK_SHIFT);
robo.keyRelease(KeyEvent.VK_SHIFT);

The above simply presses the shift key, which I found to be sufficient to convince SETI to stop when my automated tasks written in java ran.

2.6MB for that!? And to think I once had a boss who said that any program worth writing could be coded in less than 4K. Times sure have changed! :slight_smile:

I’m afraid I’m going to have to be that tiresome guy and agree that circumventing an implemented security policy of your organisation is probably not something you want to be doing.

A large proportion of security problems are caused by users circumventing rules that are in place for very good reasons. If you feel that the rule is interfering with your job the correct solution is to bring it up with whomever is in charge of your organisational security policy. Changing a time-out from 5 to 10 minutes in response to an organisational need such as yours is a pretty small and reasonable request that is unlikely to raise the kind of hackles that will be raised if your IS people catch you running code to end run around their security.

Guys, I asked a specific question. What I am not looking for are opinions on the ethics regarding what I want to do; I’m more than capable of deciding that for myself, which I already have.

There are certain specific questions for which it is inappropriate to withhold such comment, for example “I intend to drill a hole in my head; should I use a spade bit, or an auger?”. Your question simply falls into this category.

Are you seriously treating the two questions as equals?

Regardless, I’ve made it clear that I do not wish to discuss the merits of what I intend to do, so I would appreciate it if you respected that wish, because at this point, it would be “inappropriate” to do anything else.

I know this is straying outside the bounds of GQ, but which one is better for self-treating a demonic possession, and which one is better for removing memories of magical numbers and formulas?

No, and I didn’t say I was. they happen to fall into the same category, that is the category of questions where it is inappropriate to withold unsolicited advice as to the wisdom of the stated action. That’s all.

I don’t care. It was a salient point, regardless whether or not you’ve considered it, or think you have, or think it doesn’t matter.

Great, then stop crapping on my thread.

Ok.

Well, a spade bit for the latter. But for the former, it’s best to use a hammer drill with a masonry bit.

I figured that you had already asked yourself the question “Is this a wise thing for me to try?”, Red Barchetta.

I certainly hope that the program works as desired – let us know on Monday! However, one must take caution from Robert Burns, here :

So, if you get fired or your workplace vanishes into a pan-galactic anomaly, the SDMB will disavow any knowledge of your actions! We beg you not to install that program! [ :wink: ]

I know you’re being tongue-in-cheeck, but I’d point out that the 2.6MB is the amount assigned by my OS when there’s oodles of Ram to spare. The executable WiggleMouse.exe is ~200kB on disk (still horribly bloated, but not unusual for a small program that nevertheless uses Windows API calls). The source code for my script can be brought down to about 64 bytes by hard-coding values and shortening the loop’s name.

I’m usually strongly against bloated code, which is why I use PowerBasic whenever possible; WiggleMouse.exe would be a few kB with that. An assembly-language WiggleMouse.exe would be a few hundred bytes (mainly just entry/exit code required by any Windows .EXE). However, for Red Barchetta’s problem it seemed that a “quick-‘n’-dirty” solution – using a freely-downloadable compiler – was the order of the day. Plus, it showcases the ease and usefulness of simple scripting languages to solve repetitive problems…

[Of course, back in the DOS days, a TSR doing the same thing would only be about 20 bytes!]

In general, the Straight Dope prefers that questions about how to defeat computer security, how to pick locks, how to download copyrighted material and other such bothersome topics, not be posted.

This one’s closed.

samclem General Questions Moderator