Re: Preventing Screensaver activation via Java
- From: Bill Tschumy <bill@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 13:56:42 GMT
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
.
- References:
- Preventing Screensaver activation via Java
- From: Peter Pfeiffer
- Preventing Screensaver activation via Java
- Prev by Date: Re: Performance of isDirecory()
- Next by Date: Re: Out of memory error
- Previous by thread: Preventing Screensaver activation via Java
- Next by thread: Open Source Distributive Cache solution
- Index(es):