Sign in to follow this  
Followers 0
palba

Autoit HIbernate

5 posts in this topic

HI All

I'm writing a script to invoke the hibernate process.

is there a way to call it directly?

I'm figuring out to write the sequence command (START>SHUTDOWN>HIBERNATE), could be a way?

And from a very newbye, how to click the start button?

I've tried windsetstate but doesnt work...

Any idea is well appreciated!

Thanks in advance

Paul

Share this post


Link to post
Share on other sites



It's very easy:

Shutdown(64)

:)


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

ShellExecute("shutdown -h -t 00") should work I think


[right]~What can I say, I'm a Simplistic person[/right]

Share this post


Link to post
Share on other sites

..

And from a very newbye, how to click the start button?

I've tried windsetstate but doesnt work...

Any idea is well appreciated!

Thanks in advance

Paul

One way is

send("^{ESC}")

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

It's very easy:

Shutdown(64)

:)

Thanks ! Thanks ! Thanks!

Knowledge is power!

Thanks to all the suggestion! Very helpfull!

Kind regards

Paul

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