[Windows Mobile Apps and Games] chrisstavrou:
Parameters for Auto Lock (CSDEVCTRL) - Page 1/2

The behavior of this program is driven by the next key/values with are ALL STRINGS:

> Key

HKEY_LOCAL_MACHINE\Software\CSDevCtrl\Options

> Values

MOST IMPORTANT

- WindowTitleOfUnlock (Default is UNLOCK)

This must set to the Window Title that appears when the softkey of 'Unlock' is pressed.

For non English based roms, this title is in the localized language (for example French).

It's case insensitive.

WHEN TO LOCK

(These are the events based on which the lock can be triggered)

- LockAfterWake=0 or 1 (Default is 1)

If set to 1 it will try to apply the lock after the device has waken (not soft reset).

(See LOCKING OPTIONS [NOT IN-CALL])

- LockAfterIdleSeconds=xxx (Default is 45)

xxx are in seconds the inactivity timeout before a lock is applied and there is no on-going call.

(See LOCKING OPTIONS)

- LockDuringCall=0 or 1 ("In-Call Locking" ). (Default is 1)

If set to 1 it will try to apply the lock if there is an on-going call. The first time the call is initiated the locked will be instant.

This lock is partial and still allows for the keys of the phone to be used (Usuall case of windows lock).

The user is given the chance to unlock while the call is taking place.

(See LOCKING OPTIONS [IN-CALL])

LOCKING OPTIONS

(These are the options which apply while the device is locked even if there is a call active)

- LockDeviceAlways=0 or 1 (Default is 1)

If set to 0 Partial locking is applied (Windows Lock), phone related keys enabled during call, backlight is actived with touch.

If set to 1 Full locking is set, all keys are always blocked including phone related keys, backlight remains off.

To answer an incoming call, the user must Slide to enable the device with Slide (see UNLOCKING OPTIONS)

- LockWhileOnExternalPwr=0 or 1 (Default is 0)

If set to 1 the program will try to apply the lock even while running on external power.

- LockWhenVideoOff=0 or 1 (Default is 0)

If set to 1 the program will try to apply the lock when the video is turned off.

- LockWhenSwitchedToBattery=0 or 1 (Default is 0)

If set to 1 the program will try to apply the lock when the power is switched to battery.

- LockWhenDimmed=0 or 1 (Default is 0)

If set to 1 the program will try to apply the lock when the backlight is dimmed.

- IgnorePrograms=XXXX (Default is blank)

If set, it the list of the executables which if they are running in the foreground then no locking will appear.

If the lock is to be applied after awaking then this list is not used.

It is a list separated with the character ';' which must be followed for each entry without any space.

The executable is simply the name, not the full path.

For example:

MioMap.exe;pword.exe;

- LockOnlyifTodayShown=0 or 1 (Default 0)

If set, it will only apply an idle lock if the Today screen is shown.

- KeysToExcludeWhenFullyLocked=XXX;YYY;... (Default Blank)

Its a list of Hex Values of the VK codes of the keys to be excluded from the full lock.

Each Hex Value is 3 digits and must be followed with ';'.

To find out the key codes the program debugscr.exe included in the zip can be used.

- LockOnlyPrograms=XXXX (Default is blank)

If set, it the list of the executables which if they are running in the foreground

then idle locking can appear. If no match is found then no idle locking takes place.

This list is only used for idle locking

It is a list separated with the character ';' which must be followed for each entry without any space.

The executable is simply the name, not the full path.

For example:

manila2d.exe;manila.exe;

LOCKING OPTIONS [IN-CALL]

(These are the options which apply only if there is a call active and LockDuringCall is set to 1)

- LockDeviceDuringCall=0 or 1 (Default is 0)

If set to 1, then the lock is a Full lock and the device should not react in any keystroke, backlight remains off.

The user must unlock the device before using it.

- DoNotLockWhenRinging=0 or 1 (Default 0)

If set to 1, the device is not locked (if it was not locked) while the device is ringing. This is usefull for dialers that

have 'Slide to answer' capability and control the locking by themselves.

- LockAfterIdleSecondsInCall=xxx	(Default is 10)

where xxx are the seconds to reapply the lock while the call is still on if the user had unlocked the device.

- UnLockAfterCallOver=0 or 1 (Default is 0)

If set to 1, then the device will be unlocked after the call is over.

- WindowTitleOfDialer=XXXX (Default is Phone)

This is the Window Title of the Dialer. It must be set as see on the top, its case sensitive.

Its used to bring the dialer infront while calling as the M2D seems to pop up when device is locked.

AFTER LOCK OPTIONS

(These options apply after the Lock has been applied and there is no call active)

- ShowTodayAfterLock=0 or 1 (Default is 1)

If set to 1 it will bring the Windows Today Screen after applying the user selected lock.

-- ClickOnToday=0 or 1 (Default is 0)

If set to 1 it will send a mouse click using the next values as coordinates

-- TodayPortraitX=x1, TodayPortraitY=y1 for Portrait mode

-- TodayLandscapeX=x1, TodayLandscapey=y1 for Landscape mode

To find out the coordinates the program debugscr.exe included in the zip can be used.

-- AfterTodayRunFilePath=XXX (Default is blank)

XXX (if not left blank) it can be an executable/registed file which will be run after the lock and the Today focus

-- AfterTodayRunFileParm=XXX (Default is blank)

XXX (if not left blank) they are the command line arguments of the previous option.

-- AfterLockRunFilePath=XXX (Default is blank)

XXX (if not left blank) it can be an executable/registed file which will be run after the lock.

-- AfterLockRunFileParm=XXX (Default is blank)

XXX (if not left blank) they are the command line arguments of the previous option.

(if ShowTodayAfterLock=0)

- AfterUnLockRunFilePath=XXX (Default is blank)

XXX (if not left blank) it can be an executable/registed file which will be run after the lock is released (device unlocked).

- AfterUnLockRunFileParm=XXX (Default is blank)

XXX (if not left blank) they are the command line arguments of the previous option.

GENERAL LOCKING OPTIONS

(Apply when the device is locked for all cases)

- PowerOffSecs=XXX (Default is 0)

If set it will turn off the device the mentioned seconds with the next exceptions:

Device is ringing or Keyboard is slided out or the 'Temporary Stop Locking' has been applied.

- PowerOffOnlyAfterLock=X (Default is 0)

If set to 1, it will turn off the device after the device is locked and the mentioned seconds

have passed since the device was locked. Any keystroke or screen tap is ignored.

- TurnOnBackLightSecsWhileLocked=XXX (Default is 3)

XXX are the seconds to turn on and then off, the backlight while the device is locked.

Also twice the same time, will be used to turn on the backlight if the device is:

- Switched on while being locked.

- Locked because of a call (the first time).

(See Next Page for more Parameters)

http://xdaforums.com/showpost.php?p=2610226&postcount=323

>>>>> If you change any of the parameters using any registry editor, the program will need to be restarted (Re-run it as mentioned further on).

>>>>> Using the setup program provided, after saving the changes then the updated parameters take immediate effect.