Jump to content

about screen saver


t0ddie
 Share

Recommended Posts

how would i go about turning on my screensaver automatically......

right when i run my script.

and keep it on, like set the idle time to zero

is there a script made or an easy way to do it? thanks

thanks

THANKS!

T0ddie

EDIT :

also, any way to turn off the sound?

Edited by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Link to comment
Share on other sites

is there a way for the script to constantly check if the screensaver is not on, then put it back on?

Edited by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Link to comment
Share on other sites

is there a way for the script to constantly check if the screensaver is not on, then put it back on?

<{POST_SNAPBACK}>

I'm not sure the best way to run a screensaver...
HotKeySet("{Esc}", "Quit")
Func Quit()
   Exit
EndFunc

Dim $SCR_PATH = RegRead("HKEY_CURRENT_USER\Control Panel\Desktop","SCRNSAVE.EXE")

; List all processes
While 1
   Dim $SCR_DETECTED = 0
   $list = ProcessList()
   For $i = 1 to $list[0][0]
      If StringInStr($list[$i][0], ".scr") Then
        ;*********
        ; Screen Saver is running
        ;*********
         $SCR_DETECTED = 1
      EndIf
   Next
   If Not $SCR_DETECTED Then
     ;*********
     ; Screen Saver is not running
     ;*********
      Send("#r")
      WinWait("Run")
      ControlSetText("Run","","Edit1", $SCR_PATH)
      ControlClick("Run","","OK")
   EndIf
  sleep(100)
WEnd
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

i get an error when running that lol

also, there is no scrnsaver.exe on my computer

Edited by t0ddie

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Link to comment
Share on other sites

The following screen savers should exist in @SystemDir (typically C:\windows\system32) for Windows XP:

logon.scr

scrnsave.scr

ss3dfo.scr

ssbezier.scr

ssflwbox.scr

ssmarque.scr

ssmypics.scr

ssmyst.scr

sspipes.scr

ssstars.scr

sstext3d.scr

By the way, my code probably requires the latest AutoIt beta version.

http://www.autoitscript.com/autoit3/files/beta/autoit/

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

im not getting any screensaver to run.

is there a way to turn off the monitor with the power settings?

otherwise... i dont know im stuck! screensaver isnt working

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Link to comment
Share on other sites

so, what i really want, is to turn off the monitor.

theres a power saving setting... so there must be a way to make the timer on that zero

anyone think of anything?

Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Link to comment
Share on other sites

yes valik, but is there a way to set it to zero? with a script?

<{POST_SNAPBACK}>

Errr... set it* to 0? With a script? MouseMove()... Send()...

Where idle "it" idle is idle an idle idle idle timer idle.

Theres a lesson there. Its called ask good questions.

Setting an idle timer to 0 means it has to build back up to its threshold in order to be triggered.

Now, to answer your question, no, there isn't a way to change an idle timer to advance time, only to reset it. There may or may not be an API to send the monitor into standby (I've seen programs have such a feature). However, I doubt the API is callable from AutoIt and if it was, I doubt it'd be simple enough for you to use without pestering somebody on here to write it for you.

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...