t0ddie Posted January 15, 2005 Posted January 15, 2005 (edited) 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 January 15, 2005 by t0ddie Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.
this-is-me Posted January 16, 2005 Posted January 16, 2005 #1: Run("C:\windows\system32\screensaver.scr") #2: Maybe not, but you can soundsetwavevolume to 0 Who else would I be?
t0ddie Posted January 16, 2005 Author Posted January 16, 2005 (edited) is there a way for the script to constantly check if the screensaver is not on, then put it back on? Edited January 16, 2005 by t0ddie Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.
t0ddie Posted January 16, 2005 Author Posted January 16, 2005 also, the system cannot find the file specified. (for #1) im on windows xp pro Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.
CyberSlug Posted January 16, 2005 Posted January 16, 2005 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!
t0ddie Posted January 16, 2005 Author Posted January 16, 2005 (edited) i get an error when running that lol also, there is no scrnsaver.exe on my computer Edited January 16, 2005 by t0ddie Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.
CyberSlug Posted January 16, 2005 Posted January 16, 2005 The following screen savers should exist in @SystemDir (typically C:\windows\system32) for Windows XP:logon.scrscrnsave.scrss3dfo.scrssbezier.scrssflwbox.scrssmarque.scrssmypics.scrssmyst.scrsspipes.scrssstars.scrsstext3d.scrBy 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!
t0ddie Posted January 16, 2005 Author Posted January 16, 2005 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.
t0ddie Posted January 16, 2005 Author Posted January 16, 2005 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.
Valik Posted January 16, 2005 Posted January 16, 2005 Don't move the mouse/keyboard or have any other application running which might reset the idle timer?
t0ddie Posted January 16, 2005 Author Posted January 16, 2005 yes valik, but is there a way to set it to zero? with a script? Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.
Valik Posted January 16, 2005 Posted January 16, 2005 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.
t0ddie Posted January 16, 2005 Author Posted January 16, 2005 ok thanks Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.
Blue_Drache Posted January 16, 2005 Posted January 16, 2005 Hey Valik, Can you write something for me.... Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
Valik Posted January 16, 2005 Posted January 16, 2005 Hey Valik, Can you write something for me....<{POST_SNAPBACK}>Just an obituary...
therks Posted January 21, 2005 Posted January 21, 2005 You can use Wizmo to turn off your monitor.http://grc.com/wizmo/wizmo.htm My AutoIt Stuff | My Github
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