Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Screen Saver - Toggle On or Off - Add to Desktop Context Menu

11 Mar 2015   #40
Brink

64-bit Windows 10 Pro
 
 

Okey doke. Posting here is fine if you like.


My System SpecsSystem Spec
.
18 Mar 2015   #41
pxfragonard

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Hi Shawn. Because of a conflict with playing music (the script closes WMP), I thought I'd do some research and try a box instead. It works except the box doesn't get killed after showing up the way WMP does. Here's what I've got so far:

Registry = "HKCU\Control Panel\Desktop\ScreenSaveActive"
Set Command1 = WScript.CreateObject("WScript.Shell")
Set command2 = CreateObject("Wscript.Shell")
Set oVoice = CreateObject("SAPI.SpVoice")
Check = Command1.RegRead(Registry)
If Check = 1 Then
Command1.RegWrite Registry, 0, "REG_SZ"
x=msgbox("screen saver has been disabled" ,0, SSD)
WScript.sleep 1000
command2.Run "taskkill /f /im wscript.exe", 0
Else
Command1.RegWrite Registry, 1, "REG_SZ"
x=msgbox("screen saver has been enabled" ,0, SSD)
WScript.sleep 1000
command2.Run "taskkill /f /im wscript.exe", 0
End If

And please tell me if you're offended or I've broken any rules or shown bad manners in reverse engineering your code.
My System SpecsSystem Spec
18 Mar 2015   #42
Brink

64-bit Windows 10 Pro
 
 

I'm not offended at all. I thought that I had removed the bit about killing WMP since it was no longer used in the script. Thank you for letting me know.

I have updated the .vbs file from step 1 in OPTION ONE. Please try the new version, and let me know how it works for you now.
My System SpecsSystem Spec
18 Mar 2015   #43
pxfragonard

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Super, Shawn. Works without closing or even interrupting the music playing on WMP. Just runs simultaneously! Thanks!
My System SpecsSystem Spec
.

18 Mar 2015   #44
Brink

64-bit Windows 10 Pro
 
 

Perfect.
My System SpecsSystem Spec
18 Mar 2015   #45
pxfragonard

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

BTW, I figured out how to make the box notice disappear too. I just dragged the .vbs file to the taskbar and clicked the scripts icon. I clicked the box to make it time out in 1 second. Now a box opens that says "Screen saver is enabled" or "Screen saver is disabled" and disappears.
My System SpecsSystem Spec
18 Mar 2015   #46
Brink

64-bit Windows 10 Pro
 
 

Good news.
My System SpecsSystem Spec
15 Dec 2015   #47
MourningStar

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Shawn, this is a great tutorial - thx! Works great UNLESS:

I notice that when the toggle state is in 'off' mode and the Screensaver Settings has the 'On resume, display logon screen' box checked that the logon on screen displays after the "Wait' period. Thoughts?
My System SpecsSystem Spec
15 Dec 2015   #48
Brink

64-bit Windows 10 Pro
 
 

I don't think that can be bypassed other than unchecking the "On resume..." box.
My System SpecsSystem Spec
15 Dec 2015   #49
MourningStar

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by Brink View Post
I don't think that can be bypassed other than unchecking the "On resume..." box.
Thx Shawn -

I am curious as to how to know if the computer is in the off or on state other than having to wait for the Screen Saver Setting 'wait' period. I think it would be so cool if an icon like the Recycle bin (e.g. wastebasket with/without waste) could be developed for this.

Thoughts?
My System SpecsSystem Spec
Comment

 Screen Saver - Toggle On or Off - Add to Desktop Context Menu




Tutorial Tools Search this Tutorial
Search this Tutorial:

Advanced Search




Similar help and support threads
Windows 7 Tutorial Category
Screen Resolution - Add or Remove from Desktop Context Menu
How to Add or Remove "Screen resolution" from Desktop Context Menu in Windows This tutorial will show you how to add or remove Screen resolution from the desktop context menu for all users in Windows 7 and Windows 8. You must be logged in as an administrator to be able to do the steps in this...
Tutorials
Context menu to toggle the hidden flag on files and folders?
I know there's a context menu entry to show/hide hidden files. But is there one that makes/unmakes the file/folder hidden? Going to a file/folder's properties just to change it is a bit of a hassle (esp. on shortcut files). Just in case I wasn't clear (or my wording was a bit confusing),...
Customization
Next Desktop Background - Add or Remove from Desktop Context Menu
Add or Remove "Next desktop background" from Desktop Context Menu in Windows 7 and Windows 8 A desktop slideshow is a slideshow of wallpaper images (pictures) of your choice on your desktop. When a desktop slideshow is being used in Windows 7 or Windows 8, Windows automatically adds Next...
Tutorials
adding "toggle hidden files" to context menu in 64-bit
hey guys, i have a laptop with windows 7 32-bit system and got the "toggle hidden files" on my context menu by a simple process and love it, so I wanted to have the same thing on my desktop, which is also windows 7, but it is 64-bit. I have tried a few different methods, including putting the...
Customization
Desktop Context Menu
Can anyone help me w/a little customization? In the attached picture, I want to move the StickyNote selection down into the New heading & also remove the (zipped) wording from New>Compressed (zipped) Folder. Anyone have any solutions?
Customization
Desktop Context Menu
The context menu ( right click desktop) has lost it. EX: click new .txt doc and nothing comes up. Some of the others do not work (most). I looked at a tutorial for it and there was some reg files to restore change etc.. Also seen a link for shmnview-x64.zip. Before I bork everything, is the...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 06:00.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App