palba Posted November 24, 2008 Posted November 24, 2008 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
monoceres Posted November 24, 2008 Posted November 24, 2008 It's very easy: Shutdown(64) Broken link? PM me and I'll send you the file!
toonboon Posted November 24, 2008 Posted November 24, 2008 ShellExecute("shutdown -h -t 00") should work I think [right]~What can I say, I'm a Simplistic person[/right]
martin Posted November 24, 2008 Posted November 24, 2008 .. 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 PaulOne 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.
palba Posted November 24, 2008 Author Posted November 24, 2008 It's very easy: Shutdown(64) Thanks ! Thanks ! Thanks! Knowledge is power! Thanks to all the suggestion! Very helpfull! Kind regards Paul
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