-
Writing screen saver for NT
Tried writing a screen saver in VB6. Everything worked fine on a win95 pc,
but I have hit some problems when running on NT machine. The screen saver
is 'interactive' so processes key/mouse events rather than exiting back to
desktop, to stop the saver you click a corner button to close. The problems
I was looking for help on are as follows;
1) SystemParametersInfo was used to say screen saver was running that way
the system keys (ctlr_alt_del, alt_tab, etc) where ignored. This does not
work on NT, the MS site says you have use a lowlevel keyboard hook. The
article gives sample C code so if anyone has any idea on how to convert this
to vb???
http://support.microsoft.com/support.../Q226/3/59.ASP
2) Activating the screen saver from VB code using SendMessage works fine
for win95 but has a weird effect on NT. If I use a standard NT saver and
set password protection on then normal running would ask me my password,
but if I use;
Dim lngHWnd As Long
lngHWnd = GetDesktopWindow()
Call SendMessage(lngHWnd&, WM_SYSCOMMAND, SC_SCREENSAVE, 0&)
This starts the saver but as soon as I press a key it goes back to desktop?!?
I need to demo this screen saver soon so any help is very appreciated!!!
Thanks Darren
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks