Hopefully the bugs are fixed
Post
http://forum.xda-developers.com/showthread.php?t=444215
Summary
There are already a lot of applications to disable touchpanel and/or hardware keys for the Touch Diamond and Pro. I added the next step of improvements:
* lock using the Power button, BattClock and/or Stylus Sensor
* auto-unlock by the Light Sensor
* unlock using triple touch of the Capacitive Sensor
* unlock using Stylus Sensor
* unlock when on AC/USB power
Supported phones (known)
Touch Diamond
Touch Pro
Sprint CDMA Diamond
Touch HD (only triple touch capacitive sensor for unlock does not work)
Version 1.9
# added TAPI support
# added AppToDate support
# show -1 when battery gives BATTERY_FLAG_UNKNOWN (so no 100% is shown)
# fixed TouchLockAction Screen ClockBackground and ClockForeground
# reset to default settings button added in Setting screen 1
# added About Box with hyperlinks (so you can donate if you did not already
# now in all occasions the input is enabled at power off/screen off, so all power on problems should be solved by this now (EnableInputAtSuspend setting)
# LockWhenIncoming = 1; // lock when there is an incoming call
# UnlockWhenConnected = 1; // unlock when call is connected
# ScreenOffWhenConnected = 1; // screen off when call gets connected, to avoid presses with your ear
# EnableInputAtSuspend = 1; // enable input at power off/screen off to avoid power on problems
# UseStylus = 1; // when false, it will not react on stylus changes
# UseTAPI = 1; // when false, TAPI will not be loaded
# DateDDMM = 0; // show date in DD-MM instead of battery percentage
# DateMMDD = 0; // show date in MM-DD instead of battery percentage
# StylusOutDisablesLockMode = 1; // stylus out disables lock mode, yes or no
# SuspendOnStylusIn = 1; // stylus in suspends the phone, when locked
# SuspendTimeOutPowerOn = 30000; // suspend when the phone is locked and the suspend time has expired
# CommandCallIncoming // command to execute at incoming call
# CommandCallConnected // command to execute at connected call
# CommandCallEnded // command to execute at ended call
# CapacitiveTouchesSequence = 222 // now you can configure the sequence order of area 1, 2 and 3 to unlock. More/less than 3 touches is possible. So you can also use this as a security unlock, if you disable the other unlock possibilities, including the UseStylus.