AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Disable all wake events

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
svi



Joined: 09 Oct 2006
Posts: 236
Location: Finland

PostPosted: Wed Dec 12, 2007 8:26 pm    Post subject: Disable all wake events Reply with quote

My first question ever:
The Manual (Shutdown) wrote:
; Parameter #3: Pass 1 instead of 0 to disable all wake events.

I have no idea what it means Shocked. TIA
_________________
Pekka Vartto
Back to top
View user's profile Send private message
Erittaf



Joined: 02 Nov 2007
Posts: 188

PostPosted: Wed Dec 12, 2007 8:37 pm    Post subject: Reply with quote

not 100% sure but it sounds as if settings like "wake on LAN" would be disabled
Back to top
View user's profile Send private message
svi



Joined: 09 Oct 2006
Posts: 236
Location: Finland

PostPosted: Thu Dec 31, 2009 11:32 pm    Post subject: Reply with quote

------------------------------------------------------------
(TWO YEARS HAS PASSED SINCE ABOVE POSTS)
------------------------------------------------------------

This is my (and the whole Forum's?) first post this decade (it's 20100101013238 in Finland) Very Happy

Erittaf wrote:
not 100% sure but it sounds as if settings like "wake on LAN" would be disabled
Makes sense.
But this doesn't (I quess):
Code:
DllCall("PowrProf\SetSuspendState", "int", 1, "int", 1, "int", "")
The argument for "int" should be numeric Question

I can also omit the last argument
Code:
DllCall("PowrProf\SetSuspendState", "int", 1, "int", 1)
, but using either 0 or 1 as the third argument disables wake events, at least for scheduled tasks.

I'm surprised that this issue hasn't been discussed in this forum (maybe your machine is running "always").

In the 'net I found only Help me solve a bizarre scheduled tasks conundrum... Please!, which was solved using...
Quote:
a bit of a "kludge", but
...working method to hibernate (simulating key strokes with "Auto Hot Keys").
_________________
Pekka Vartto
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group