Jump to content

Recommended Posts

Posted (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 by gnolivos
Posted

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())
Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...