Jump to content

KillSaver


TomTheGeek
 Share

Recommended Posts

I too wanted to toggle killsaver on and off. I added an a checked menu item to the traymenu and changed the tool tip to show current state of activation.

I tried using the reg but found that the screensaver would not restart after changing the key with regwrite. But if I merge it in, It worked.  Any ideas?

I don't have either code here (home.)  I'll try to upload it later.

-Steve

<{POST_SNAPBACK}>

not sure why yours wasn't working after re-writing the value, mine is, just double checked it... did my code not work for you? or did your attempt to do the same thing not work? i also just added a traytip to say when SS is disabled

$old = RegRead ( "HKEY_CURRENT_USER\Control Panel\Desktop\","SCRNSAVE.EXE" )
$KILL = RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop\","SCRNSAVE.EXE","REG_SZ","")
HotKeySet("{PAUSE}","ToggleSS")
TrayTip("Status","SS OFF",0)
while 1
    sleep(1000)
WEnd

Func ToggleSS()
    RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop\","SCRNSAVE.EXE","REG_SZ",$old)
Exit
EndFunc
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...