LIKE a screensaver??????
posted 24 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Hello Everyone,
I have this really cool idea (I think) for a screensaver program. Of course I can't write it in Java since the screensaver is run by the operating system. I really want to keep the platform independence (and avoid writing native code in C++ (shudder) ). So what I want to know is, is there anyway that I can make a java program ACT like a screensaver. Specifically when it is run it sits in the background listening to keystrokes or mouse activity (even within another program) . If after a certain time there isn't any such activity then it does something until that activity occurs.
I don't think there is anyway to listen for ALL such activity (since in java one adds these listeners to a specific component) since I would need the Java program to figure out that there is no such activity going on even in any other programs. But I thought I would see if anyone has any workarounds ...
Dan
I have this really cool idea (I think) for a screensaver program. Of course I can't write it in Java since the screensaver is run by the operating system. I really want to keep the platform independence (and avoid writing native code in C++ (shudder) ). So what I want to know is, is there anyway that I can make a java program ACT like a screensaver. Specifically when it is run it sits in the background listening to keystrokes or mouse activity (even within another program) . If after a certain time there isn't any such activity then it does something until that activity occurs.
I don't think there is anyway to listen for ALL such activity (since in java one adds these listeners to a specific component) since I would need the Java program to figure out that there is no such activity going on even in any other programs. But I thought I would see if anyone has any workarounds ...
Dan
posted 24 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Dan,
To me this almost seems impossible to do since like you said, events have to be registered with Java components. Still, I think nothing is impossible. If you do figure this one out, I would really like to know how to do it also. [email protected]
Thanks,
Barry
To me this almost seems impossible to do since like you said, events have to be registered with Java components. Still, I think nothing is impossible. If you do figure this one out, I would really like to know how to do it also. [email protected]
Thanks,
Barry
posted 24 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
It may be easier than you think. Screensavers are EXE files renamed to .SCR and started with an /s option on the command line. They usually reside in the WINDOWS directory.
posted 24 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
So if you had a .bat file and renamed it to .scr, and in that file you started a java application . . . .
Might be fun to play with.
Might be fun to play with.
"JavaRanch, where the deer and the Certified play" - David O'Meara
| Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me: The new gardening playing cards kickstarter is now live! https://www.kickstarter.com/projects/paulwheaton/garden-cards |








