tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 VB Script > Advanced > Get Screen Saver

Get Screen Saver 

The following example shows getting screen saver by reading windows registry.

File Name  :  
source/VBS/advanced/screen_saver.vbs 
Author  :  Sudhakar KV
Email  :  kvenkatasudhakar@gmail.com
1Dim WSHShell, RegKey, ScreenSaver
2Set WSHShell = CreateObject("WScript.Shell")
3 
4deskTopRegKey = "HKCU\Control Panel\Desktop\"
5 
6'Read the registry key of screen saver
7ScreenSaver = WSHShell.RegRead(deskTopRegKey & "SCRNSAVE.EXE")
8 
9WScript.echo "Screen Saver: " & ScreenSaver



 
  


  
bl  br