Re: Preventing Screensaver activation via Java



On Thu, 28 Apr 2005 22:46:24 -0500, Peter Pfeiffer wrote
(in article <k6ice.665762$w62.423739@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>):

> Just wonder if there is a way to run some java based program to "fool" a
> Windows PC into thinking there was some activity which would keep the
> screensaver from activating.
> I know it's a wide open question and somewhat naive, but some thoughts
> would be welcome.
>
> Thanks,
>
> pj

Don't know if it would work, but you cold try using java.awt.Robot to either
move the mouse a couple of pixels (probably a bad idea) or to generate a
non-typing key event (like pressing the Shift key). I think the Robot hooks
into the system at a level that may reset the screen saver timer.

--
Bill Tschumy
Otherwise -- Austin, TX
http://www.otherwise.com

.