TomTheGeek Posted August 11, 2005 Author Posted August 11, 2005 eltorro - I'd love to see your updated code if you still have it. www.TomTheGeek.com - All the geeky stuff that gets me hot
seandisanti Posted August 11, 2005 Posted August 11, 2005 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now