ali 0 Posted December 2, 2004 (edited) Anyone know how to make the script prevent standby while it is running? Like in realplayer...if you're playing something and u hit standby...it'll tell u that the system has received a request to enter standby mode and also asks you if you want the system to enter standby mode. (see attachment) Any idea how to have the autoit do this? I'm using a laptop and if i shut it while playing music (not in realplayer) then it will go into standby mode...so i was thinking that maybe a script could be written in autoit preventing standby while it is running.... any help plz? Edited December 2, 2004 by ali Share this post Link to post Share on other sites
ezzetabi 3 Posted December 2, 2004 Emulating a small mouse move every 10 minutes or so? Share this post Link to post Share on other sites
ali 0 Posted December 2, 2004 no but the laptop has been set by admin to standby when it is shut....so i want to prevent this....wethr u move the mouse or not...it still goes into standby. Share this post Link to post Share on other sites
Nova 0 Posted December 2, 2004 (edited) Ok try this Open display properties by right clicking ur desktop ------->select the screensaver tab ------->click the button labled power... There should be a pull down menu with the title system standby This value is most likly set to on lid closed ------------->Just set it to never ! Edited December 2, 2004 by nova Share this post Link to post Share on other sites
Somerset 3,042 Posted December 2, 2004 (edited) then don't shut it. what you are talking about deals with an internal switch. Open display properties by right clicking ur desktop and select the screensaver tab click the power... button on the botton of this tabThere should be a pull down menu with the title system standby..... its probly set to on lid closed just set it to never ! is right if you are able to do that, if not disabled by the admin. Edited December 2, 2004 by beerman  Spoiler  Share this post Link to post Share on other sites
ali 0 Posted December 2, 2004 lol...well the power options are disabled...thass why i wntd a script to prevent it for me Share this post Link to post Share on other sites
Somerset 3,042 Posted December 2, 2004 then your kinda s.o.l. unless you pay off the admin.  Spoiler  Share this post Link to post Share on other sites
ezzetabi 3 Posted December 2, 2004 Still I cant understand why the PC should shut down if you are using it, (ie moving the mouse)... Share this post Link to post Share on other sites
Somerset 3,042 Posted December 2, 2004 no but the laptop has been set by admin to standby when it is shut....so i want to prevent this....wethr u move the mouse or not...it still goes into standby. it is a laptop. when closing the top. either shuts it off or powers down. there is generally a switch located in the top of it or on the bezel that does that.  Spoiler  Share this post Link to post Share on other sites
ali 0 Posted December 2, 2004 yes no kiddin beerman...buh its set to standby...and u cnt chng it...buh a program can prevent or control wether it goes into standby when the switch is pushed....i wna knw how to do this Share this post Link to post Share on other sites
Lord Nikon 0 Posted December 2, 2004 Ali, i'm almost positive i've already told you this. This is Something we need Administrative Rights to Modify. Power options are disabled for us. ...and Lord Nikon looked down at his subjects, Prostrating themselves before his feet, his armies marching in the street, and his harem, standing on the side awaiting his need of their "relaxation" services and declared, "It is good...""I am A+ Certified!!!" -Lord Nikon"Pain is weakness leaving the body." -The Marines Share this post Link to post Share on other sites
ali 0 Posted December 2, 2004 yes...but a program can prevent it from going into standby (like how realplayer does)....dnt need to chng the actual setting...onli have the program prevent the standby while it is runnning Share this post Link to post Share on other sites
Valik 478 Posted December 2, 2004 So find a program to do that. AutoIt isnt it. Share this post Link to post Share on other sites
Scottswan 0 Posted December 2, 2004 So find a program to do that. AutoIt isnt it.<{POST_SNAPBACK}>Opt("SendKeyDelay", 1000) ; Run Notepad. Run("notepad.exe") ; Wait for Notepad become active. WinWaitActive("Untitled - ") ; Run endless loop to keep script alive. While 1 ; Send some text and a carrige return to notepad on each pass. Send("I will not go to sleep.{ENTER}") Sleep(5000) WEnd -Scott Share this post Link to post Share on other sites
Valik 478 Posted December 2, 2004 This is not an idle-standby situation. Duh, of course AutoIt could prevent an idle-standby. This is a case where closing the lid on a laptop presses a button which puts the computer in standby. I don't really think the laptop cares if the mouse/keyboard is being used. Have any of you fully read and processed what the original poster is saying, besides beerman? He needs an application that will respond to the standby notification the OS sends out by saying the OS should not go into standby. AutoIt can not do this. Set your PC up so that when you press the power button, it goes into standby instead of powering off. Thats basically the situation that ali is faced with, except instead of pressing power, closing the lid presses a button. In this circumstance, the PC doesn't care about idle times or activity. It gets a standby request and it tries to fullfill it unless another application gets in the way and tells it not to. Share this post Link to post Share on other sites
Somerset 3,042 Posted December 2, 2004 http://www.codeguru.com/Cpp/W-P/system/mes...icle.php/c6907/read.....  Spoiler  Share this post Link to post Share on other sites
Lord Nikon 0 Posted December 3, 2004 ...its, an idea...not sure it will work with the Laptop Restrictions tho... ...and Lord Nikon looked down at his subjects, Prostrating themselves before his feet, his armies marching in the street, and his harem, standing on the side awaiting his need of their "relaxation" services and declared, "It is good...""I am A+ Certified!!!" -Lord Nikon"Pain is weakness leaving the body." -The Marines Share this post Link to post Share on other sites
nobby 0 Posted December 3, 2004 Do not close the lid. CheersNobby Share this post Link to post Share on other sites
Henrik 0 Posted December 3, 2004 Have any of you fully read and processed what the original poster is saying, <{POST_SNAPBACK}> Yet another good one. Keep 'em coming, Valik! Ignorance is strength. Share this post Link to post Share on other sites