svi
Joined: 09 Oct 2006 Posts: 236 Location: Finland
|
Posted: Thu Dec 31, 2009 11:32 pm Post subject: |
|
|
------------------------------------------------------------
(TWO YEARS HAS PASSED SINCE ABOVE POSTS)
------------------------------------------------------------
This is my (and the whole Forum's?) first post this decade (it's 20100101013238 in Finland)
| 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
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 |
|