School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,049 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 4,539 people online right now. Registration is fast and FREE... Join Now!



Screen Saver

Screen Saver how do I integrate my screen saver program with Windows environment Rate Topic: -----

#1 Rotimi  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 5
  • Joined: 26-September 06


Dream Kudos: 0

Posted 07 August 2007 - 02:30 AM

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?
Was This Post Helpful? 0
  • +
  • -


#2 ap0c0lyps3  Icon User is offline

  • D.I.C Head
  • Icon
  • View blog
  • Group: Contributors
  • Posts: 82
  • Joined: 19-June 07


Dream Kudos: 25

Posted 07 August 2007 - 06:18 AM

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.
Was This Post Helpful? 0
  • +
  • -

#3 1lacca  Icon User is offline

  • code.rascal
  • Icon
  • Group: Alumni
  • Posts: 3,822
  • Joined: 11-August 05


Dream Kudos: 0

Posted 07 August 2007 - 07:03 AM

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".
Was This Post Helpful? 0
  • +
  • -

#4 Rotimi  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 5
  • Joined: 26-September 06


Dream Kudos: 0

Posted 07 August 2007 - 05:14 PM

hi 1lacca, I dont know who amdeus is, please do u have a link to any of his pages? cheers.
Was This Post Helpful? 0
  • +
  • -

#5 PennyBoki  Icon User is offline

  • system("revolution");
  • Icon
  • View blog
  • Group: Mentors
  • Posts: 2,075
  • Joined: 11-December 06


Dream Kudos: 500

Expert In: Java,C++,C

Posted 08 August 2007 - 02:25 AM

View PostRotimi, on 7 Aug, 2007 - 06:14 PM, said:

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: Posted Image

:)
Was This Post Helpful? 0
  • +
  • -

#6 Programmist  Icon User is online

  • Slouching towards Bethlehem
  • Icon
  • View blog
  • Group: Mentors
  • Posts: 1,516
  • Joined: 02-January 06


Dream Kudos: 100

Expert In: Java

Posted 08 August 2007 - 03:59 AM

Google has "magically" answered your question.
http://www.google.co...amp;btnG=Search
Pick one.
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

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

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month