yashsingh1/xdaforums huggingface dataset:
[Touch Diamond, MDA Compact IV Themes and Apps] cichy3000:
another thing :)

i've written small app (smaller then before :) ) to just toggle TouchLockPro lock/unlock state via registry not by executing touchloockproaction.exe with some arguments program

whole program looks like this:

static void Main(string[] args)
{
//setting registry to be opened
RegistryKey reg1 = Registry.CurrentUser.OpenSubKey("Software\\ZuinigeRijder\\Status", false);
if (reg1.GetValue("IsLockedStatus").ToString()=="0")//if is locked == 0 (not locked)
{//then open another registry (to lock)
RegistryKey reg2 = Registry.CurrentUser.OpenSubKey("Software\\ZuinigeRijder\\ActionSettings", true);
if (reg2.GetValue("LockScreen").ToString() == "0")//if subkey is 0
reg2.SetValue("LockScreen", 1);//then set it to 1
else reg2.SetValue("LockScreen", 0);//otherwise set it to 0
}
else //if isLockedStatus not = 0 (is locked)
{//open registry for unlock
RegistryKey reg2 = Registry.CurrentUser.OpenSubKey("Software\\ZuinigeRijder\\ActionSettings", true);
if (reg2.GetValue("Unlock").ToString() == "0")//if subkey unlock is 0
reg2.SetValue("Unlock", 1);// set it to 1
else reg2.SetValue("Unlock", 0);//otherwise set it to 0
}
}

and i've made a cab that links my program to short press of power button so when we press it and we are unlocked we DO LOCK, when we are locked we UNLOCK ... just toggle :)

be sure to have touchlockpro settings:

1. htc lock api = 0

2. unlocked keys power button: 129

be sure to install app in main memory (only 2kb)...

Edit:

is there any registry value to unlock from LockSuspend (setting Unlock doesn't bring backlight ON ... only keys are unlocked... ) ;/ it would be perfect if setting Unlock would unlock whole locks ;D could You implement it ? (the same effect is when I'm in LockSuspend mode (via registry) and I press unlock sequence it gives full unlock... but setting Unlock as I said unlocks only keys doesn't bring screen "on"
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
There is another registry setting, where you can just put the available TouchLockPro commands:

HKCU\\Software\\ZuinigeRijder\\ActionSettings\\Command

So in there you can write !LOCKSUSPEND or !UNLOCK

Currently there is no action to make the backlight on automatically at !UNLOCK, but probably this command will do: !UNLOCK;!BACKLIGHTON
[Touch Diamond, MDA Compact IV Themes and Apps] longice:
Any chance of making this exceptions list happening? I'm having a hard time in the morning turning off TLP and the G-Alarm;) S2U2 automatically unlocks when G-Alarm is executed, but this doesn't seem to happen with TLP...

And another request: Is it possible to deactive the unlocking when pressing Volume Down + Volume Up?
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
G-Alarm did add support for TouchLockPro already a time ago (v1.2.4), that it automatically unlocks TouchLockPro by setting a registry key. Maybe that is broken? Or do you use an old G-Alarm release? If not, can you enable debug logging, reproduce the G-alarm scenario and post \TouchLockPro.log.txt as zipped attachment.

Unlocking key sequence is just a setting, you can adapt:

UnlockedKeySequence =

UnlockedKeys =
[Touch Diamond, MDA Compact IV Themes and Apps] longice:
Ah, great with unlock sequence, I go it fixed now, thanx:)

I have the newest release of both G-alarm and TLP, but it still doesn't unlock. I have the unlock option enabled in G-Alarm, but it still doesn't unlock automatically. Since the phone does not unlock, this leads to another problem: The screen goes black after somewhat 20 seconds, since the phone is locked (but the alarm keeps shouting).

I've attached my log file.

EDIT: Could it be possible to add an option, that unlocks the phone when specific apps are executed? Not really an exceptions list, but an "Unlock when custom app is executed"-list? :)
[Touch Diamond, MDA Compact IV Themes and Apps] ledg3:
Unlocked after soft-reset

I have a suggestion that I haven't seen mentioned in this thread or at the Homepage for TouchLockPro.

I'm considering using it as a "security locker" and replacing the WindowsMobile built-in Lock. To replace entering the PIN, I would define a sequence of Nav-area touches to unlock the phone. This works quite well. However, when the phone is locked using TouchLockPro, a soft-reset will give access to the phone. Is it possible for an option to be added to TouchLockPro to automatically lock the phone after a soft-reset?

Thanks for such a useful program!

Cheers,

Ledg3.
[Touch Diamond, MDA Compact IV Themes and Apps] cichy3000:
Yes !! (almost !)

!BACKLIGHTON;!UNLOCK works great ! one thing ... even after !LOCKSUSPEND the Keys are not locked fully :/ (HTC Lock API = 0, unlocked sequence = "134,134", unlocked keys: "134,129" and still got problem with volume buttons - they beep (described on Your site)
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
You do not need to set the volume key unlocked, to be detected in the key unlock sequence. So you can set UnlockedKeys =

That will avoid the beep, I think. Probably in a next version I will only set the volume unlock key sequence and not unlock the volume down button as default, because the default HTC volume screen is not working anyway.....
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Currently TouchLockPro waits 60 seconds, before continuing doing its work. To make the feature you want, this time should become configurable, because otherwise you still have 60 seconds to do something. And the locking after boot is dangerous, because if the unlocking does not work (the NavSensor sometimes does not work in TF3D), then it becomes a problem :eek: That means that besides the NavSensor unlock sequence it is also a good idea to have maybe a secret key unlock sequence (for just in case) :confused:

So I do not think that it is a good idea to offer this as setting, it is only something you should do, if you are absolutely sure what you are doing. It would be nicer, if TouchLockPro could work in cooperation with the PIN lock, so when TouchLockPro unlocks, it automatically could unlock the PIN lock. So somewhere TouchLockPro should then store the PIN encrypted and keep it only for you!

A simpler option would be the possibility to configure the startup delay and the option to lock at startup, though. I will put it on the wish list.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
I looked into the log file and I do not see that G-Alarm is incrementing the following registry key:

HKCU\\Software\\ZuinigeRijder\\ActionSettings\\Unlock

I assumed G-Alarm did implement this one, because my mail conversation was about incrementing this registry key. However, I do not see this registry key is set in the logging.

It is possible G-Alarm is doing it differently, because an earlier mail was about executing the command "TouchLockAction.exe" unlock. And that possibly TouchLockAction cannot be found? So I do not know what variant G-Alarm has now implemented for unlocking TouchLockPro :cool: Probably you should ask the author of G-Alarm....

If it is the last option, maybe TouchLockAction.exe cannot be found. You can try to copy TouchLockAction.exe to \Windows, to see if this is the case....
[Touch Diamond, MDA Compact IV Themes and Apps] longice:
Well, you are just a genius. Because that was all it took to fix it!!! Just copied TouchLockAction.exe, and now it unlocks just as the alarm goes off:D Thank you so much!! That made this really worth a goood donation;)
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Great. However, you must check if you can still start TouchLockAction by pressing the battclock. I suspect TouchLockPro just takes the one in the same folder where TouchLockPro is installed. If not, the images of TouchLockAction cannot be found.
[Touch Diamond, MDA Compact IV Themes and Apps] longice:
No problems there either:) But I didn't move the file, I just copied it to the windows folder. So it's present both places.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Super. Thanks for the very good donation :)
[Touch Diamond, MDA Compact IV Themes and Apps] longice:
Just doing my part to make you motivated for improvements;)
[Touch Diamond, MDA Compact IV Themes and Apps] PseudoReal:
Hi,

one minor and more cosmetic issue:

When you are in landscape mode, e.g. in SMS, you can see a part of the old clock and then the overlay of Touchlock Pro. Do you think you can make the symbol in landscape a little bit brighter, so that you do not see the "old" clock of WM.

Thanks,

Pseudoreal
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Probably this is the same issue as described in these posts:

http://xdaforums.com/showthread.php?p=4117660#post4117660

http://xdaforums.com/showpost.php?p=4118400&postcount=2417

So you can disable the clock in landscape somewhere with Advanced Config.
[Touch Diamond, MDA Compact IV Themes and Apps] o.k.:
No need... below is the excerpt from the latest changelog of G-Alarm:

---------- 8X----------

2.2 (2009/08/07)

...

* [ADDED] Advanced option: Unlock the device (only works with S2U2, SensorLock and ThrottleLock)

...

---------- 8X----------
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Actually, G-Alarm did already implement a long time ago support for TouchLockPro, namely since version (v1.2.4).

I offered then 2 solutions, I was in the understanding the last proposed (and better) solution was implemented by G-Alarm. But G-Alarm has implemented the first solution :mad:

"TouchLockAction.exe" unlock.

In the mean time TouchLockAction has moved to a better place and TouchLockAction.exe cannot be found when the path is not prepended. So copying TouchLockAction.exe to \WIndows solves the G-Alarm problem. And yes, it is still supported :)
[Touch Diamond, MDA Compact IV Themes and Apps] o.k.:
I experimented a bit -- it seems to suffice to create a link to TouchLockAction.exe in Windows. You may try as well, if it works, you could just include the LNK file to the installation cab :)
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
version 2.7.3 is available
[Touch Diamond, MDA Compact IV Themes and Apps] chalin:
Is possible to keep blinking LED's when is display off ? It works nice when he's on.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Currently the LED´s are indeed stopped at 2 occasions:

- unlocking

- power off/screen off

Does it make sense to keep the LED's on, when in a deep sleep? This will only cost battery :confused: When you power on the device, it starts flashing again, so can you explain more why you want it keeping flashing?
[Touch Diamond, MDA Compact IV Themes and Apps] chalin:
Just for the "look". Like on Nokia n78, its a perfect eyecather. >Video of n78<
[Touch Diamond, MDA Compact IV Themes and Apps] aadadams:
My old Motorola V600 does that, and it has multicolored leds which made it look really cool.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Ok, I made a version, where the LED control is not stopped at power off. Can you check if it does it do what you want? Actually, I did not test if the LED keeps blinking, when the power is off. I assume you will check ;)

If it works, I can make it configurable in a next version :rolleyes:
[Touch Diamond, MDA Compact IV Themes and Apps] chalin:
Hi, I've just tested it and it works perfectly ;) Great job man ! But just for ask, can it be made as a separated app. ? Its not neccesary, but just for know ;)
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Yes, this is possible, this post describes the relevant source code for controlling the LED's. :rolleyes:
[Touch Diamond, MDA Compact IV Themes and Apps] PseudoReal:
Hi,

thx for the solving of the landscape issue.

One other question:

Is it possible to do different actions on different states. Example:

When BT is connected (or "on" if it is too difficult) then I would like to have the !SUSPEND action after the call ended.

When BT is disconnected (or "off") then I would like to do nothing....

Thanks,
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Currently, this is not supported. But you have a point. When Bluetooth is connected, you probably want always to suspend ASAP at end call. You even do not want this as an option, but this can always be done, I think. Or do others see situations that after an end call you want the display to stay on in combination with Bluetooth connected?
[Touch Diamond, MDA Compact IV Themes and Apps] o.k.:
Hi! I see you added the link file. Did it work in your case? :O I'm just wondering, because unfortunately I have found out that in my case it worked because the phone got unlocked due to light sensor, not by G-Alarm... Today I got a morning alarm (it is set not for every morning) and when G-Alarm popped up in the darkness, the touch panel remained locked.

Nevertheless if I'm copying the exe to windows (instead of just lnk), even with closed light sensor it gets unlocked...

Sorry about misleading info :(
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Actually, I did not test with G-Alarm, because I trust my users :rolleyes: Thanks for pointing out the problem. I will make a separate small TouchLockAction.exe written in C which only does setting the registry keys. And then that small program will be put in the Windows folder. But be patient, because I need to test ;)
[Touch Diamond, MDA Compact IV Themes and Apps] longice:
My device unlocks in the dark when using G-Alarm. I have just copied the file into the windows folder.
[Touch Diamond, MDA Compact IV Themes and Apps] PseudoReal:
Go ahead and implement ;)

Actually: I think it should not be tied to Bluetooth. May be you can tie it to the following:

If an headset is connected (Wired or wireless) then the Screen should be turned off during and after a call it should be !SUSPEND.

Else do user criteria as of today.

and may be you can make this functionality option (with checkmark) for people that dont like this behaviour.

Thanks!
[Touch Diamond, MDA Compact IV Themes and Apps] topsign:
I have installed TouchLockPro as well as GSCROLL in my TouchPro,

Unfourtunately, I just found that the lock is totally no use at all coz in the mean time though the phone is locked, I can still use Gscroll gesture when the screen is on. and the locking picture of time & batt in the task bar is changed to unlocked ones. that means the phone is just unlocked.

may there be some kinda conflict between them
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Actually, TouchLockPro supports GScroll, while TouchLockPro is locked, it disables GScroll by setting a GScroll registry key and enables GScroll when unlocked.

You describe that the BattClock indicates it is no longer locked, so I expect it is unlocked by the light sensor or e.g. the Stylus sensor reports out.

You can enable debug logging (LogDebug=1), reproduce the problem, note the exact time and post the debug log file \TouchLockPro.log.txt. Maybe that gives a clue....
[Touch Diamond, MDA Compact IV Themes and Apps] derekcranson:
There seems to be a bug in 2.7.3

I use the same settings as 2.7.2 only:

Stylus sensor: UseStylus =1 , StylusOutDisablesLockMode=1 and

Keyboard: HTC Lock API =1 and

Other: UnlockOnACPower=1

All other settings are off

When I suspend the device the screen goes black. I pressed all the buttons, one at a time and finally the power button. I found that even though the screen was off input was received and finally the device powered on with the power button to give the attached.

2.7.2 works correctly powering on with removal of the stylus only.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Strange. The message shown is not from TouchLockPro or TouchLockAction, so I expect the "m_fnCreate fail!" is from another program. If you deinstall 2.7.3 and install 2.7.2, is it then working with those settings?

It is normal, that pressing the power button will wake up the phone.

You can enable debug logging, reproduce the scenario and post the log file \TouchLockPro.log.txt. Maybe that gives me a clue :confused:
[Touch Diamond, MDA Compact IV Themes and Apps] derekcranson:
Re-installing 2.7.2 locks the power button, which is what I want, and with the above settings only unlocks with removal of the stylus, again correct. I made no other changes of programs or settings.

I agree that the error message is probably due to green phone button followed by one of the others, but as these buttons are supposed to be locked something is wrong as input is being allowed.

There is a couple of logs here but When I turned logging on and hit suspend it just threw me out.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Ok, it does not ring a bell. I did check my source code and do not immediate see why it does behave differently now.

I did however, try to register all keys, which does not seem to work. Maybe this has a side-effect. I will remove those in a next version, maybe that solves the problem. For now just use 2.7.2. I would be glad if you test again with version 2.7.4....when it is available....
[Touch Diamond, MDA Compact IV Themes and Apps] derekcranson:
Thank you I will.
[Touch Diamond, MDA Compact IV Themes and Apps] ditroy:
Testing and evaluating TouchLockPro

Hi,

I'm testing your terrific application with my Blackstone and I am very glad :) I found this after an exhausting search, trial and error on numerous tweaks and apps. I think it has the potential to do a lot of the things I try to achieve:

1. save power

2. shut off backlight instead of dimming it and having a good night sleep

3. preserve the powerbutton from being used to accomplish 1 and 2

I am already very far in optimising the settings but I have a few questions and suggestions.

I actually use the G-sensor to activate the wanted commands, trying to keep the number of gestures as limited as possible: Face Down to shut off Backlight and Vertical + Vertical Reversed to put it on.

Now here is my first question/suggestion: I noticed that for my Blackstone only these gestures work without too easily switching the Backlight.

The cause of this seems to be the fact that the sensor reacts on a too small angle. For instance: when moving from Face Up(Portrait) to Vertical(Portrait) already with a tilt from 15-20 degrees there is a switch, resulting in a strange :D light out of my throuser (45 degrees would make this much more reliable)

So, if you could help on that would be great.

And my last question: which commands or extras would support my 3 aims best?

Thanks
[Touch Diamond, MDA Compact IV Themes and Apps] meirionwyllt:
Can't get TLP to behave how I want it to.

Hello, please can you help me configure TouchLockPro with the right settings for my Diamond? My needs out of the program are quite basic, but I get confused with all the other complex functions. I have read the Settings webpage but still cannot quite figure it out.

I only want to lock the touchscreen, nothing else.

When I press the power button to switch on the screen - I want the screen to unlock also

And when I press the power button to switch off the screen - I want the screen to lock also

Then, when I receive a call I want my screen to turn on but remain locked.

And when I get any other notification (SMS, reminder) - I don't want my screen to turn on at all, only sound.

I don't want any of the other settings at this time. Can anyone advise me of the correct settings to get the above?

Thanks
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Great that you did find TouchLockPro to help in saving power. One of the most improtant things, is that you must let the phone go into a deep sleep, to save power. If you only do the backlight/screen off, it still consumes too much power and it will drain your battery too fast. So you should really suspend the device instead of backlight off or screen off.

Here are some more tips to conserve power:

- set the default SuspendTimeOutPowerOn = 30000 lower, but be sure you have enough time to unlock. By this, when the phone awakes, it suspends again earlier

- set SuspendOnBacklightOff = 1, so it will suspend already when the backlight goes off. This is of course dependent of your usage pattern, if this is convenient or not

- set the backlight off time as low as possible (Windows Setting)

- I did set my netwerk band to GSM only, to save more power. I do not use 3G, and with that internet is still fast enough

- I did set the GSM+UMTS band manually and not on auto

- I did all performance tweaks with advanced config

About the GSensor gestures: I read out the orientation changes as given back by HTC GSensor. So apparently the HTC Sensor is too sensitive. Maybe I go experiment with the GSensor myself, to detect/compute the orientation by TouchLockPro itself. Then I can take into account the degress myself.

Apparently, you do not want to use the Power button too much. You can use the Stylus for awakening the phone, by just taking it out. You can also quickly suspend the device, by taking it out and putting it back immediately. I am also planning to make it possible to configure commands on the Stylus moves (Stylus Launcher), so you can then also configure to suspend at Stylus in. But the Stylus usage is also something you like or not. But it is an option you could use.....

There are also programs which control the backlight level with use of the light sensor. I have this too on the wish list, to incorporate it in TouchLockPro. But there are tools, e.g. G-Light to conserve backlight power.

Hope these are the sort of answers you were searching for? I am sure others will have tips too.....
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Unfortunately, TouchLockPro cannot detect the reason for power on, if this was because of a power button press or an external event. So some of the things you want to achieve are not possible or not exactly as you would think.

First of all, you can tweak the phone, that it does not awake at incoming SMS. So search on xda and you will find it. So if that works, normally the only way to power on the phone is via the power button or incoming call (assumption: no external programs installed which awake the phone, like alarm programs or email synchronization).

If that is the case too for you, you can set the following settings:

AutoLockOnPowerOn = 0

LockTouchPanelOnly = 1

LockWhenIncoming = 1

Hope this helps.
[Touch Diamond, MDA Compact IV Themes and Apps] Lupin Saiko:
Okay maybe Im doing something wrong but I cant even get the Power Button to lock the device. I want suspend on too I suppose since it saves a lot of battery but will that stop background apps from updating IE RSS/Email/Weather?

Any help would be greatly appreciated.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Background apps which need to do their work, like synchronizing email, wake the phone themselves regularly. So still, after doing their job, the phone goes into deep sleep again.

Some people have problems with the setting "DoubleTouchPanelLock = 1". So maybe setting it to DoubleTouchPanelLock = 0 solves your problem.

If not, can you tell more about the power button problem, because it would normally lock immediately when powering on. And as I understand that is not working :confused: