ali Posted December 2, 2004 Share 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 Link to comment Share on other sites More sharing options...
ezzetabi Posted December 2, 2004 Share Posted December 2, 2004 Emulating a small mouse move every 10 minutes or so? Link to comment Share on other sites More sharing options...
ali Posted December 2, 2004 Author Share 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. Link to comment Share on other sites More sharing options...
Nova Posted December 2, 2004 Share 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 Link to comment Share on other sites More sharing options...
Somerset Posted December 2, 2004 Share 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 Link to comment Share on other sites More sharing options...
ali Posted December 2, 2004 Author Share Posted December 2, 2004 lol...well the power options are disabled...thass why i wntd a script to prevent it for me Link to comment Share on other sites More sharing options...
Somerset Posted December 2, 2004 Share Posted December 2, 2004 then your kinda s.o.l. unless you pay off the admin. Link to comment Share on other sites More sharing options...
ezzetabi Posted December 2, 2004 Share Posted December 2, 2004 Still I cant understand why the PC should shut down if you are using it, (ie moving the mouse)... Link to comment Share on other sites More sharing options...
Somerset Posted December 2, 2004 Share 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. Link to comment Share on other sites More sharing options...
ali Posted December 2, 2004 Author Share 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 Link to comment Share on other sites More sharing options...
Lord Nikon Posted December 2, 2004 Share 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 Link to comment Share on other sites More sharing options...
ali Posted December 2, 2004 Author Share 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 Link to comment Share on other sites More sharing options...
Valik Posted December 2, 2004 Share Posted December 2, 2004 So find a program to do that. AutoIt isnt it. Link to comment Share on other sites More sharing options...
Scottswan Posted December 2, 2004 Share 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 Link to comment Share on other sites More sharing options...
Valik Posted December 2, 2004 Share 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. Link to comment Share on other sites More sharing options...
Somerset Posted December 2, 2004 Share Posted December 2, 2004 http://www.codeguru.com/Cpp/W-P/system/mes...icle.php/c6907/read..... Link to comment Share on other sites More sharing options...
ali Posted December 3, 2004 Author Share Posted December 3, 2004 hmm... Link to comment Share on other sites More sharing options...
Lord Nikon Posted December 3, 2004 Share 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 Link to comment Share on other sites More sharing options...
nobby Posted December 3, 2004 Share Posted December 3, 2004 Do not close the lid. CheersNobby Link to comment Share on other sites More sharing options...
Henrik Posted December 3, 2004 Share 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. 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