Jump to content
Sign in to follow this  
targeter

[Solved] dllcalls & standby/hibernate problems

Recommended Posts

targeter

I am working with the example script here

http://www.autoitscript.com/forum/index.php?showtopic=21575

However, I noticed that if you make more than one call to the SetWakeUpTime function, it gets kind of screwy.

The first call will correctly setup the wake time. And then the script will proceed to go to hibernate/standby. However, the second time you use the function it no longer sets the wake time correctly, even if you are explicitly writing "@min+5" The wake time is reduced it seems to one minute regardless. Does anyone know why this is? Is there some sort of residual time value that is being held? I doesn't seem like based on his script.

;other script code......

local $mode = false
local $force=false
                    
SetWakeUpTime(@HOUR,@min+5)
SetSuspend($mode, $force); go to standby mode


;script code in between... 

SetWakeUpTime(@HOUR,@min+5)
SetSuspend($mode, $force); go to standby mode
Edited by targeter

Share this post


Link to post
Share on other sites
targeter

Hmmm... I think I have an idea...

Share this post


Link to post
Share on other sites
targeter

I figured it out. The solution is the period value of the setwaittime function. Simple edit

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×