Link to home
Start Free TrialLog in
Avatar of saulbehr
saulbehr

asked on

Changing the Windows Screen Saver

Does anyone know of any Windows APIs or any other methods that I can call from VB6 to change the Windows Screen Saver?
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

The screen saver is kept in a registry entry. Use registry API or the WSHShell if you have VB scripting support to set this key:

HKEY_CURRENT_USER\Control Panel\Desktop\SCRNSAVE.EXE

Avatar of saulbehr
saulbehr

ASKER

Thanks for the comment Tim - could you please give me a VB code sample?
:)
Saul
ASKER CERTIFIED SOLUTION
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Answered my question exactly and it worked correctly.
Many thanks!