Plugin wakeup.spf

File: wakeup.spf
Author: Nicholas Nemtsev
Description: Provides the capability to "wake up" a computer from energy-saving modes such as hibernation (provided, of course, that the computer hardware and software support such modes).
During the entire period while computer is "asleep", words WakeAfter: and WakeAt: function practically in the same way as word PAUSE: . That means that all the task key words that follow after WakeAfter: or WakeAt: will be executed immediately after the computer wakes up.

New words:


WakeAfter: <hh:mm>

Sets "relative" time for a computer to wake up. As the argument for this word, state the length of time (in "hh:mm" format) after which the computer should wake up . Variables (% %) can also be used as an argument.

Examples:

#( wakeup_task
\ timer is set up at the moment the computer switches to hibernation mode
WatchSuspend
Action:
\ computer will wake up in 8 hours 30 minutes
WakeAfter: 08:30
\ this message box will be displayed after the computer has woke up
TMSG: "I'm ready!" 3
)# 

SET wake_time=10:00
#( wakeup_task1
\ timer is set up nightly at midnight
Time: 0 0
Action:
\ computer will wake up in 10 hours
WakeAfter: %wake_time% 
\ this message box will be displayed after the computer has woke up
TMSG: "I'm ready!" 3
)# 

WakeAt: <hh:mm>

This command wakes up a computer at a specified time. In the argument, use format hh:mm. Variables (% %) can also be used in the argument.

Example:

#( another_wakeup_task
\ timer is set up at the moment the computer switches to hibernation mode
WatchSuspend
Action:
\ computer will wake up at 10:00
WakeAt: 10:00
\ this message box will be shown after the computer has woke up
TMSG: "I'm ready!" 3
)#

SET wakeat_time=09:00
#( another_wakeup_task1
\ timer is set up at the moment the computer switches to hibernation mode
WatchSuspend
Action:
\ computer will wake up at 09:00
WakeAt: %wakeat_time%
\ this message box will be shown after the computer has woke up
TMSG: "I'm ready!" 3
)#