AutoHotkey Community

It is currently May 26th, 2012, 6:58 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: November 16th, 2004, 12:48 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Looks great. Thanks for sharing it.

Now I have to learn some VBS :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 2nd, 2005, 12:51 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
The remainder of this topic has been moved to the following new topic about a method line continuation: http://www.autohotkey.com/forum/viewtopic.php?t=2104


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 10th, 2005, 11:55 am 
Offline

Joined: September 24th, 2004, 4:42 pm
Posts: 22
I have encountered te same problem as written here; my Standby button has stopped working (It's good, but Win doesn't stand by, and I did not manage to make it work), and it would be a gerat help to reach the standby directly from the Autohotkey with a procedure.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 10th, 2005, 3:05 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I've made a note to check whether direct support for hibernate and suspend is easy to implement.

Edit: Tekl pointed out the following method to suspend or hibernate the PC:

; Call the Windows API function "SetSuspendState" to have the system suspend or hibernate.
; Windows 95/NT4: Since this function does not exist, the following call would have no effect.
; Parameter #1: Pass 1 instead of 0 to hibernate rather than suspend.
; Parameter #2: Pass 1 instead of 0 to request permission from each application prior to suspending.
; Parameter #3: Pass 1 instead of 0 to disable all wake events.

DllCall("PowrProf\SetSuspendState", "int", 0, "int", 0, "int", 0)


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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