sjorrel Posted November 25, 2005 Share Posted November 25, 2005 Is there an easy way of preventing the screensaver becoming active after a period of inacitivity within Autoit? Link to comment Share on other sites More sharing options...
Nuffilein805 Posted November 25, 2005 Share Posted November 25, 2005 just disable it you can do for $x = 1 to 100 step 1 for $y = 1 to 100 step 1 sleep (59000) mousemove($x,$y) if you want to solve this problem using autoit my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
LxP Posted November 25, 2005 Share Posted November 25, 2005 You could try disabling it via the registry when your script starts (not guaranteed but worth a try): ; Remember current screen saver setting Local $ScrnSaver = RegRead('HKCU\Control Panel\Desktop', 'SCRNSAVE.EXE') ; Disable if one is set RegDelete('HKCU\Control Panel\Desktop', 'SCRNSAVE.EXE') When your script finishes: ; Reset screen saver If $ScrnSaver Then RegWrite('HKCU\Control Panel\Desktop', 'SCRNSAVE.EXE', 'REG_SZ', $ScrnSaver) Link to comment Share on other sites More sharing options...
Nuffilein805 Posted November 25, 2005 Share Posted November 25, 2005 @lxp: this only works when you have admin-rights, i suggest by the way he asks that he hasn't got them nothing personal just a guess my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
sjorrel Posted November 25, 2005 Author Share Posted November 25, 2005 @lxp: this only works when you have admin-rights, i suggest by the way he asks that he hasn't got them nothing personal just a guess I've created a script to automatically install about 7 pieces of software without user intervention, but the screen saver - when set on an XP machine to "go back to login screen" is sometimes causing problems. Link to comment Share on other sites More sharing options...
LxP Posted November 25, 2005 Share Posted November 25, 2005 No, admin rights aren't required to write to HKEY_CURRENT_USER. Link to comment Share on other sites More sharing options...
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