home *** CD-ROM | disk | FTP | other *** search
- SSAVE.DLL
- Screen Saver Support DLL for VB
- by Jonathan Zuck
- Copyright 1991 User Friendly, Inc.
-
- I was looking at the After Dark Screen Saver API and getting
- really disgusted! It looked as though it would be quite some time
- before I built a screen saver using their API. Then I thought, "geez!
- What about all the people that are more artistically inclined?!" So,
- in the tradition of HOTKEY, I present SSAVE.DLL.
- SSAVE works on exactly the same principle as HOTKEY. You register
- your window to be notified whenever the user does something and you
- specify a custom keycode to represent that general "event." You will then
- be sent a keydown message, with your custom keycode, whenever the user
- does something, either with the mouse or the keyboard. From within your
- app, you keep a timer, or whatever and when you haven't received those
- special KeyDowns for a while, you have a party. Then, during the party,
- when you get the special KeyDown, you restore everything. Simple. Much
- less work than trying to deal with one of these C APIs.
- The sample I made reflects my lack of artistic acumen and looks
- like a product of the 60's. Don't stare at it too long!<g> It is *only*
- meant to demonstrate the DLL! No comments please! My hope is that some
- of the more artistic people, like John Murdoch, will create nicer ones
- and send them to me to include in the next upload. Don't let me down!
- I can't really see any value to the DLL other than creating
- screen savers. (We'll deal with macro recorders another time!). The
- one other possibility might be that you will want to wait for
- inactivity for some lengthy process.
-
- Documentation:
- There are only two functions in the DLL.
-
- Installed = RegisterSSaver (hWnd, VK_CODE)
-
- where: hWnd is the hWnd of your form and VK_CODE is any number except those
- from 1 - 144.
-
- Type: Boolean (Integer)
-
- Returns: TRUE if you are installed or FALSE if someone else is.
-
-
- UnRegister hWnd
-
- where hWnd is the hWnd of your form (same one you passed above please!).
- This will simply unhook you and allow another process to use the DLL.
-
- That's it!
-
- Liscence:
- You may use and distribute this DLL freely, as long as you include all of
- the files in this ZIP archive. In addition, it would be really nice if
- you would send me any screen savers that you build. Thank you.
-
- Jonathan Zuck
- User Friendly, Inc.
- 1718 M Street, NW
- Suite 291
- Washington, DC 20036
- CIS:76702,1605
-