Welcome to Dream.In.Code
Become a Java Expert!

Join 149,513 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,350 people online right now. Registration is fast and FREE... Join Now!




Screen Saver

 
Reply to this topicStart new topic

Screen Saver, how do I integrate my screen saver program with Windows environment

Rotimi
7 Aug, 2007 - 02:30 AM
Post #1

New D.I.C Head
*

Joined: 26 Sep, 2006
Posts: 5


My Contributions
I have an almost finished screen saver progrram, which rceives a search term in its search box, and displays on screen cartoons related to this search terms. The caroons are drawn directly from an online database. Now the problem I am having is how can I integrate this with the windows environment, so that when the pC is idle, its my cartoons that show up on the screen, and not the defalt ones?
User is offlineProfile CardPM
+Quote Post

ap0c0lyps3
RE: Screen Saver
7 Aug, 2007 - 06:18 AM
Post #2

D.I.C Head
Group Icon

Joined: 19 Jun, 2007
Posts: 79


Dream Kudos: 25
My Contributions
Java alone can't set your program to work as a screensaver.
You can use C or C++ to compile scr file that will execute your
program. I have never made any screensaver or anything of that sort. So I don't know exactly how it will work.
User is offlineProfile CardPM
+Quote Post

1lacca
RE: Screen Saver
7 Aug, 2007 - 07:03 AM
Post #3

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 12 times
My Contributions
A screensaver is a simple program, that reacts to different command line switches:
- /S on the command line when Windows wants to run the Screen Saver or the user tests it.
- /P and a window handle to create the preview window on the Display Properties Dialog Box
- /A and a window handle when the user wishes to change the Screen Saver password.
I think it is enough to care about the first one, and do nothing about the others (maybe you can even get away without checking them at all)
Anyway the TODO (theoretically):
- create a jar
- use some jar to exe tool (I am sure Amadeus has posted it a couple of times in different topics, but right now I can't remember what and where was it)
- rename the exe to scr
Check if it works, and sorry if it doesn't, it was only an "educated guess".

User is offlineProfile CardPM
+Quote Post

Rotimi
RE: Screen Saver
7 Aug, 2007 - 05:14 PM
Post #4

New D.I.C Head
*

Joined: 26 Sep, 2006
Posts: 5


My Contributions
hi 1lacca, I dont know who amdeus is, please do u have a link to any of his pages? cheers.
User is offlineProfile CardPM
+Quote Post

PennyBoki
RE: Screen Saver
8 Aug, 2007 - 02:25 AM
Post #5

system("revolution");
Group Icon

Joined: 11 Dec, 2006
Posts: 2,010



Thanked: 7 times
Dream Kudos: 500
Expert In: Java,C++,C

My Contributions
QUOTE(Rotimi @ 7 Aug, 2007 - 06:14 PM) *

hi 1lacca, I dont know who amdeus is, please do u have a link to any of his pages? cheers.

You don't know who Amadeus is blink.gif IPB Image

smile.gif
User is offlineProfile CardPM
+Quote Post

Programmist
RE: Screen Saver
8 Aug, 2007 - 03:59 AM
Post #6

Four-letter word
Group Icon

Joined: 2 Jan, 2006
Posts: 1,250



Thanked: 11 times
Dream Kudos: 100
Expert In: Java

My Contributions
Google has "magically" answered your question.
http://www.google.com/search?hl=en&q=j...amp;btnG=Search
Pick one.
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 07:50PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month