10-22-2006, 05:39 PM
|
|
|
Join Date: 10-02-2005
|
|
Location: Norfolk
|
|
PDAPhone: PPC-6800
|
|
Carrier: Sprint PCS
|
Donate to Member
| Posts:
943 |
 |
|
I have written another screenlock program
I wrote another screenlock program that invokes the builtin today screen lock plugin. It does not require you to have the plugin enabled. I have been using the DeviceLock program by a member here. I decided to write my own because I did not like the way it worked. It worked, like others, by using the notification manager to respond to a wakeup notification. I find the notification manager to be unreliable however. Sometimes it will lock quickly, while sometimes it takes a few seconds, sometimes it would lock then, as soon as I disabled it, lock again. Sometimes it didnt lock at all. The app that I have written is a 4kb executable that is always running in the background and locks when it recieves the device suspend message. Works reliably and quickly every time. It also has a preference panel app that runs in .NET CF2. The app has an option to put a shortcut to the lock program in the startup folder. It will also provide a means to manually launch and terminate the lock program. It is NOT a finished product however. It currently does not detect whether or not the lock is already running and cannot terminate OnLock.exe. Becareful not to initiate multiple instances of OnLock.exe. It will not cause problems, but it is a waste of resources (not that it is at all heavy on resources). The easiest way currently to see if OnLock.exe is already running is to turn the device off then on and see if it locks. In the future, I also want OnLock to shut the screen off and lock when you press and hold the power button, for use when you are listening to mp3s ect. Also, OnLock.exe currently gives an alert when it starts. This will be removed or optional in the future.
If you do not want to install .NET CF2, you do not have to. The prefs app is not necessary. You will simply have to place a shortcut to OnLock.exe in the startup folder manually. If you do want to use the prefs app, cab must be installed to the device (only 17kb).
Enjoy!
*edit* New version on page 2. Get it here.
Last edited by JKingGrim : 10-24-2006 at 08:44 PM.
|
|
|
|
|