yashsingh1/xdaforums huggingface dataset:
[Touch Diamond, MDA Compact IV Themes and Apps] cichy3000:
Oh My God... i think that it is working...

but need to work with it a little time...

i've recorded 2 videos

i'm locking using prepared *.lnk file that contain (nothing else): "touchlockaction.exe" LOCK

http://www.dzwiekowe.pl/tlp1.avi

on first I execute link, we hear breep (vibra while locking), screen goes off... then I push twice center button, we hear 2xbreep (vibra while unlocking), the screen doesn't turn on, I push power on, screen goes on we can see that phone is unlocked (no white square in top-right corner), then I run link one more time, we hear breep (vibra), screen goes off... then i push the power button, screen goes on, (we can use screen, scroll etc.), and we can see that white square in top-right corner that says about "locked state"... so if we could do that while making unlock with predefined key combination (in my case 2xcenter button), screen would go on, and if it's not our combination nothing would happen...

http://www.dzwiekowe.pl/tlp2.avi

and here is home-case ... even if "locked" home button brings manilla to front (for 2 seconds) :/
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Very nice. Did you couple that link to the middle button? I am sometimes amazed what you can do with TouchLockPro myself :D

Because you have a Touch Diamond, there are already configured capacaitive swipes, which do locking, see here.

Left Swipe Up (CmdLeftUp = "!BACKLIGHTON")

Right Swipe Up (CmdRightUp = "!UNLOCK")

Left Swipe Down (CmdLeftDown = "!BACKLIGHTOFF")

Right Swipe Down (CmdRightDown = "!LOCKSCREEN")

Left Swipe Right (CmdLeftRight = "!SCREENOFF")

Right Swipe Right (CmdRightRight = "!LOCKSUSPEND")

Left Swipe Left (CmdLeftLeft = "!SCREENON")

Right Swipe Left (CmdRightLeft = "!LOCKSUSPEND")

And of course, you can configure your own actions. I am going to make it possible to couple different commands to swipes when locked or unlocked in the near future.
[Touch Diamond, MDA Compact IV Themes and Apps] cichy3000:
Hehehe nice... :) You've written an application that features where not discovered yet :) nice... :D when I'm writing any app most feature functions are buggy and need to be deleted / modified ... ;)

back to topic... :) link was executed from resco explorer it wasn't binded/coupled to center button... i've executed it by pressing center button in resco nothing else... :)

I love using hard-keys, pressing them - not swiping :) ... if unlock sequence (hard key combination) could be written just as for swiping unlock method... it would be really great...

Right Swipe Up (CmdRightUp = "!UNLOCK") = Double pressing (not touching) center button... while in lock, lockscreen, backlightoff (sort of suspend but still available to read keys combinations and/or swipes of capacitive sensor)

what do you think about it ? (I've just faltered in answer... but maybe You know what i wanted to say ... ;) )
[Touch Diamond, MDA Compact IV Themes and Apps] hgrimberg:
All keys locked with the exception of the D-pad

Hi ZuinigeRijder,

Congratulations for your new version 2.6.1. I was finally able to install it.

I've seen you added some new fields under Keyboard.

How do you do to have all keys locked with the exception of the D-pad?

Thank you very much.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
This is described here.. UnlockedKeySequence = 134

Note that the Home/Back key are locked, but they are still intercepted by the phone itself. But they do no harm :rolleyes:
[Touch Diamond, MDA Compact IV Themes and Apps] hgrimberg:
Thank you ZuinigeRijder, this is a great program!

How do you do to lock the phone and at the same time turn the screen off?

I read all the Settings instructions on your website, but didnt find the way to have the locking feature and the screen off feature working at the same time.

Thank you again.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
There are several methods:

- press power button (power off), with the default settings it is locked then

- via TouchLockAction menu (press BattClock -> TouchLockAction -> Suspend) or start TouchLockAction via Programs

- via Stylus Out/In within 1 second

- via Capacitive Swipes: !LOCKSUSPEND

- via GSensor: !LOCKSUSPEND

- via command coupled to a key: "\Program Files\TouchLockPro\TouchLockAction.exe" LOCKSUSPEND

- via link in a folder (linked to above command)

What phone do you have?
[Touch Diamond, MDA Compact IV Themes and Apps] hgrimberg:
I have a HTC Diamond.

I want to create a soft key (one of the 2 at the bottom) that I can click and Lock and Suspend the phone. What exe file should I have to call to make the association? This way, I can turn off the screen and lock the phone by just clicking this soft key and then I can wake up and unlock using only the middle button (D-Pad). By the way, is there a way to just wake up the phone with only one key and not allow any other one to do it?

If I create the association using TouchLockAction.exe it will prompt me to the Touch lock pro main panel and from there I'll have to click on suspend. Is there a way I can directly Lock and Suspend by clicking on a soft key that calls another, more direct exe file that makes the phone lock and suspend?

Thank you!
[Touch Diamond, MDA Compact IV Themes and Apps] paalkr:
Hi!

One of the things i like the most about TouchLockPro is that it does NOT have a foreground window, there are lots of other locking applications who have that, like slide2unlock2. I see no need for TouckLockPro turning into one of those applications.

I also like the new non HTC API locking mechanism because then only the HW keys can be locket at an incoming call (only use slide to answer), and hardware key combinations can be used for unlocking.

If locking the touch panel worked well all the time, I would have no problem with the current approach. By using the HTC lock API it does, but unfortunately when not using the HTC lock API the touch screen and some buttons are still active under some conditions. The problem is as described below (I have a diamond2 btw):

1) Both the windows button (the one with a windows flag), the back button and the home button (hang up) are active in locked mode (even if the unlockedkeys field under keyboard settings is empty).

2) Some touch screen functions like scroll are active even if locked

3) Hitting one of the above mentioned buttons performs the same behavior as if the device was not locked (pressing the windows button brings up the HTC launch menu). Pressing the button one more time closes the menu.

4) The major problem is that double (or triple) tapping any of the two soft buttons in any open application performs the softkey action, even if the device is locked.

If I understood correctly point 1 to 3 is how it is, and not possible to change without a foreground window (better leave as is, rather then introduce a foreground window). The double tapping softkey on the other hand can be very dangerous, as mail can be deleted and all sorts of other things can accidentally happen. Hopefully this issue can be fixed :)
[Touch Diamond, MDA Compact IV Themes and Apps] cichy3000:
Keyboard: only "unchecked" is HTC Lock API rest are "checked", then we wrote in UnlockKeySequence: 134;134;

when I'm in 'lock state' (action: LOCK) double clicking center button unlocks phone, but doesn't turn backlight/screen on :/ if You could implement setting commands for key sequence events it would be great...)...

then I've created Short_Power.lnk file containing this line:

1#"\PROGRAM FILES\TOUCHLOCKPRO\touchlockaction.exe" LOCK

and I've put it to \Windows\ folder... now short pressing power off button launches touchlockaction.exe with action: LOCK... almost great... now after locking with this method we cannot unlock phone with pressing short power off :/ maybe toggling action would be good for this situation ( for ex. "touchlockaction.exe" TOGGLE: if i'm locked then i will unlock if i'm unlocked then i will lock... ;) )

other method for unlocking with use of power button is to create Long_Power.lnk with line:

1#"\PROGRAM FILES\TOUCHLOCKPRO\touchlockaction.exe" UNLOCK

but while we are locked, and we press power button for a long time, it unlocks but doesn't turn backlight and screen on :/ (the same thing as we press key combination for unlock purpose ;/ ) I tried running link:

1#"\PROGRAM FILES\TOUCHLOCKPRO\touchlockaction.exe" UNLOCK BACKLIGHTON but There is no such function as BACKLIGHTON :P (there is BacklightOff but not BacklightOn ;) )
[Touch Diamond, MDA Compact IV Themes and Apps] Cobaltikus:
I'd like to try and tackle the Manila issue where the capacitive touches are not picked up.

Can someone post a step by step process that ALWAYS reproduces the problem?
[Touch Diamond, MDA Compact IV Themes and Apps] illi:
ZR

I've been using TLP on my Diamond2 and had no issues. However, the attached log file may help you improve it for Diamond2/TouchPro2.

Thank you.
[Touch Diamond, MDA Compact IV Themes and Apps] Cobaltikus:
On my altered version, the issue is not there if you manually turn on the phone by pressing the power button. But if the phone turns itself on (i.e. an incoming call), then the problem exists.

I believe this is consistent with the latest version of TLP.

Is there any other situation that causes this? I'd like to make sure I'm covering all bases before spending too much time. However, if I can fix what I know it will probably fix other situations as well...
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Hi Cobaltikus, what did you change to avoid the problem when powering via the power button?

By the way, sourceforge has accepted my project, so the source code (and all history) is available here in subversion:

https://sourceforge.net/scm/?type=svn&group_id=263475.

I myself use TortoiseSVN as Windows Client.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Great. I hope you are happy with this version ;)

The only error I see is about the keyboard-slider, which is not available on your phone, so this is normal.

Thanks for reporting the good news :)
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Strangely enough, I do not have this problem of the soft buttons on my Touch Diamond. These are also locked. Is this problem only applicable for the Diamond2? Or is this a Zoombar/Capacitive sensor thingy :confused:
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Indeed BackLightOn is not yet available in TouchLockAction. Currently I have a separate registry key for each action from TouchLockAction to TouchLockPro. I want to change it, so I can just set the built-in command for TouchLockPro in the registry, so it is easier to add commands......

So that will be something for on the TODO/wish list.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
The answer for Lock and Suspend was in the response, use TouchLockAction with a parameter:

via command coupled to a (soft)key: "\Program Files\TouchLockPro\TouchLockAction.exe" LOCKSUSPEND

Windows Mobile does not let you select on which keys to awake, it is via the power button OR on all hardware buttons. See also this post.
[Touch Diamond, MDA Compact IV Themes and Apps] hgrimberg:
Thank you for teaching me how to add parameters to a command.

I am hesitant about what you said that Windows Mobile doesnt let you select on which keys to wake up the phone. The program "Black me 1.4" seems to be able to lock all keys and leave the D-pad (round center key) unlocked. You can turn on the screen by clicking the D-pad but the only thing is that you always have to close the "Black me" application's screen every time.

So, if this program is able to wake up the screen with only one key and not with any key, then there must be a way to do it...
[Touch Diamond, MDA Compact IV Themes and Apps] paalkr:
Hi!

First of all, thanks for taking the time to follow up on all sorts of more or less silly comments and feedback :D

I don't thinks that soft button issue has any thing to do with the zoom bar thingy, which btw I don't think is capacitive because it reacts when touched by the stylus and it is slightly flexible in the same manner as the touch screen. I think the zoom bar is just an extended part of the touch screen sensor that is treated as a hardware sensor. Anyway the zoom bar seems to be fully locked when the device is in locked mode.

The soft buttons also seems to be locked at first, because the double/triple tap has to be performed quite fast to override the lock.

Would it help if provides a log recorded when I tap the soft buttons?

Regards,

PK
[Touch Diamond, MDA Compact IV Themes and Apps] jbrady33:
Ok, really stupid question - will this still work when using the standard windows mobile home screeen instead of TouchFlo? Just installed the new version, might be me doing something stupid.
[Touch Diamond, MDA Compact IV Themes and Apps] Cobaltikus:
I can't be 100% certain until I do more testing, but I am handling the capacitive sensor a little differently which is probably why there are different results. I am creating a window using CreateWindow with a CALLBACK procedure, and then passing that window handle to the HTCNavOpen and HTCNavSetMode (where you pass in NULL) so that I can capture the Touch and Gesture messages in the callback proc as they occur as opposed to constantly polling. I am not using HTCNavGetMode at all. When the screen turns on and is locked, that is when I call HTCNavOpen and HTCNavSetMode, and as soon as the screen is unlocked or the screen turns off (whichever is first) I call HTCNavClose. The GESTURE message is WM_USER + 200 and the TOUCH message is WM_USER + 209. The wParam and lParam for the touch message are 4 byte structs that determine the details like where it was touched. I don't have the gestures implemented in mine cause I just touch the center twice to unlock. I wanted to flash a led whenever a touch was acknowledged but it seems the led calls are asynchronous and not very quick when many calls are made in sequence.

Anyway - with this in place the capacitive sensors are fully functional even with Manila active, but only if the phone is turned on via the power button and not if via an incoming call.

I can email you the source code if you like. It is basically a complete rewrite of TouchLockPro 2.3.1 with only my favorite parts kept and some alternate methods like what is described above.
[Touch Diamond, MDA Compact IV Themes and Apps] Cobaltikus:
Yes, and it actually works even better without TouchFlo because there's no capacitive sensor issues that way.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Yes, I use it also with the standard windows mobile home screen. Does the touchpanel not lock?
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Stupid questions are questions not asked :)

Yes, it will help if you enable debug logging and provide the log when the soft buttons are tapped.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Black me does also not power off the phone completely (deep suspend) and keeps the device alive. TouchLockPro can do this too, but this will cost more battery (like Black me). Actually !SCREENOFF command does this. I will see if I can unlock via the middle button AND make the screen on, in that case. Need to test that.
[Touch Diamond, MDA Compact IV Themes and Apps] hgrimberg:
So I can write a command coupled to a (soft)key: "\Program Files\TouchLockPro\TouchLockAction.exe" LOCKSUSPEND SCREENOFF ?

Just that? the 2 commands separated by a space?

Are you sure that after it is locked and the screen is off, then only the middle button will turn on the screen and unlock?

Thank you!
[Touch Diamond, MDA Compact IV Themes and Apps] illi:
Thanks to you. I am quite happy and more than happy when you never miss responding to everyones' postings here.

Probably you want to look at the ZoomBar of the Diamond2 for swipe methods.

Have a nice day.

TQ
[Touch Diamond, MDA Compact IV Themes and Apps] nljuggler:
First off, let me tell you that I love this app.

But (there's always a but) since I decided to lock the hardware buttons as well as the screen (LockTouchPanelOnly = 0) I've not been able to end my calls by just pressing the End Call button.

The only way I found to be able to do this, is to press the Home button first (which turns the screen back on) and then press the End Call button.

Is this 'as designed' or is there a way that I can just press the End Call button by altering some setting(s)?
[Touch Diamond, MDA Compact IV Themes and Apps] paalkr:
OK

I have attached a log file when the double/triple tap on the left soft button overrides the lock. Even more strange is that the hole soft key ribbon area seems to be unlocked, because all taps in this area in the launched application works as the phone was not locked at all.

I triple tapped the left soft button in the touchflo home screen, and that launched thumbcal (so you know what to look for in the log file)

Edit: I tried to disable the touchflo but that did not change anything, the soft buttons are still not locked. And just to clarify, it's the on screen soft buttons that are active even when the device i locked.

Regards,

PK
[Touch Diamond, MDA Compact IV Themes and Apps] jbrady33:
Working great now, had to remove the standard windows lock from the today screen - duh
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Currently, the screen on is not part of unlocking. I tried a modified local version, and did the following:

- SCREENOFF via Left Swipe Right (CmdLeftRight = "!SCREENOFF")

- screen goes off, TouchLockPro keeps the phone alive with screen off, so still unlockkeysequence can be detected

- you cannot awake the phone via Home, Back, or others buttons, because these are locked by TouchLockPro

- Press the middle button, which is configured to unlock the phone

- And voilá, the phone awakes with the screen on :)

I need to test the explicit !SCREENON further, if it does not have side effects. If this is all positive, I can post probably this weekend that version :rolleyes:

I also tested how much battery drain there is, with SCREENOFF (keeping phone alive). I drained 5% in 1 hour, which is not too bad :cool:
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
I have asked namuk of this thread for the API they use. No response, not via a PM and also not via a post. I hope this is a real project, giving details later. I keep searching for the Zoombar.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Are you sure you did not change the default :confused:

UnlockWhenConnected (UnlockWhenConnected = 1)

If not, can you enable debug logging, reproduce the scenario and post the log file \TouchLockPro.log.txt as zipped attachment.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
I do not see the soft keys actions, so they are gone unnoticed by TouchLockPro and are not blocked. Strange that on the Diamond2 those soft buttons are active, when the TouchPanel is locked and not on a Diamond.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Having 10 locking programs active, is very secure :D

but difficult to unlock :eek:

Good to hear it is working now :)
[Touch Diamond, MDA Compact IV Themes and Apps] paalkr:
Hm, strange! Maybe it has something to do with the WVGA screen, it is actually extended in the bottom by 160 pixels compared to the diamond VGA, but on the other hand the soft key ribbon is not 160 pixels high.

Do you want me to make a video showing whats happening, and post it to youtube or something? Maybe the video will provide some useful information.

Regards,

PK
[Touch Diamond, MDA Compact IV Themes and Apps] hgrimberg:
For what I understood, you mean to use the G SENSOR and write on rule Nº1 343 degrees angle, !SCREENOFF. I did this but didnt work for me. Besides, the gsensor is not very reliable I think.

Is there a way to lock and suspend (or screen off) by clicking a sequence of 134;134 like double clicking on the Middle button? And maybe again to unlock and wake up the screen with the same sequence, like toggling?

This could be cool.

Thank you very much!
[Touch Diamond, MDA Compact IV Themes and Apps] ardavila73:
Lock Settings in Registry

First, thank you for your impressive work. I've been using for the last two days and I think it's great, just getting used to the tapping unlocking method.

A dumb (sorry) question from a newbie: when I try to regedit, I can't find the Keys mentioned in the settings post. I mean, the entry HKCU\Software\ZuinigeRijder\LockSettings is there, but it is empty - just a Default Value not set string.

I can see the entries from other software, like Today Agenda, e.g. What am I doing wrong?:( Thank you
[Touch Diamond, MDA Compact IV Themes and Apps] Pietje_1985:
Hi Ardavila!

You don't do anything wrong;)

It should be empty on default (the registry), because you only have to put something in the registry to OVERRULE the default settings....f.e. when you would like to hear a beep everytime your device is locked, you have to add a DWORD value containing the word: 'beep' and value 1....

than softreset and then the next time you lock your device, a beep will sound....

this is just an example, but just remember..you only have to add rules to the registry if you want to overrule...If you like the default, just leave it empty...:):D

Hope this would help you!

Kind regards

Jeroen
[Touch Diamond, MDA Compact IV Themes and Apps] ardavila73:
Thanks Jeroen for your kind and fast answer. Everything working fine, just wondering how to make the adjustments if needed...

Regards

Andre
[Touch Diamond, MDA Compact IV Themes and Apps] 4D3:
i have just changed a registry key to stop that light sensor and now nothing works, i set this key to

UnlockOnLightSensorTime = 0

and now the stylus will not lock my device, pressing the power button will not lock my device.

I have rebooted and i get the same, i uninstalled then reinstalled and still the same.

I think this is a very large bug! no matter what i do i cannot get this to lock AT ALL!!

i have even changed back to its original state (UnlockOnLightSensorTime = 1000) and still the same, no locking.

what is going on?

another thing i have noticed while i have been testing this is that my device is MUCH more responsive when touchlock isnt installed, i thought it was a fluke but i have tryed this 3 times and there is a noticable speed difference.

thanks for you help
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
I am working on a separate program, which you can assign to a hard key or soft key, from which you can lock. So the small BattClock is then not a problem anymore.

Currently the design is, that the capacitive touches are reset, when another area is touched in between. I am going to change this, so a sensitive touch on another part does not reset the counter. That should make unlocking easier.
[Touch Diamond, MDA Compact IV Themes and Apps] Pietje_1985:
Hi MysticGenius...

I recommend you to first delete the whole content of the registry entry of ZuinigeRijder, then remove the app from your device, softreset and then Re-install the app.....at least then everything should be going back to normal (the default behaviour of TouchLockPro) ;)

let me know if it works:p:D

Jeroen
[Touch Diamond, MDA Compact IV Themes and Apps] 4D3:
Hey dude, i had already taken that initiative, i uninstalled, hard reset, removed reg keys, hard reset again, installed, manually re-entered all of the reg keys and here are the results :

AutoLockOnPowerOn=1 - not working

Beep=0 - working

ClockClickable=0 - working

ClockHeight=1 - working

ClockWidth=1 - working

ClockX=479 - working

LockIndicator=1 - working

LockTouchPanelOnly=1 - working

SuspendOnBacklightOff=1 - not working

UnlockOnACPower=1 - working

Vidrate=1 - not working

i dont understand whats going on, seriously im stumped, how can changing 1 key cause all this problem.

do i have to flash my device to get this working again, if i do it is hugely excessive!!

do you have any ideas as im all out and frustrated!!

thanks for your help

MG