xSleep
This gives you an easy way of suspending or hibernating your pc.
Download link (including source code) -
http://www.xlobby.com/files/Marbles_00/ ... xSleep.zip (updated on 16 December 2006)
Functions are -
set on sleep command
This command will be run before the pc enters sleep (i use "command:xlobby:run event:system:on sleep" to run everything in my skins "on sleep" event group).
set on wake command
This command will be run when the pc is restored from sleep (i use "command:xlobby:run event:system:on wake" to run everything in my skins "on wake" event group).
suspend:sleep at time
This will put the pc into sleep mode at "sleep at time".
hibernate:sleep at time
This will put the pc into hibernating mode at "sleep at time".
In both these functions "sleep at time" can either be a date/time (12-22-2006 15:30, 12-22 2:45, 2:45 etc) or it can be a offset from now in minuites (30 = 30 mins, 0.5 = 30 seconds etc).
suspend time:time_string
This will wait utill the time specified in time_string and then put the pc into sleep mode.
hibernate time:time_string
This will wait utill the time specified in time_string and then put the pc into hibernate mode.
suspend mins:delay_in_mins
This will wait for delay_in_mins minuites and then put the pc into sleep mode.
hibernate mins:delay_in_mins
This will wait for delay_in_mins minuites and then put the pc into hibernate mode.
suspend secs:delay_in_secs
This will wait for delay_in_secs seconds and then put the pc into hibernate mode.
hibernate secs:delay_in_secs
This will wait for delay_in_secs seconds and then put the pc into hibernate mode.
ask
This pops up a dialog box (not skinned) which lets you select sleep options - suspend/hibernate/delay in secs/delay in mins/sleep time.
cancel
If a delayed sleep has been set this will cancel it.
priority:xxx
Set the priority of xlobby to be xxx, where xxx is one of -
ABOVENORMAL
BELOWNORMAL
HIGH
IDLE
NORMAL
REALTIME
Variables returned by the plugin are -
plugin>xSleep>sleep short time
This returns the short time at which the pc will sleep
plugin>xSleep>sleep short date
This returns the short date at which the pc will sleep
plugin>xSleep>sleep long time
This returns the long time at which the pc will sleep
plugin>xSleep>sleep long date
This returns the long time at which the pc will sleep
plugin>xSleep>sleep type
This returns either hibernate or suspend depending on what action was requested
plugin>xSleep>remaining time
This returns the amount of time (hh:mm:ss) left before the pc sleeps
plugin>xSleep>remaining sec
This returns the number of seconds left before the pc sleeps
Sean.