Sign in to follow this  
Followers 0
ali

Prevent Standby

25 posts in this topic

#1 ·  Posted (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 by ali

Share this post


Link to post
Share on other sites



Emulating a small mouse move every 10 minutes or so?

Share this post


Link to post
Share on other sites

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

#4 ·  Posted (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 by nova

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 tab

There 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 by beerman

 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
Share on other sites

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

then your kinda s.o.l. :idiot: unless you pay off the admin.


 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
Share on other sites

Still I cant understand why the PC should shut down if you are using it, (ie moving the mouse)... :idiot:

Share this post


Link to post
Share on other sites

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

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
Share on other sites

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

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

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

So find a program to do that. AutoIt isnt it.

Share this post


Link to post
Share on other sites

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

:idiot:

-Scott

Share this post


Link to post
Share on other sites

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

hmm...

Share this post


Link to post
Share on other sites

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

Do not close the lid.


CheersNobby

Share this post


Link to post
Share on other sites

Have any of you fully read and processed what the original poster is saying,

<{POST_SNAPBACK}>

:idiot: Yet another good one. Keep 'em coming, Valik!

Ignorance is strength.

Share this post


Link to post
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
Sign in to follow this  
Followers 0