gnolivos Posted June 19, 2005 Posted June 19, 2005 (edited) Hi, I have been using AutoIT for ~ 2 years without issues. But here's something I cannot achieve! I have been looking for ways to run commands BEFORE and AFTER a windows hibernation sequence is triggered. To be specific, this is the scenario (which cannot be changed, so this is a must): -PC is set to hibernate upon pressing power button. So, when someone pressed the button, I want to find a way to run a command BEFORE the actual hibernation sequence starts. Also, want to run a command after the computer comes back from hibernation. Any ideas how to do exactly that with AutoIT? I know there are ways to send the computer a hibernate sequence with AutoIT, but this is not what I want to do (and in fact, the hibernation sequence MUST be tied to the power button as explained above, and this is the only way it can/will get triggered in my environment). Thanks for any help/pointers! Edited June 19, 2005 by gnolivos
MSLx Fanboy Posted June 19, 2005 Posted June 19, 2005 I think OnAutoItExit() has some macro that tells you how the script exits before being killed...I don't believe it has hibernate or standby functionality (yet), but it might give you an idea of who you want to talk to or ... Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
gnolivos Posted June 19, 2005 Author Posted June 19, 2005 Thanks, but that would not solve the issue... when hibernating, the script would not exit. Hence, it cannot be used as a 'hook'.I think OnAutoItExit() has some macro that tells you how the script exits before being killed...I don't believe it has hibernate or standby functionality (yet), but it might give you an idea of who you want to talk to or ...<{POST_SNAPBACK}>
Ejoc Posted June 19, 2005 Posted June 19, 2005 http://www.autoitscript.com/forum/index.ph...wtopic=9985&hl= Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs
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