yashsingh1/xdaforums huggingface dataset:
[Touch Diamond, MDA Compact IV Themes and Apps] 4D3:
i have the following registry settings:

beep=0 - Working

LockIndicator=0 - Not Working

StylusAlwaysControl=0 - Working

StylusOutInToggleTime=700 (2dc Hex) - Think so!

SuspendOnBacklightOff=1 - Think so!

UnlockOnACPower=1 - Working

Vidrate=1 - Working

but when i lock my device, i get the battclock flashing up on my screen over the battery symbol on the taskbar.

nice other than that.
[Touch Diamond, MDA Compact IV Themes and Apps] Pietje_1985:
Hi MysticGenius

I have the same problem like you, with the flickering symbol....

But ZuinigeRijder doesn't have a solution for that at the moment...:(
[Touch Diamond, MDA Compact IV Themes and Apps] nuumuun:
+1 for lock on suspend (or if not possible then lock on wakeup)

great app!! looking forward to next version :D
[Touch Diamond, MDA Compact IV Themes and Apps] nuumuun:
on second thought lock on wakeup would be even better since you could wake the diamond with any keypress and then unlock it with the 3 taps
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Version 1.1

I uploaded a new version 1.1, which has the AutoLockOnPowerOff setting and BattClock no longer flashes when locked.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
If you mean, toggling the locked mode via OUT/IN.

Yes, you can disable this via "StylusOutInToggleTime = 0", see post #3.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Once per 8 seconds the locked BattClock is recreated, to get capacitive touches. If there is another application, which is a FullScreen application, it can take some time before it is reappearing. Can you tell me more when it is happening? Is it reproducable?
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
I have some leads for other way of locking the hardware buttons. Also I am going to try another approach for the LockTouchPanelOnly. I hope I can find a more reliable solution. The strange thing is that only for some it is not working. So you are one of the unlucky ones :mad: It must have to do with some sort of external setting, which influences the behaviour.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
You need a registry editor. I use myself PHM Regedit. See post #3.

In a next version I will provide a configuration screen in TouchLockAction.
[Touch Diamond, MDA Compact IV Themes and Apps] lexluthor:
Well, just happened now. The device was suspended and locked. I hit the power button to put it back on and unlocked it using the capacitive touch and it still had the WM battery indicator.

I couldn't get the battclock back until I opened the keyboard to put the phone in landscape and then it came back.

On the other hand, I'd say it definitely is reading the capacitive touches better, but I'd say it's worse overall this way with the battclock disappearing a lot.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
I think the pin is only asked at boot time.

For a mobile phone this seems to be a bit useless when it is on. If there is a phone call, they need to provide their pin first? If not, then this is also the Security leak. And unlocking must be easy. Anyway, the great thing about the TD is, that you easily can put it in your pocket, so why would you loose it?

There is however special software for protecting your phone.

See Which ANTI THEFT program is better?.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Strange. Can you enable "logdebug=1" and "logdebugdetailed=1" (see post #3) and when it occurs, note the exact time, take out the stylus and disable the program. Thereafter you can post the logfile, so I can have a look? If it takes long to reproduce, the log file will grow. You can disable/enable the program via the Programs folder.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
What you can try, is configure Gyrator to lock and suspend via \Windows\TouchLockAction.exe LockSuspend. See post #4 for more details.

Do you have the same problem then too?
[Touch Diamond, MDA Compact IV Themes and Apps] DomSim:
to my knowledge gyrator cannot be configured to run an application.
[Touch Diamond, MDA Compact IV Themes and Apps] 4D3:
HAHAHA that is the funniest thing i have read on this forum for a long time!

Surprisingly the reg key is in the registry.....

at this location: HKCU\Software\ZuinigeRijder\LockSettings

so:

1: go into the registry (use total commander, or taskmanager)

2: go to the above address (use your stylus ;))

3: make your edit.

thanks for giving me a chuckle!!

p.s. im not having a stab @ you, it just made me laugh!! :p
[Touch Diamond, MDA Compact IV Themes and Apps] mikebai1990:
I see.. I don't know if it makes any difference, but I'm running JD Rom as opposed to the stock rom. But I'm sure that introduces so many new variables that it will be hard to manage as it is. I've reverted to 1.5, and it seems to work slightly better, but not sure why..
[Touch Diamond, MDA Compact IV Themes and Apps] SimonW500:
In fact the security policy (either local or server-enforced) specifies a time-out after which the device PIN locks itself. eg. mine is set to 5 minutes (even though the back light is set to 30 seconds and sleep 40 seconds); this means that I can switch the device back on again a little over 4 mins after it has gone to sleep, however any longer and I'll have to enter the PIN again. This is true for 99% of all operations (me wanting to switch it on, incoming email, txt etc) but NOT for an incoming call - this can still be taken and the device remains locked - if you want to do anything post-call then again the PIN is needed.

This is actually a worthy security feature - often corporate email is an asset highly valued. It's certainly not perfect, and (for me) one of the biggest things missing is the ability to PIN lock the device 'on demand'. ie. if I'm in a customer meeting and I've just been using my Diamond I may want to leave it in the meeting room while I goto the bathroom (ok I could take it with me - this is just a poor example!) but there's no real way of me securing the phone before I go, you've just got to wait for the time out (works in the scenario of it being lost etc). I think what a few users here (me included) think would be nice is if this could be incorporated into your keylock program. Hope this makes sense!

Cheers, Simon
[Touch Diamond, MDA Compact IV Themes and Apps] Blitzed26:
I made a few registry edits per Post #3 but they don't seem to work. I did the clock one by creating a dword under locksettings. I put Clock12 under value name and put 0 under value data (decimal). It didn't switch to 12 format??

Any suggestions?
[Touch Diamond, MDA Compact IV Themes and Apps] tikigod1911:
Hi! First post but...

I was wondering if its even possible / practical to use both TouchLockPro and SensorLock together. I really like the idea of SensorLock but I feel like TouchLockPro has really good potential, so I'd really like to just use them together?

Any ideas?
[Touch Diamond, MDA Compact IV Themes and Apps] mzshortay:
I doubt that it's the battery. It never drained that fast until I installed the lock app. I was just wondering if it was possible for that the be the cause.

And I rather not disable all of that, for it's basically making having this phone useless. Thanks anyway though.

Maybe I'll find an alternate lock app for my phone.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Ok, I did not know. Thanks for the explanation.

I have made a special TouchLockAction.exe, which instead of suspending tries to set the PowerState: POWER_STATE_PASSWORD

I do not know if it works, but if someone can test it. See attachment. Unpack the exe inside the attachment and put it somewhere on your phone, double click it and press the Suspend button (last row, first column, the yellow one).
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Yeah, the setting is described misleadingly.

The default value is a 24 hours clock (Clock12 = 0), if you want a 12 hour clock you must set Clock12 = 1.

Thereafter you must softreset or disable/enable TouchLockPro.

I will update the description.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
You mean you want to use the gestures part?

Or other parts of SensorLock?

Unfortunately SensorLock cannot be used in combination with TouchLockPro. I can just consider gestures as part of TouchLockPro, if there is a huge need/demand. And where do you want the gestures to be used for? Locking/Unlocking?
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Ok, the tips I gave where more general measures for battery draining, nothing to do with TouchLockPro. I cannot imagine that TouchLockPro is the real source of the extra battery drainage, but of course, you never know.

You could help by providing more information and trying things out. So if there is battery drainage due to TouchLockPro in a (special) situation, I am sure others want to know this too. Can you try the following things:

* enable debug logging (logdebug=1 and logdebugdetailed=1), see post #3 and post the logfile as attachment

* the difference in battery life when the lightsensor is disabled (UnlockOnLightSensorTime = 0)

* the difference in battery life when the capacitive sensor is disabled (CapacitiveToggleTime = 0)

* the difference in battery life when only the touch panel is locked (LockTouchPanelOnly = 1)

Hope you can help to make TouchLockPro better.
[Touch Diamond, MDA Compact IV Themes and Apps] SimonW500:
Thanks for looking at this one!

Have just given it a go - unfortunately the yellow suspend button does nothing (apart from close the app). :(

Better luck next time.. and incidentally I personally consider this feature 'icing on the cake' and not a priority if there's other things you could be looking at.. after all there isn't an easy way to currently do it so we're no worse off without. Thanks again.
[Touch Diamond, MDA Compact IV Themes and Apps] superpc:
i had 2 occasions today where the phone woke up and capacitive pad didn't react for around 5 seconds before i could get it to detect my finger touch...
[Touch Diamond, MDA Compact IV Themes and Apps] aadadams:
I had a similar experience. I created the dword with a value of 1 the soft reset and it never changed the 24 hr format. I tried it in Hex and decimal with the same result. Hopefully once the GUI configuration utility is implemented this will be an issue of the past.

@ZuinigeRijder,

Great work sir. Thanks for sharing your creation.
[Touch Diamond, MDA Compact IV Themes and Apps] superpc:
clock12 with value of 1 in decimal works for me
[Touch Diamond, MDA Compact IV Themes and Apps] ecltech:
Default System Title Bar Clock

Hi all,

Recently installed TouchLockPro and it's working great with the exception of one minor issue I have. When TouchLockPro is enabled and I go to a different screen other than my home screen (e.g. open the Programs folder) the Title Bar clock appears behind BattClock. I tried removing/disabling the Title Bar clock using Diamond Tweak but it does not work properly as disabling the clock seems to create a black box where the clock should be and it ends up overlapping the connection icon.

Here's a screenshot. Appreciate any feedback on this.

Thank you.
[Touch Diamond, MDA Compact IV Themes and Apps] JoeSchmoe22:
I think this gestures are a good idea as well.

Just an FYI, you should look at PocketShield and see if there are any ideas that you could use from that software to improve yours. I am currently using it and it works as described. I would prefer yours, as their software takes up a lot of overhead. But, it does not have the 20 second delay [in my case it's closer to 60 seconds] to turn the device back on if I need it. Also there seems to be an occasional problem with ToucjLockPro v1.6 locking to well so I miss a phone call. I tap the bottom area repeatedly but it doesn't want to recognize the taps during an incoming call. I will try reducing the number to 2 and see if that fixes it.

Last, I do notice a bigger battery drain when using TouchLockPro with the light sensor active when compare to PocketShield with the light sensor turned on. Obviously, for at least 20 to 60 seconds after the screen is turned off, TLP is still active in someway, otherwise, I would be able to turn my phone back on...right?

One thing that's cool on PocketShield is the gesturing, it's not fancy like a 360 rotation [which is too fancy, could drop phone], it's just 2 shakes face up.
[Touch Diamond, MDA Compact IV Themes and Apps] gorillaguzzler:
This is a great app I am loving it. Hope you can get the power button problem fixed. Keep up the good work.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
New icons provided by MysticGenius

MysticGenius has provided me better icons for the TouchLockAction screen. Here you see the result:

First row:

1a. LockScreen

1b. LockSuspend

1c. Exit TouchLockAction

Second row:

1a. Settings (instead of Suspend, because that is normally the same as 1b)

1b. SoftReset (switched in position, because 1c and 2c fit better together)

1c. PowerOff

The upcoming version will contain these nice looking icons. Hope you like them too.

Thanks too MysticGenius again.
[Touch Diamond, MDA Compact IV Themes and Apps] ColdBrew:
I tried 1.5 and liked it, but it would sometimes not turn back on using the power button. I would have to pull the stylist or open the keyboard. Then one time it wouldn't turn back on even using the stylist or the keyboard. It wasn't locked up. I was listening to audio through my bluetooth. But I couldn't do anything to get it to turn back on, so I had to reset. I would like to try again if those bugs get worked out.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
I disable the Light Sensor when the screen is off. From battery perspective, it is better to close the light sensor when it no longer is locked. So this would be a small battery improvement. I will do this in my next version.

The 20 seconds after turn off is probably because I want to catch power off events. I keep the phone in UNATTENDED mode only very shortly, only to catch that state and do additional things. The side effect can be that it is longer in UNATTENDED mode (20 seconds), but I am not sure about this.

Looking at the problems about the power button, I am going to try several things:

* no longer catch poweroff/suspend

* when suspending on intiative of TouchLockPro power off by simulate pressing the power off key, instead of SetSystemPowerState(NULL, POWER_STATE_SUSPEND, 0);

* see if I can lock the hardware keys differently, like CSDEVCTRL

* see if I can lock the touchpanel only differently, because I do not like the current design either

Hope these changes will solve the problem for some of the people experiencing this.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
The BattClock is an overlay, so if there is a clock displayed instead of the battery in the Title bar (that is configurable somewhere in Windows Mobile) it will take more place than the default width of the BattClock.

I have this too, when I switch too landscape mode. Apparently, the clock is displayed in landscape instead of the battery, so there I see this problem too. I do not think I have changed this setting for Landscape, so I was also somehow surprised.

Anyone how you can configure that a battery is shown in both Portrait and Landscape mode?
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Maybe you made a typo or did create it on the wrong place?

Did you have version 1.6 installed?

Because earlier versions did not have this feature.

You can also provide a logfile (logdebug=1), see post #3, so I can see what TouchLockPro sees as setting (and version number).
[Touch Diamond, MDA Compact IV Themes and Apps] ecltech:
Thanks for the info. I had to disable displaying of the date in the title bar - Systems -> Clocks & Alarms. This resolve the issue of the partial number behind BattClock. Not sure about the Landscape mode though. I'll keep poking around and if I find anything I'll post it.

Thank you.
[Touch Diamond, MDA Compact IV Themes and Apps] Koffein Schluck:
Hey ZuinigeRijder,

this is my first post ;) (You can call me Bambi :) )

I have a HTC Touch HD since last week and appreciate your work!

Without you my Device would make calls accidentally every 5 minutes.

Can you please add some more features:

1) In my opinion the Touch HD has capacitive areas too, but the application doesnt react when i touch them.

2) for devices without capacitive areas:

by touching the touch screen on special areas (top left, bottom right,...) in a special order the device will unlock too!

3) option to lock the phone by touching the BattClock without switching to the action screen

4) Lock this crappy silly annouying key on the HTC headphones, i made so many calls by accidentally touching it "!§$%&/

5) Lock ONLY the Hardware Keys, so I can still use the Touch Screen (or is it too crazy :eek:)

6) Make a difference between suspending the device by pressing the power button or suspending it by timeout.

When my device suspends because i havent touched it for a long time this means that it is on a desk or im holding it in my hand because im using it like a music player (don't lock) but when i press the Power Button it means - i want to lock the device!

7) Option to define exception Applications (for example by adding a registry key). When some of this Applications are running the device will NOT lock automatically, you have to lock it by going to the ActionScreen or something like this...

i hope you like the ideas...

THX! Looking forward to your newest release. I'm your fan :D

By the way! Is the code opensource? I would realls like to see how you manage it to "listen" to all of these hardware functions (stylus, light sensor...)
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
I made TouchLockPro that it skips the capacitive area when it does not load. Also I log the capacitive touches if they occur.

You can enable debug logging "logdebug=1" and "logdebugdetailed=1" as described in post #3. In that way we can see what happens for the capacative area.

Problem with that is that the touchpanel is locked too. Is the lightsensor not unlocking? But that is of course not working in too dark lighting conditions.

I think a gesture, using the rotation sensor is somewhat what would help. This is also asked in this thread recently, so that is something I consider to add.

You can also make a softkey or hardware key for locking, by giving command line parameters to TouchLockAction. See post #4, e.g.

\Windows\TouchLockAction.exe LockSuspend

This will not come up with the form, sends the command to TouchLockPro and exits. Probably this is also easier to lock than the small BattClock.

I saw this question how to disable these keys, but I found no answer.

If you know how to do this, I can add support.

Hmmm, most people want the opposite, because you can still touch accidently the touchpanel. Are you not afraid of that, when there is an incoming call?

I am a professional developer in my regular work. But I wanted to learn about Windows Mobile programming, so I took this up in my free time. And yes, I have already posted several source code examples, StylusLock, proof of concept of CapacativeFingerLock (see post #1).

I do not mind to publish the source code of TouchLockPro too, because I learn also from source code from others. However, with the vast number of releases, I did not yet provide the source code. If everyone would share the source code, I think even better solutions/programs would be made.
[Touch Diamond, MDA Compact IV Themes and Apps] Koffein Schluck:
Here is the LOG:

styluslockpro.log

Whats about NOT locking it but to open a transparent window wich "filters" alls the touches?

When locking the device a transparent full screen window will open, wich "captures all the touches", if a touch was made in the right place it listens to the next touch where it is taken, if the next touch was made in the right area it unlocks the phone or waits for the next touch in the next "right" area, if a wrong area was touched, than it starts from the beginning -listening to the touch in the first "right" area...

I hope I will get some other Sony headphones for christmas ;) , so this problem will be solved. But i will tell you, when i find a routine controlling this.

Nope, i am afraid of making calls for accident and this happens too often, because i cannot define the bottom left key of my Touch HD. The standart action for thgis key is "make a call" and after another press - it calls the most actual number from the "phone list". Im still looking for a soluton of this problem :( SPB Pocket Plus cannot redefine the Hardware Key of my Touch HD...

WOW !!! THX !!!

You are right ! I like your way of thinking !!!

Whats about the point 6) and 7) from my first post ?

:D
[Touch Diamond, MDA Compact IV Themes and Apps] Koffein Schluck:
I found something very sad...

the Touch HD has no "HTCAPI.dll", in the windows folder, it is necessary to use the capacitive panel and i found a site in the internet telling that the HD has no capacitive touch panel...

Then I found this Topic. Some guy just put the missing DLL into the windows folder (why???:confused:) ... i tried the same ... but the LockPro Log still tells me "ERROR loading HTCAPI.dll"... :(

what kind of error is it?

I have an Idea how to make a unlock by touching, it seems as if there are no transparent full sceen windowses avaible. So whats about opening 2 small windowses after locking, one in the upper left corner and one in the lower right (backgroundcolor transparent) they must be not too big and not to small. each of the windowses reacts to touching, if you touch them in a special rhytmus or in a special order the phone will unlock. The windowses must be always in the foreground, so when you dont touch the area where the two small windowses are -> nothing happens... i hope there are some options for windows mobile to make a window the "topmost" and to FORCE the user to deal ONLY with this window...

i will experiment with this. i hope there will be some good news in the next days.
[Touch Diamond, MDA Compact IV Themes and Apps] tenxo:
Actually You Can lock the device to PIN without waiting for the timer to time out if you was going to leave it:confused: like you stated. It is a few to many steps though but could create a shortcut...start>sytem>lock and it asks for your lock code. you could do that then go the restroom.:)
[Touch Diamond, MDA Compact IV Themes and Apps] 4D3:
my question is, why not just take your phone with you? its not big, also leaving it around leaves it susceptible to "going missing"

put it in your pocket is the best lock because then they would actually need to steal your trousers to get it in the first place!! :p:p
[Touch Diamond, MDA Compact IV Themes and Apps] tenxo:
My thoughts exactly I dont leave mine laying anywhere out of reach...:cool:

Those Icons are wicked Mystic, they will def. make using the action;) better.

Thanks
[Touch Diamond, MDA Compact IV Themes and Apps] SimonW500:
Ahh ok - I'll give it a whirl - thanks for the heads-up!! :)