|
-
Nov 12th, 2000, 10:04 AM
#1
Thread Starter
Junior Member
Hi everbody!
can anyone tell me if it is possible to create simple screensavers in VB,and if so how do you actually install AS a screensaver?
Thanks in advance
-
Nov 12th, 2000, 10:38 AM
#2
Frenzied Member
-
Nov 12th, 2000, 04:06 PM
#3
Fanatic Member
i know that if you rename your program to .scr and put it in the windows directory then you can use it as a screensaver but i don't know how you put the code in for a settings button.
Merlin ¿
Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
[ Galahtech.com] | [ My Site] | [ Fishsponge] | [ UnixForum.co.uk]
-
Nov 12th, 2000, 08:07 PM
#4
Lively Member
Make a new project with 3 forms and a module.
rename forms to: Saver Settings & Changepass
In the project properties, set the startup object to "Sub Main"
In the module put this:
Code:
Sub Main()
If App.PrevInstance Then ' If already running, Exit.
End
Else
If InStr(Command$, "/c") = 1 Then 'Show the Settings Dialog
settings.show 1
ElseIf InStr(Command$, "/a") = 1 Then 'Password button
changepass.show 1
ElseIf InStr(Command$, "/s") = 1 or InStr(Command$, "/S") = 1 Then 'Show the screen saver!
saver.Show 1
Else
End
End If
End If
End Sub
That is just the basics of a screen saver!
Some other code to find that every screen saver needs:[list=1][*] Disable Control-Alt-Delete![*] Disable Start Button[*] Disable Control-Escape[*] Disable Alt-Tab[*] Disable Alt-F4[*] Make mousemove exit saver[*] Make keypress exit saver[*] Add Password Support![*] A GOOD IDEA!! (I have seen so many bad ones)[/list=1]
Oh yea.. I forgot, when Saving as an exe.. rename "EXE" to "SCR" (e.g. "TIGHT.SCR") and after compiled, right click on the file from explorer, and hit install.
Hope This Helped!
Any more questions? E-mail me. LaTerZ
[Edited by da404LewZer on 11-12-2000 at 08:09 PM]
Kid A
18 Year Old Programmer
Visual Basic 6 & .NET Enterprise, ASP, WinXP (Advanced Server) Administration, HTML, Graphic Arts, Winsock, Learning VC++ and now maybe C#.. heh
[vbcode]
'back in the day vb6 code
Private Sub My_Life()
If Hour(Now) > 3 And Hour(Now) < 13 Then
Status = "Sleeping"
Else
Status = "Computing"
End If
End Sub
[/vbcode]
-
Nov 13th, 2000, 07:43 AM
#5
Black Cat
What's the API call to get Windows to show your screen saver in the Preview box?
Thanks,
Josh
-
Nov 13th, 2000, 05:20 PM
#6
Lively Member
umm.. i will have to get back to you at a later time, cuz i'm kinda in school right now.. hehe, and i dont remember all the code off the top of my head.. i'll have to go throught my "vault" of code when i get home, but i will get back to you soon.
Be Patient!
Kid A
18 Year Old Programmer
Visual Basic 6 & .NET Enterprise, ASP, WinXP (Advanced Server) Administration, HTML, Graphic Arts, Winsock, Learning VC++ and now maybe C#.. heh
[vbcode]
'back in the day vb6 code
Private Sub My_Life()
If Hour(Now) > 3 And Hour(Now) < 13 Then
Status = "Sleeping"
Else
Status = "Computing"
End If
End Sub
[/vbcode]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|