yashsingh1/xdaforums huggingface dataset:
[Touch Diamond, MDA Compact IV Themes and Apps] jerome_liger:
Need Help

Hi,

This application is very usefull... I can't count how often I ignore some answers not intentionnaly with the hardware keys...

I'm very admirative because I'm a mobile developper and I got some trouble in a professionnal application (trouble that you seem manage in this soft):

My customer use HTC Diamonds and in my application, the customer want to disable the hardware keys (the first reason is to "not minimize the application" when the enduser press the "home" hey)

I succeed to disable all the hardware keys (using CoreDll - AllKeys(bool))... except of the "home " keys !!! and that is principaly that key that I need to disable...

I've spent a lot of time by searching some solution without any result...

NONE of this way is working for the "Home" button :

- UnregisterFunc1/RegisterHotKey

- Aygshell.SHSetAppKeyWndAssoc

- PInvoke GAPI (GXOpenInput)

- Registry ([HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Keys])

- ...

... And for sure my customer won't pay me for this "little" thing, even if the application is running properly (and I've spent a lot of time on it)

If you can advise me, it will be really very very appreciate !

Thanks in advance.

Best regards

Jerôme LIGER
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
TouchLockPro has two modes which can lock the keys. Unfortunately, the default locking method of TouchLockPro also does not prevent from going to the Home screen. I also tried the things you tried :mad: But for TouchLockPro it is less a problem, because it has no foreground window, so from locking perspective and prevent from missed calls, this is good enough.

The other locking methods locks ALL keys, even the Power button. It does only work on newer HTC type of phones, like the Touch Diamond. However, it does also lock the screen :cool: So I do not know the functionality of your application, if that is a problem or an advantage :confused: Anyway, you need another way of unlocking then (using the Sensors), because you cannot do it with the keys and touchscreen anymore.

On the other hand, it must be possible to lock the Home key too, because there are tools which do this trick. I do not know how they do it, but it can be that they know a way I (and you) do not know, or that they replace the default key-driver with their key-driver :confused: AEButton Plus can assign/reassign the home button, so it must be possible. S2U2 changelog says: Fixed the Home key lock of Touch Diamond/Pro/HD. So I do not know if that one is capable of preventing the Home button side-effect?

An other solution would be to just detect if you were minimized (maybe even only when detected that the Home button was pressed, because that can be detected), and maximize yourself again immediately.

If you find a solution for the Home button or a workaround, I am glad to hear about it ;)

EDIT:

this post tells that also AEButton cannot remap the Home key.
[Touch Diamond, MDA Compact IV Themes and Apps] slickker:
please make a new unlock function

Hello, always thanks for your work hard.

I think a new unlock function.

If I turn on my device using power button (manually), unlock TouchLockPro automatically.

But not used power button (for examples, calling, notification, wmp....), TouchLockPro will NOT unlock.

Would you please make a new unlock function? :)
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
You mean an exception list?

Or do you mean something else?
[Touch Diamond, MDA Compact IV Themes and Apps] slickker:
Sorry, my english is very short :(

My request didn't mean exception list.

I wanna new unlock function using hardware key:)

Checked AutoLockOnPowerOn.

If turn on my device using power button, my device will lock.

If I use only unlock using Light sensor, my device will never unlocked in dark place.

So, I wanna new 2 kind of functions.

1. Unlock using Hardware Keys. (different Nav sensor)

2. Auto Unlock when Power on manually(voluntarily) using power button.

-> my device power on automatically If arrived SMS or MMS. I don't wanna auto unlock this situation.

But I wanna auto unlock when Power on using power button voluntarily.

sorry,,my english expression is very bad.

understand my requests? :):)
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
That is already possible, default you can unlock via VolumeDown followed by a VolumeUp. See UnlockKeySequence (UnlockedKeySequence = 118,117)

Unfortunately I cannot detect the difference between pressing the power button or awakening via another means. So the exception list seems to be the only way to go then. But that is already long on the wish list and because there are numerous other ways to unlock, I still did not implement this exception list.
[Touch Diamond, MDA Compact IV Themes and Apps] slickker:
Thank you So much

Thanks A lot.

I didn't think that diamond available keyboard because not has QWERTY keyboard.

This function is enough for me.

Thank you :):)
[Touch Diamond, MDA Compact IV Themes and Apps] bluezor:
Question

Hey, I have a question about TouchLockPro -

If you start the phone up, TouchLockPro starts a minute after it starts and if you don't make a movement within that time frame, you can interact with the screen even if it is locked making the lock useless.

Is there any way to make it fully lock without touching it after it loads (since the load-up time is a pain in the neck and I like to load it while doing something else)?
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
The delay of 60 seconds is on purpose, because you have time to enter a SIM PIN, if you have configured it. This is because the phone might not lock, when this is not done in time.

There is a hidden registry setting, where you can change the wait time. You may use it at own risk:

HKCU\Software\ZuinigeRijder\LockSettings\BootDelay

You can set it to the milliseconds you want to wait. But be sure to check it does still lock. Use at own risk :rolleyes:
[Touch Diamond, MDA Compact IV Themes and Apps] bluezor:
Ah alright, thanks for the heads up - least I know what's going on now ;)
[Touch Diamond, MDA Compact IV Themes and Apps] alain.j.j:
cooool program

cooool program
[Touch Diamond, MDA Compact IV Themes and Apps] Alkerion:
Hi !

I just bought an HD2 and installed the latest TLP.

I'm going nuts as until now nothing works as expected on that device :-(

1) When I turn the screen off then on again, the TLP indicator change from white to black, but the lock screen stay active and doesn't go to Home.

SORTED: That was option "Lock on standby" from CHTEditor that mess that up. Disabled and it's now OK. :-)

2) Same when I receive a phone call with the phone in the pocket. When I take the mobile out of the pocket, TLP change from white to black, but the screen doesn't go to Incoming call, it stay on the lock screen.

SORTED: Same as above, that was option "Lock on standby" from CHTEditor that mess that up. Disabled and it's now OK. :-)

When I receive I phone call while the phone is on my desk (enough light) the phone react corectlly and go directlly to the Incoming screen and unlock itself as expected.

3) When I receive a phone call with the phone in the pocket, the phone stay locked as expected (thanks to the light sensor), but the answer button stay active.

The behaviour I expect from my phone is to NEVER made ANY button active while there is not enought light, that will prevent the screen to go ON/OFF in my pocket the whole day.

To me the click buttons are quite bad (and cheap) on HD2 compared to the capacitive one on the HD, and the ON screen button on top of the phone is really missing.

Is there a way to solve this missconception issue ?

When I receive a phone call, I want ONLY the screen to be unlocked to Incoming call screen, and NO button be activated if not enough light.

Is that possible ?

When BT is connected to Car kit I would like nothing to be turned on, not even the screen.

Possible ?

4) How can I also change the TLP default language ?

TLP run in French (few errors I'll report later)

5) a few settings are really hard to set on the HD2 with the fingers only, would be great to use the whole screen and have bigger buttons and fields :-)

Thanks for your support

BR
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Good to see this is sorted out.

TouchLockPro locks the buttons via a keyboard hook. On Windows Mobile only 1 keyboard hook can be active. So I expect another program uses the same keyboard hook mechanism. I do not have a HD2, so I cannot test. But I am sure other HD2 users can confirm it is possible to lock the answer button.

When you enable debug logging, reboot your HD2, the logging would reveal the problem of the keyboard hook failed. So you can try, to see if that is really the problem.

I suspect here CHTEditor could also be the problem here. So you can try deinstalling this program (or other programs suspected) to find out.

Does this mean that the phone is then in your pocket?

Because the HD2 has a Proximity Sensor, and you can control the commands to be executed when something is nearby or not. And you can specify different commands when on bluetooth. So you can try to experiment with that, e.g. !SCREENOFF.

It will not prevent from turned on, but you can do a screen off immediately.

Normally TouchLockPro picks up the current regional language setting and will remove the other languages the first time TouchLockPro Settings is started (to save disk space). If you do not want a language, but fallback to English, you can just remove the language directory in the TouchLockPro program directory (in your case probably fr).

In BattClock I made the buttons larger, but I agree, the setting screens are really crowded. On purpose I also used only the top part, so when using the Soft Keyboard, the information is not occupied by the soft keyboard. And you can also operate it in Landscape. If I would like to change that, I need a total redesign of the screens......
[Touch Diamond, MDA Compact IV Themes and Apps] pitlon:
TP2 Proximately sensor

Hi all,

I’m using the TLP on my PT2 for a while and it’s a great application.

I’m using the last revision and I would like to use the proximately sensor but it’s not working at all.

I never use this sensor with the TLP.

On the “proximately” setting tab at the upper right corner it always shows “0”.

Can someone please help me make it work…

Many Thanks,
[Touch Diamond, MDA Compact IV Themes and Apps] ratelutz:
probably fixed

i have the same or a similar problem like 71Cuda and Bib_x. So i played with the settings. after i deactivated the IncallTweak all seems to work fine. so crosscheck. activated the InCallTweak again and the problem is back.

i would recommend to disable InCallTweak.
[Touch Diamond, MDA Compact IV Themes and Apps] omek07:
Hello Hello

can someone tell me if he/she know te number for buttons on OMNIA II ???

on the tab keyboard i want to put on unlockedkeys the button on the right side which is above the camera button...

thankssss
[Touch Diamond, MDA Compact IV Themes and Apps] rob_p:
Not sure if I've found a slight weakness or not. I'm running TLP on my TP2. Got it set up so that it uses the zoombar, but not the NavBar (since it doesn't have one). When I go to unlock via the zoombar, it seems that if I press slightly above the zoom bar, but below the screen edge, that the soft keys at the bottom of the screen are able to be activated.

So for example, I can press the phone soft key in the bottom left, the keyboard icon, and any menu soft key on the bottom right.

Have I missed a setting somewhere that would allow this to happen, or is this one area of the screen that isn't quite covered by the lock?
[Touch Diamond, MDA Compact IV Themes and Apps] block:
I need an issue fixed with TLP..I have a bluetooth speakrphone for the car but whenever the phone rings I have to unlock it then hit answer in the SP..What option do I have to check off or enable to unlock on incoming call while connected to bluetooth??! someone plz help thanks
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Unfortunately this area is a special area for TP2. It is the same issue as reported in this video. The Touch Diamond soft keys *are* locked. I do not a way to lock those soft keys for TP2 device :(
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
You can enable debug logging and press the key you want to know while locked. In the log file you should find a string:

LLKeyboardHookCallbackFunction hooked

The key code logged is a decimal number.

Hope that helps.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
You can try (if you have a HTC device):

In the TAPI Settings Screen:

HTCLockAPIWhenBluetoothActive (HTCLockAPIWhenBluetoothActive = 1)

However, some bluetooth devices do send a key code by using the bluetooth aanswer keys, so it might not work for you. So you have to try out.
[Touch Diamond, MDA Compact IV Themes and Apps] omek07:
Hello again and thanks for your answer

Can i ask you 1 more question ???

Where i can find the debug logging txt file ???

Edit : i found it , i think that the button is the 195 but i will see it whene my phone is start again from soft reset

Edit 2 : I CANT FIND IT !!!
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
The file is created in the root of your phone memory, \TouchLockPro.log.txt. You need to exit TouchLockPro (via Programs), before copying the file, otherwise not all data is written. After a restart, it will be made empty again.

Note the the hooked logging will only occur when pressing the button when locked.
[Touch Diamond, MDA Compact IV Themes and Apps] rob_p:
I did think that might have been the case having seen earlier posts, but thanks for confirming. I can live with it :)

Keep up the great work :)
[Touch Diamond, MDA Compact IV Themes and Apps] omek07:
Can someone tell me if we can fix a shortcut for right and left virtual keys ???

thanksssss
[Touch Diamond, MDA Compact IV Themes and Apps] johansons:
The nav sensor sometimes is functioning but after sometime is it not responding. How to fix it? Thanks :)
[Touch Diamond, MDA Compact IV Themes and Apps] akira28hk:
Zuinige,

Can u add keys locking with InCallTweak'? i.e. lock keys when screen is turned off by InCallTweak and unlock keys when screen is turned on.

BTW, !LOCK command lock everything even I have KeysOnly checked. Since !SCREENOFF can disable the touch panel, is it possible to add command to just lock the keys or have !LOCK obey the KeysOnly option?

Thanks
[Touch Diamond, MDA Compact IV Themes and Apps] johansons:
gsensor

Hi how do i configure the Gsensor so that it will unlock by just "facedown" then "faceup"? instead of the default sequence?
[Touch Diamond, MDA Compact IV Themes and Apps] BlackFriar:
I too have this problem on my Diamond. It's also hard to reproduce as to narrow down a cause. Any suggestions on debugging this?
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
I do not understand the question. Can you elaborate more on the question :confused:
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Do you use the HTC Sense interface or the standard Windows Home Screen. The first one is sometimes blocking the NavSensor. I had a workaround, by emulating left-right key, so the Sense information changed and the sensor worked again?
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
See http://touchlockpro.sourceforge.net/Settings.html#4.4

Sequence 1, CmdOrientationSequence1 = 56 (FACE_DOWN , FACE_UP)

Sequence 1 command, CmdOrientation1 = "!UNLOCK"

And disable all other commands.
[Touch Diamond, MDA Compact IV Themes and Apps] LpubV:
hi!

thank you ZuinigeRijder for this nice piece of software that, for sure, could fit the bill if I can configure it in the right way...

first: NO! I didn’t read the 368 pages of the topic

second: YES! I did read the whole user’s guide

then I made several configurations tests but never ended up with the result I’m expecting...

SO ... my wish:

the proximity sensor (of my HTC HD2) to inactivate the screen (not to turn it off) and the HW buttons

this way, when riding my bike

I can listen to my GPS speed-cams warnings in my helmet

AND

I don’t need to worry about the applications that’ll be launched (or unwanted phone calls that'll be made) upon phone call end

can somebody point me in the right direction?

I do believe I’m not that smart at commands in this software (this may be the key point)

additionally:

my helmet/phone connection is Bluetooth ... but I’m not yet that far, as long as my phone doesn’t behave the way I wish on my desk

sometimes I use an external battery (my bike has no cigarette lighter plug!)

thank you in advance for your hints – ride safe

Laurent
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Ok, so you want to keep the phone alive while riding your bike. One of the key commands for that is !KEEPALIVEON

Is the phone normally in your pocket when in your bike? If yes, you want the screen off when in your pocket. Then configure

Near (CmdProximityNear = "!KEEPALIVEON;!SCREENOFF;!LOCK")

Not Near (CmdProximityNotNear = "!SCREENON;!UNLOCK;!KEEPALIVEON;")

The question of course is if the GPS is still working when the screen is off. !KEEPALIVEON will make the phone not go into a deep sleep, but your GPS program must still operate then. So that is more or less dependent of your GPS program.
[Touch Diamond, MDA Compact IV Themes and Apps] LpubV:
thank you ZuinigeRijder for your prompt answer

I keep on testing and will keep youosted on my results (or my next questions)

regards & ride safe

Laurent
[Touch Diamond, MDA Compact IV Themes and Apps] robseargeant:
I installed this last night and got really confused. I just wanted to lock it under the option that comes up from holding the end key down, and unlock via zoombar.

No matter what the WM Lock screen came up though. I will read more.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
You should disable the WM Lock screen, because TouchLockPro does not need a lock screen. It will not work together with the WM Lock screen (or another locking solution).
[Touch Diamond, MDA Compact IV Themes and Apps] johansons:
Im using the manilla TF3D, Original stock ROM. How did u do the emulating left-right key? I really like this nav sensor function.
[Touch Diamond, MDA Compact IV Themes and Apps] dagoob:
@ZuinigeRijder - Would it be possible to make a standalone app with only the SIP switching? I've only been able to find one small app that does this, but it only works with the stylus (it's not orientation/keyboard dependent). Or if anyone knows of an existing app that does this, that would be great.

@robseargeant - I didn't think the zoombar was configurable...?
[Touch Diamond, MDA Compact IV Themes and Apps] omek07:
Virtual keys i mean Soft Keys

my question is if we can fix shortcut with function of soft keys because when me divice is lock i wand to use the left softkey...

sorry for my English
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Good suggestion. I will add this on the wish list.
[Touch Diamond, MDA Compact IV Themes and Apps] akira28hk:
Thank you Zuinige
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Unfortunately I cannot unlock the softkeys and lock the rest (only on one of the devices I could not lock the soft keys, but that was not the intention).
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
I do not know of another small program. But TouchLockPro is already small. So you can just disable all the sensors (except Stylus and Keyboard slider) and locking features and only use the SIP functionality. It will be event driven and not use resources.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Ok, there is an option:

TF3DWorkaround

TF3DWorkaround (TF3DWorkaround = 1)

Enable/disable the TF3D workaround (tab right - tab left at power on and when on the TFD Home screen) for the HTC bug of capacitive sensor not always working when on home screen of TF3D. The workaround is only triggered, if the phone is still locked after 5 seconds and when the TF3D is the home foreground screen. One way or the other, TF3D Today home screen in the newer HTC ROM's (i.e. 2.03) is blocking the capacitive touches sometimes. But not always. Non TF3D users will not see any difference. If you use an older ROM (e.g. 1.93), then you can disable the workaround. If you do not like the workaround, you can disable it, but there will be a chance that the capacitive touches are not working. You need to unlock then via the other solutions (e.g. Stylus out is the quickest then). I am still searching for a better solution for the problem introduced by HTC.
[Touch Diamond, MDA Compact IV Themes and Apps] dagoob:
That sounds perfect! I didn't even think about TLP being event driven... :)
[Touch Diamond, MDA Compact IV Themes and Apps] omek07:
No No my friend i dont wand to unlock only the softkeys on the screen , i wand to fix a shortcuts of softkeys (if we can do this)
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
I do not understand what you mean with:

fix a shortcuts of softkeys

Can you elaborate on this?
[Touch Diamond, MDA Compact IV Themes and Apps] drjat:
in call tweak. HELP Please

Hi ZR

in 2.11 you fixed the issue which was discussed here

http://xdaforums.com/showpost.php?p=5341220&postcount=3110

but for some reason this is not working in current version........i had my phone in car holder, powered with charger, running tom tom, orientation=portrait...................a call came and i picked it up but then the screen did NOT stay on. i had these settings in TLP.......device=touch diamond, light sensor=default settings, stylus sensor=default settings, g sensor= default settings, nav sensor=DO NOT USE, TAPI...............use tapi=yes, unlock when connected=yes, in call tweak=yes, lock when incoming=yes, keys only=yes, light=yes. Other settings=default.

As you know that by default our touch diamonds screen turn off just after you pick a call and hence this programme has the option ( ignore first screen off=yes ) to address this issue and this has worked well when i used it in past. But now i also tried to disable the InCallTweak option in TLP and also installed TICST but still the screen kept turning off.

I have attached log file for above issue (Without TICST installed). At the same time i also feel that it would be a good idea if somehow the InCallTweak option can be completely removed from TLP so that TICST can work without any interference and is able to do the job as it should. Apologies if this sounds like a stupid idea to you. Basically what I want is for my screen to stay ON during calls When Phone Is Powered By Charger.......Even If It Is In Portrait....................kindly suggest some way
[Touch Diamond, MDA Compact IV Themes and Apps] Alkerion:
Hi!

I'm still going nuts with my HD2 who's always unlocking by itself when in my pocket.

We should all have the same issue with this phone, so I'm amazed HTC is not solving that. (do they really test their phones ???)

Issues:

A) Screen turn ON when we press any button, and don't ask me how, but the phone always find a way to unlock itself and do crazy things....

On my car with BT kit :

B) Screen turn ON on incoming call and stay Unlocked after the incoming call -> Crazy things too.

C) Screen turn ON and phone Unlock when I give a phone call -> Crazy things too.

I think the Proximity Sensor could be the answer (and probably more powerful than the light sensor that is problematic by night), but I'm unable to set TLP the way I would like it to work.

I would like the phone to always stay Locked when in the pocket or near something (I'm able to configure that behavior), but when I bring the phone out of the pocket on incoming call I would like it to unlock automatically, something I can't get to work.

May I suggest to distinguish between Incoming and on going call, that would perhaps allows for more flexible settings.

Today I've enabled Prox Sensor and disables G-Sensor (phone can unlock in pocket..) and Light Sensor (not able to unlock quickly by night (Stylus is really missing to me on HD2 :( )

Will see if it's usable the next few days.

BR

Yves