yashsingh1/xdaforums huggingface dataset:
[Touch Diamond, MDA Compact IV Themes and Apps] N3m3515:
original o2 rom 1.93 on xda diamond

everytime i get a sms or a call shell32 crashes when stylus lock is enabled.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Hmmm, I tested with only:

HKCU\Software\ZuinigeRijder\LockSettings\lockIndicator

set to 0 and this switched back to 1.1 behaviour. Did you not make a spelling error?

beep 0 - working

Rick> Ok, this will give no beeps (default)

lockIndicator 0 - not working

Rick> This should switch to 1.1 behaviour, working with me. I tested with only this setting set.

Rick> Did you not make a typing error, it must be: lockIndicator

lockTouchPanelOnly 1 - working

Rick> This does not lock the hardware keys

stylusAlwaysControl 0 - Dont Know what this does so i cant say!!

Rick> This should always lock when the stylus is in (and on battery), so there is no styluslock toggle mode. It starts also in locked mode (when stylus is in)

stylusOutInToggleTime 1000 - think so the actual value is 0x000003e8 is that correct?

Rick> This is the default decimal 1000 ms, so you can best add it as decimal.

unlockOnACPower 1 - working

Rick> This is the default behaviour

vibrate 1 - not working

Rick> Vibrate will be done only when the screen is off and the stylus is put in and it gets locked. When lockIndicator = 0, it vibrates according to the 1.1 behaviour
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Hmmm, someone has to donate me a Touch PRO :)

Maybe I can find the problem in that case :p

I have also a shell32.exe running and that does not crash on the TD.

Other ones with a TD experience this same sort of problem?

Is there someone with a Touch PRO which does not have this problem?

I do standard behaviour, so I am confused about this problem.
[Touch Diamond, MDA Compact IV Themes and Apps] Curb71:
yes, its 1.4

its been working perfectly since the reinstall this morning.
[Touch Diamond, MDA Compact IV Themes and Apps] Curb71:
just noticed it stopped working again. I took the stylus in and out within a second and cant get the icon to show up. after trying it about 10 times it works again. but then a few minutes later I got this, "StylusLock will exit due to Icon ADD: ERROR_INVALID_PARAMETER"

opened the program again and its working for now.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Hmmm, I added this sanity check, to be sure StylusLock does not freeze the device. Did you install StylusLock on the phone memory or on the internal SD card?

I think it is best installed on the phone memory, because StylusLock is small and it can always be accessed.
[Touch Diamond, MDA Compact IV Themes and Apps] N3m3515:
i am testing around with 1.4

my problem that shell32 crashes on sms is still there.

and i got a question:

when my phone is locked by styluslock and only touchpad is locked for answering calls thrue hardware buttons, my phone falls to sleep and i get a call my phone unlocks the touchpad itself.

can you look at this?
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
I made a bugfix release 1.4.1. This should solve your last problem. For the first problem I did some changes too, but I do not know if it helps.
[Touch Diamond, MDA Compact IV Themes and Apps] N3m3515:
seems to work for me.

i also testet sms without a crash. maybe thats it.

i will post in a few days if an error shows up.

edit: after a phone call and 2 test sms a shell 32 error occures and the phone restarts itself

is there a way to show up a error log?
[Touch Diamond, MDA Compact IV Themes and Apps] Curb71:
I installed it in the device.

I was sitting next to my phone when the enter button lights started goin crazy. I figured I was getting a call but instead it just restarted :confused:

when I booted back up I had a voicemail :eek: No idea if it is from your program. I highly doubt it is. Im gonna try out 1.4.1 now....
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Maybe it is the same problem as in post #130

As for now I do not have a clue for the reason.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Hmmm, I do not think so, StylusLock itself is not writing an error log.

I do not think Windows Mobile is doing that. Do others know about errors/event log in Windows Mobile?

I found this thread:

http://xdaforums.com/showthread.php?t=405635

How do you know it is a shell 32 error?

Is there an error message?

Is it auto restarting?

Also SensorLock latest version now does have a lock icon (basically the same code I have, probably inspired by me). Is the same problem occurring also with SensorLock?

Strange thing I saw, when getting a notification of a missed call, I saw that the missed call icon was overwritten with the lock indicator, where I would expect it was beside it. And when the lock indicator was removed, the missed call icon was shown again.
[Touch Diamond, MDA Compact IV Themes and Apps] N3m3515:
i will do a few tests to find out what happens.

yes there is a error message.

after the last selfrestart an a few testcalls and sms the error is gone but i try to reproduce it.
[Touch Diamond, MDA Compact IV Themes and Apps] Ddriver:
StylusLock v1.4.1 with standart registry at first page.

After 2 SMS and 1 incoming-call was the Icon out and the App StylusLock not aviable.

Also if I press the StylusLock-Icon (Startmenu) dont function.

I have after the error. (Look pic)

To able the StylusLock was obligation to make a softreset.

Greets Ddriver.
[Touch Diamond, MDA Compact IV Themes and Apps] bennec83:
I have installed at 1.4.1 and i can report that when i turn the icon off using the registry setting and it worked and so did the vibrate setting, i turned it on and it works.

but the locktouchpanelonly tweak isnt working, i have it set to 1, but sometimes when i lock the device, and put it in the sleeve, when i remove it, it is showing something other than the the home screen.

when i noticed this i locked my device and started pressing the screen and noticed that sometimes when the device had vidrated twice to show the lock is on, when i moved the manilla slider, it moved, so i pulled out the stylus and it vidrated once to show the lock was off.

so i relocked the phone, 2 x vidration, then i pressed the windows symbol and it displayed the start menu.

i tryed disabling and re-enabling styluslock, but this didnt work, i had to restart my device and it started to work again.

this has happened 2-3 times in the last 12 hours.

thanks for your help
[Touch Diamond, MDA Compact IV Themes and Apps] Curb71:
Got a new error last night with 1.4.1.

here it is.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
All thanks for the testing effort. I really want to solve the problem. Actually, I got also some lockups with version 1.4.1.

Looking at the problems, I think the problem is not directly to the notification icon, but more by the locking code of the TouchPanel (taken from SensorLock 0.2.3) . So I integrated the latest TouchPanel code of SensorLock 0.3.4 into StylusLock.

It is a long guess, but this could maybe solve the problems.

You can try version 1.5.
[Touch Diamond, MDA Compact IV Themes and Apps] Ddriver:
Downloadet and will you report tomorrow. ;-)

Thank for you for the effort.

PS: I dont now help you this: The StylusLock v1.1 function on my Diamont and on the Diamond of my friend with no problem.

I have the HTC 1.93 Rom and my friend the bepe Rom v0.97_Fixed

Greets Ddriver.
[Touch Diamond, MDA Compact IV Themes and Apps] Ddriver:
Just now I have a crash after 1 day with the v1.5 with defauld-registry.

Again after 2 SMS and 1 call is the operator-logo and also the StylusLock-Icon out and the Diamond goes freezen.

Greets Ddriver.
[Touch Diamond, MDA Compact IV Themes and Apps] diamond69:
hi there!

i use v 1.5 for 2 days now... it didnt freeze my diamond! (20 sms, lots of calls, no restarts) but i use this settings:

* lockTouchPanelOnly = 1 <-doesnt work as it shoud! it doesnt matter if i set it to 0 or 1.... everything is locked!pls fix it!

* vibrate = 1

* beep = 0

* lockIndicator = 0

* suspendOnBacklightOff = 1

* unlockOnACPower = 1

* stylusAlwaysControl = 0

* stylusOutInToggleTime = 700

my rom is aztor v7 sprintflavor, and my radio is the .05 one
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
I can also get a locked TD, when used a program and closing it and immediately lock the TD. If I wait a little longer, before locking again, it seems that the freeze does not occur.

The previous post (and version 1.1 as you indicated) indicates no problems when no lock icon is used. So there is still a (small) problem in the locking icon code. I now suspect the problem occurs because the lock icon is not done on a Windows UI thread. So now I am going to try to add/remove the lock icon on a callback thread.

For now, I advice to go to the home screen and wait a few seconds, before locking the TD. This should reduce the freezes, I suspect. In the meantime I going to make the next attempt to solve the sometimes occurring freeze problem.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
Thanks for sharing this information. Ok, so no freezes when no lock indicator is used. I will look into the problem of lockTouchPanelOnly. Apparently this bug has been introduced by integrating the last sensorlock lock code.
[Touch Diamond, MDA Compact IV Themes and Apps] bennec83:
I can confirm, i have:

lockTouchPanelOnly = 1 <-doesnt work as it shoud! it doesnt matter if i set it to 0 or 1.... everything is locked!pls fix it!

vibrate = 1

beep = 0

lockIndicator = 0

suspendOnBacklightOff = 1

unlockOnACPower = 1

stylusAlwaysControl = 0

stylusOutInToggleTime = 1000

there seems to be no crashing with indicator off, i have had many calls and txt today and everything well other than lockTouchPanelOnly

Hope this helps
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
1.5.1 Bug fix release

Version 1.5.1 is added, which should fix the TouchPanelOnly bug.

Also the lock icon is added/removed from a Window callback.

Another attempt to solve the reported crashes :confused:

Please let me know if there are problems with this version.

Thanks for testing.
[Touch Diamond, MDA Compact IV Themes and Apps] bennec83:
TouchPanel Bug fixed!! thanks alot, working great!
[Touch Diamond, MDA Compact IV Themes and Apps] Pietje_1985:
V1.5.1 not working

Goodmorning to all of you...:D

I have to tell you.. v1.5.1 is not working for me at all.....I tried to lock the phone after a soft reset, when I installed 1.5.1 but it just doesn't lock....:( also after a while (2 min or so) it doesn't lock as well...

I think I will stick with v 1.5 and I hope i'm not the only one with this problem.....

Thanxxx ne ways ZuinigeRijder....

Greetzz Jeroen
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
A pity it is not working for you.

I triet with Touchflo3D and with windows today screen, both work at my side.

More people where it is not working or it is working?
[Touch Diamond, MDA Compact IV Themes and Apps] Ddriver:
Till now is v1.5.1 working for me. :-)

Only the Icon I miss. ;-) But its ok.

Greets Ddriver
[Touch Diamond, MDA Compact IV Themes and Apps] fklai13:
Confuse

Hi ZuinigeRijder,

I am using Touch Pro. I am facing a problem. I have tried v1.1 but nothing happen. Do I need to have .net 3.5 installed in order for me to install the cab file properly? Then I tried the newest version, v1.5.1, it is still not working eventhough i installed .net 3.5 (cab format). There are 3 files downloaded: cab file, sources file & reg file, i installed it using the cab file, failed to work. Then I saw a file name 'ezsetup.exe' in the sources file, when I try to install, it does not allow me to install (either installed .net 3.5 or not)

I am quite new in using PPC, please correct me or advice me.

I desperately wanted to try StylusLock because S2U2, Throttle, Organic etc are all battery draining software and not really practical.

Thank you in advance.

Desperado

fklai13
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
I switched back to version 1.5, but with the "lockTouchPanelOnly = 1" bug solved. For now I am out of ideas how to solve the sometimes occurring lockup. I now going to concentrate on capacitiveFingerLock (new app which uses the capacative hardware area for additional locking/unlocking), which I want to combine with StylusLock. Maybe I am going to write this in managed C#.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
You do not need .net 3.5 for using version 1.1 (as I am aware of).

You must copy the styluslock.1.1.cab on the Touch Pro SD card (using Active Sync or Disk Drive mode). Thereafter, unplug the USB cable and go with the explorer on your Touch Pro to the location where you stored the cab file. Just double click on it, and it will be installed. Thereafter soft reset your Touch Pro.

Every time your Touch Pro is reset or booted, you must enable the StylusLock mode, by removing and inserting the Stylus within 3 seconds. You will feel the vibration.

Hope this helps.
[Touch Diamond, MDA Compact IV Themes and Apps] Pietje_1985:
Good thinking man! With v 1.5.2 my Styluslock is working again....:D Sweet!:D

Sounds good your idea....is it difficult to make such a program?? i'm just curious you know...:p

ne ways have a nice evening and i'll keep you updated as soon as I notify something...:P

1 thing: about the settings you can change in the registry...is it right that my registy is empy?? do you have to add those DWORD settings yourself??

I'm wondering.....

Greetzz Jeroen
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
I had a basic capacativeFingerLock working in C++. But I am normally programming in C# (although not in Windows Mobile). So I decided to rewrite it in C#. And thereafter I want to add the StylusLock code in C#. I hope that the sometimes occurring freezing of StylusLock is prevented by this new approach too.

You only need to set the settings you want to overrule. If not defined in the registry, it will just use the builtin defaults. This way it is clearer which settings you did overrule.
[Touch Diamond, MDA Compact IV Themes and Apps] vakata:
No crashes with lockIndicator OFF :) Super!

I have one problem though.

I use the lockTouchPanelOnly = 1. I press the power button to suspend the phone, and when I press the power button again to use the phone, sometimes the touch screen is active - is this a feature or a bug?
[Touch Diamond, MDA Compact IV Themes and Apps] bennec83:
I have this, i have played with it for a day or 2, what seems to happen is, when you suspend the device, if you press the power button again within a few seconds (2-3 i think) the device is unlocked.

but if you suspend you device and turn it on again after 10 seconds the screen will be locked again.

I dont know if this is a feature or a bug, but it doesnt really cause problems but it shouldnt happen.

@ZuinigeRijder

Is there a way to make the locktouchpanelonly be locked all the time unless the stylus is removed to turn off the lock?

also i have another feature that i think would be good, in the "remove programs" list would it be possible to display the version of styluslock that is installed?

thanks for your help and developement
[Touch Diamond, MDA Compact IV Themes and Apps] Pietje_1985:
version number in add/remove programs

That's strange?? on my diamond I can see which version is installed??:confused:

It should be mentioned...
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
CapacitiveFingerLock

I have written a Proof of Concept of CapacitiveFingerLock. I want to combine this with StylusLock.
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
I am reacting on PBT_RESUME messages from the phone. I suspect that when it is off too short, the PBT_RESUME will not be fired. But the touchpanel is unlocked, because the power is on again.

Only locking the TouchPanel is not idiot proof, because when the phone is put on (or a call comes in), the TouchPanel is automatically powered again. In the PBT_RESUME callback, I disable the TouchPanel again, but as I said, there is a (very small) chance in those milliseconds something is pressed.
[Touch Diamond, MDA Compact IV Themes and Apps] drvdijk:
Yo ZuinigeRijder! You're right about the PBT_RESUME message, it won't fire. You have to not watch the messages that indicate that the phone resumes, but when it goes to sleep. Look at the power broadcasts.

Look here at lines 204-225 :)
[Touch Diamond, MDA Compact IV Themes and Apps] fklai13:
Still not working

Hi to all,

I have install v1.5.2 again like normal (not with .net3.5), i only able to see the icon at the program section and when i do soft reset, I still can't use it, no function at all....wondering what happen to my Touch Pro. When i click the icon, windows appear and telling me "Styluslock is enabled, do you want to disabled now?"

Really frustrated, why my Touch Pro not working....

Beg for experts to advice...

Desperado,

fklai13
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
StylusLock is automatically started when the Touch Pro is started. It is running silently in the background, till you enable "StylusLock mode". You can enable "StylusLock mode" by removing the stylus and putting back the stylus in within 1 second (version 1.5.2). A StylusLock icon appears at the top of the screen, when "StylusLock mode" is enabled. Then also the TouchPanel and hardware keys are disabled. When you take out the Stylus, then it will automatically unlock (or when on AC/USB power).

If you want the "StylusLock mode" disabled again, because you do not need it to be locked or do not want to operate via the Stylus, just toggle the "StylusLock mode" with taking the stylus out/in within 1 second.

Does the StylusLock mode not toggle?

Does the lock icon not appear at the top of the TouchPanel?
[Touch Diamond, MDA Compact IV Themes and Apps] Ddriver:
On my Diamond is with the v1.5.2 no Icon to see.

The rest function without any problem. :-)

Thanks for this nice app and hope, you make more so good apps.

Greets Ddriver.
[Touch Diamond, MDA Compact IV Themes and Apps] LewisBrooks:
Evening all, I am having problems with the software. It loads fine but does not lock when the stylus. Any ideas??
[Touch Diamond, MDA Compact IV Themes and Apps] fklai13:
Nothing happen

The styluslock mode does not toggle. After soft reset, when stylus took out, nothing happen, even no icon appear...
[Touch Diamond, MDA Compact IV Themes and Apps] 4D3:
Thanks alot for this,

just to report, i have no problems with this working other than if you lock the device, then turn the power off to the screen, then turn it on again immediately the touchpanel is not locked.

is fine if it is left for a few seconds tho!!

thanks muchly
[Touch Diamond, MDA Compact IV Themes and Apps] nicolas.k:
Bug of loading Registries on 1.5.2

Hi everybody,

I seem that it's not work correctly to install 1.5.2 because I found one value (a fisrt line only : lockTouchPanelOnly).

I stimulate on manual setting and I export my resgistry database, I find a difference on some values in Hexa :

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\ZuinigeRijder\LockSettings]

"stylusOutInToggleTime"=dword:000003E8

"stylusAlwaysControl"=dword:00000000

"unlockOnACPower"=dword:00000001

"suspendOnBacklightOff"=dword:00000000

"lockIndicator"=dword:00000001

"beep"=dword:00000001

"vibrate"=dword:00000001

"lockTouchPanelOnly"=dword:00000000

I hope that my solution help you. (sorry my language in french)

See you.

Nicolas
[Touch Diamond, MDA Compact IV Themes and Apps] borisku:
With my TP SPL Olinex190, Radio 1.02.25.28, ROM 1.90.407.4 Ger nothing goes with styluslock. the Software doesnt react. the Only reaction i can get is from tapping the icon in Progs is a question like "Stylus lock is currently enabeld. Disable it?" There is no reaction like diabeling the touchscreen or anything else. Simply nothing happens, even after i importet and modified the registry settings. Sorry, im ashamed for my very bad english ... but i hope u understand me

Greetings fom Germany

Boris
[Touch Diamond, MDA Compact IV Themes and Apps] borisku:
With my TP SPL Olinex190, Radio 1.02.25.28, ROM 1.90.407.4 Ger nothing goes with styluslock. the Software doesnt react. the Only reaction i can get is from tapping the icon in Progs is a question like "Stylus lock is currently enabeld. Disable it?" There is no reaction like disabeling the touchscreen or anything else. Simply nothing happens, even after i importet and modified the registry settings. Sorry, im ashamed for my very bad english ... but i hope u understand me

Greetings fom Germany

Boris
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
More questions like this has been asked.

The only thing I can imagine, is that the Stylus Out/In within 1 second is not working (because this activates StylusLock mode). StylusLock starts initially inactive, till the Stylus Out/In within 1 second toggles the mode.

Did you try taking the Stylus Out/In within 1 second?
[Touch Diamond, MDA Compact IV Themes and Apps] borisku:
I tried nearly everything, 1, 3 and more seconds, 2 or 3 Softresets... nada, nothing, nichts... I ve read the whole threat and i know that there are more people like me with the same difficulties, but i want you to know my hardware versions, maybe it depends on the ROM Version...

Thanks for your work...

Boris

PS What are the needed settings in the registry for the stylus? And where do i find them?
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
StylusLock monitors the following Registry value:

HKEY_CURRENT_USER/ControlPanel/Keybd/StylusOutStatus

0 = stylus IN

1 = stylus OUT

Maybe you can check with a registry editor if the values are filled correctly.
[Touch Diamond, MDA Compact IV Themes and Apps] borisku:
Ive controlled with SKtools Registry Editor: Everything is as you said, settings are changed if stylus is pulled out. I tried Version 1.1 as somebody told here, that Touch Pro runs only with this version, but even this one fails with my device...

Greetings

Boris
[Touch Diamond, MDA Compact IV Themes and Apps] 4D3:
IDEA - A Good One IMO

Hi,

I have been using this without any problems in the slightest since v1.5.2 was released, but i was in the gym today and was running and trying to lock my device after a call.

I noticed that it is pretty hard to do this, then while driving (i know im not ment to use my phone while driving but it was an emergency) i was trying to relock the device again, difficult while at least one hand is occupied.

I was wondering if there is anyway to have a shortcut in the start menu or for manilla's "programs" tab to set the device into locked state?

Just a thought, i would find this very useful, would anyone else?
[Touch Diamond, MDA Compact IV Themes and Apps] borisku:
This would be a good thing for me, too!
[Touch Diamond, MDA Compact IV Themes and Apps] ZuinigeRijder:
I am busy with rewriting StylusLock in C#, using .NET Framework 2.0.

In that I want to have several enhancements:

1) Utility form (available when unlocked via notification icon) having the following features:

* Lock (and go to to suspend when the backlight goes off)

* Lock and go to suspend immediately

* Soft reset

* Power off

* shortcut to Configuration form

2) Configuration form (so you can change the settings more easily, no registry changes needed anymore)

3) Locked form (available just after power on, where you can unlock when tapping gently 3 times on the capacititve hardware panel, so this can be done one-handed)

For the last one, see: CapacativeFingerUnLock

But this will take some time, because I start from scratch and while doing I am better learning Windows Mobile programming :)
[Touch Diamond, MDA Compact IV Themes and Apps] 4D3:
This sounds very promising!! i cannot wait.

i salute your forward thinking!
[Touch Diamond, MDA Compact IV Themes and Apps] Curb71:
Hows it coming along? I love the direction you are going with this.:D