Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Making a screensaver

Posted on 1998-06-21
13
Medium Priority
?
261 Views
Last Modified: 2010-05-18
I'm making a screensaver.

1. When choosing screensaver in the Win95 controlpanel, the screensaver is started with the commandline "/p 644", the number changes and I think this is the handle of the controlpanel window. And I think it wants the screensaver to show a preview in the picturebox. Am i right?? If so, how?? (Examples please)

2. How do I make my screensaver use the password stated in the controlpanel/screensaver/password?? (examples please)

Maybe someone even has a screensaver example that implements the above functions, that I could take a lok at?

Need help! // Anders Schrewelius
0
Comment
Question by:snoffy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
  • +2
13 Comments
 
LVL 1

Expert Comment

by:kesonline
ID: 1463908
I don't know if this all helps, but theres a big screensaver demo @ www.microsoft.com/vbasic/ in the owners area.
0
 
LVL 4

Expert Comment

by:yowkee
ID: 1463909
snoffy,

  1. You are right. The command line Arument "/p XXX" where number XXX is the window handle of the control panel display property window. You must handle this argument in your startup module(eg. Sub Main) and then to load appropriate form to do the screensaver preview.

  2. For using the password, when user checked the "password protected" checkbox and click the "Change Password" button, it will pass argument "/a XXX" to selected screen saver. Then your application need to handle this argument and load appropriate form for user to change password. In this case, you could handle getting and saving password yourself.

  I have an example to doing this. Since its code quite a lot, I don't post here. Please let me know if you need it.

  Regards.
0
 
LVL 1

Expert Comment

by:sirigere
ID: 1463910
The only change you got make in you sub main is checkfor only first two characters i.e /x and remaing don't consider
in your sub main it is better to write code like this
select case ucase(left$(command$,2))
case "/S"
write your code
case "/A"
..
end select


using only starting two charcters you can cooly handle the whole screen saver application

0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:snoffy
ID: 1463911
To Kesonline:
   I've now been browsing the owner's area without finding a sample for a screensaver. Do you have the URL? Thanks.

To Yowkee:
   I could really use that code of yours! Please send it to me at snoffy@home.se, I would greatly appreciate it! Thanks.

To Sirigere:
   You didn't answer my question.
0
 
LVL 4

Expert Comment

by:yowkee
ID: 1463912
snoffy,
 
  I've been mailed you the project. Please try it and leave your comment here.
  Regards.
0
 
LVL 1

Expert Comment

by:MAVERICK
ID: 1463913
One Idea.... check the PAQs As there was a few screensaver questions asked previously...


0
 
LVL 1

Expert Comment

by:MAVERICK
ID: 1463914
One Idea.... check the PAQs As there was a few screensaver questions asked previously...


0
 
LVL 1

Expert Comment

by:sirigere
ID: 1463915
I am here sending the skeleton for a small screen saver
paste this code in your form module
form_load()

select case Ucase$(left$(command$,2))
case "/S"   'make sure s is capital
msgbox "/s"
case "/A"
msgbox "/A"
case "/C"
msgbox "/c"
end select

you compile this small screen saver with specifically mentioning as name.scr into windows directory
you can note the following
/a is for change password
/s for when you press oreview button
/c for when you press setting button


0
 

Author Comment

by:snoffy
ID: 1463916
Sirigere: You just said that, and it doesn't help me dick ****.
I know the parameters it receives but not how to handle them.

.until now. I just found this great site with a very professional example. He should get the points... =)

Yowkee: Thanks! I will look at your code example too. Here's your points, don't spend them all at once =)

PS yowkee: I posted another question about 'Ping'...
0
 

Author Comment

by:snoffy
ID: 1463917
Yowkee: Reply to get the points!!
0
 
LVL 1

Expert Comment

by:sirigere
ID: 1463918
If you don't know how to put the question it is your problem. From your question I can only infer that you don't know what you are taling about(screen saver). Be professional at replying in a great professional site like this

0
 
LVL 4

Accepted Solution

by:
yowkee earned 800 total points
ID: 1463919
snoffy,

  My answer to the question is as my comment. Handle the command line argument of "/p xxx" and "/A xxx". And I have a working app which having quite a lot code to post here. Who ever need the application, please mail me at yowkee@yahoo.com.

  Have a nice day. snoffy.
0
 

Author Comment

by:snoffy
ID: 1463920
Thanks, Yowkee!

PS Blow me, sirigere! DS
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question