Sign in to follow this  
Followers 0
psynegy

Screen Standby

13 posts in this topic

Is it possible to put a screen to sleep?

If I were running an autoit script as a service, I would want the service to wait for a command from my 'server' script to bring the computer to life or to send it to sleep...

How would I do that? Again, one of those things I know is possible, but have no idea how. "LogMeIn" installs a set of custom drivers to do it, I'll check that out in a bit.

Cheers for any help!

Share this post


Link to post
Share on other sites



Look at Shutdown(code)

The shutdown code is a combination of the following values:

0 = Logoff

1 = Shutdown

2 = Reboot

4 = Force

8 = Power down

32= Suspend

64= Hibernate

Share this post


Link to post
Share on other sites

Screen not computer...

Cheers anyway

Share this post


Link to post
Share on other sites

Screen not computer...

Cheers anyway

you could adjust the power saving options for the monitor, then when it becomes active it will just turn back on.

off topic: hibernate shutsdown computer for me on xp sp2


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

Share this post


Link to post
Share on other sites

I want to be able to use this as an administration tool, so at the click of a button, just turn off a room of monitors. I found some C# code that does it, here:

http://www.codeproject.com/useritems/Monit....asp?print=true

If anyone could make a dll or an exe, or even translate it to autoit, I would be very greatful!!

Share this post


Link to post
Share on other sites

wow i had that code in my code archive the whole time for toggling monitor power... heh

forgot about that.

so does anyone know why code 64 shuts down my computer instead of putting it into hibernate?


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

Share this post


Link to post
Share on other sites

Cirtainly close, I guess I'm not going to get this to work the way I want it too.

Okay, any way of disabling someones keyboard/mouse? And if possible, power button!! (There is nothing better than seeing someone on a bad website, locking their controls and walking up behind them. Classic!)

Share this post


Link to post
Share on other sites

[double post, my bad]

I just looked on the programs site that does it, and I discovered they use something called Display Power Management Services. Anyone any idea how one can use this with Autoit?

But either way, I could really do with knowing about disabling user inputs.

Share this post


Link to post
Share on other sites

[double post, my bad]

I just looked on the programs site that does it, and I discovered they use something called Display Power Management Services. Anyone any idea how one can use this with Autoit?

But either way, I could really do with knowing about disabling user inputs.

Check out BlockInput in the helpfile.

Share this post


Link to post
Share on other sites

Check out BlockInput in the helpfile.

Doesn't do ctrl+alt+del. E.g. useless. GRR to those keys... Any ideas on blocking them?

Share this post


Link to post
Share on other sites

Anyone any idea how to keytrap ctrl+alt+delete while BlockInput is enabled, so a complete lockout... (NOTHING TO DO WITH TASKMANAGER!!)

Cheers!

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