Other criteria

USBDLM

 

Other criteria


 

 

Docking Status

 

IsDocked is 1 when a mobile computer is docked in its docking station.

 

Sample:

 

; USB drives on U if docked, on X otherwise

[DriveLetters]

IsDocked=1

Letters=U

 

[DriveLetters11]

IsDocked=0

Letters=X

 

 

Sleeping Status

 

Of course there are no events while a computer is sleeping. This is made for one special situation:

When XP is sent to sleep the current user is not locked. The locking happens immediately after it wakes up again. To distinguish between a manual lock and the lock that happens after wakeup the criteria IsSleeping is made. This works because the lock notification comes before the resume notification. So, there is a short moment when IsSleeping is true.

 

Sample:

 

; turn off the screen when the computer is manually locked

[OnUserLock]

IsSleeping=0

open="C:\Tools\nircmd.exe" monitor off 

 

NirCmd is Nir Sofer's great command-line tool for performing useful tasks without displaying any user interface.

http://www.nirsoft.net/utils/nircmd.html