AutoHotkey Community

It is currently May 27th, 2012, 11:36 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: December 9th, 2010, 12:21 am 
Offline

Joined: October 9th, 2006, 8:19 pm
Posts: 236
Location: Finland
whynotmore wrote:
When it goes into hibernate, the computer immediatly wakes back up. Now, it even does it when we use shutdown > hibernate.
Whereas DllCall PowrProf\SetSuspendState automatically initiates suspend (sleep) transition instead of hibernation when latter is not enabled, it doesn't do it when it's "not available".
My system is in a state that although I have the "Hibernate" tab in Power Options Properties and checked "Enable hibernation" , it doesn't work (Windows should be reinstalled :roll:).

I use this to automatically suspend if hibernation isn't possible:
Code:
If !DllCall("PowrProf\SetSuspendState", "int", 1, "int", 0)
    DllCall("PowrProf\SetSuspendState", "int", 0, "int", 0)

_________________
Pekka Vartto


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 9th, 2010, 1:09 am 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
dangit thats nice :)

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], MSN [Bot], nomissenrojb and 62 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group