forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Suspend_Hibernate DSU

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced VDS 5 Source Code
View previous topic :: View next topic  
Author Message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Thu Sep 11, 2003 7:01 pm    Post subject: Suspend_Hibernate DSU Reply with quote

Suspend_Hibernate DSU
================
This is a small DSU - Reusable unit for VDS developers which adds
two new power management commands to:

1.Suspend (standby) your system.
2.Hibernate your system (If supported)

Download:
http://codescript.vdsworld.com/VDS5src/Hibernate.zip
How to use:
===========
Include the DSU in your project as:

#Include suspend.dsu

This will add a single new command to VDS vocabulary:

SetSuspendState <Suspend/Hibernate>,{<Force>},{<DisableWakeEvent>}


Parameters:
===========
Suspend/Hibernate - Select one of them.

Force - Optional. If you specify forces the event irrrespective of
any app being ready or Not. Don't use {} they just indicate
that the parameter is optional.

DisableWakeEvent - Optional. If you specify then disables all wake
up events including keyboard,mouse etc. Make sure
that your computer power button is working properly
before you set this. The disabling process may take
a few seconds.

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Sep 11, 2003 8:52 pm    Post subject: Reply with quote

Nice, nice, nice! Very Happy
Now all we need for VDS is a lock command for NT systems. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Sep 11, 2003 8:54 pm    Post subject: Reply with quote

Just a note in case you didn't know, "suspend.dsu.src.zip" has nothing in it, file size
0 bytes. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Fri Sep 12, 2003 2:49 am    Post subject: Reply with quote

Embarassed Even I don't have a backup. Any way it is a single command so I don't know if it is a problem. I will rewrite it sometime later if there is some bug in it etc. - Unlikely.

Has anyone tried it on Win ME ?
On win 98SE hibernate anyway won't work on all systems.

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Tue Oct 14, 2003 2:48 am    Post subject: Reply with quote

FreezingFire wrote:
Now all we need for VDS is a lock command for NT systems. Smile

Added a command to lock NT systems !!!
Another DSU in the package retrieves power status of the system, whether on AC line, if on battery what percentage of battery power is remaining, Is the battery power status critical - If so Hibernate (you have to use hibernate DSU). Of course this second DSU needs a compatible hardware. Wink
Download: v 1.3
http://www.vdsworld.com/index.php?page=download&fileid=340

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Oct 14, 2003 7:00 pm    Post subject: Reply with quote

Very Happy

CodeScript wrote:
FreezingFire wrote:
Now all we need for VDS is a lock command for NT systems. Smile

Added a command to lock NT systems !!!
Another DSU in the package retrieves power status of the system, whether on AC line, if on battery what percentage of battery power is remaining, Is the battery power status critical - If so Hibernate (you have to use hibernate DSU). Of course this second DSU needs a compatible hardware. Wink
Download: v 1.3
http://www.vdsworld.com/index.php?page=download&fileid=340

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced VDS 5 Source Code All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group