yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] ZuinigeRijder:
Sorry to hear about your computer problems. Hope you will be soon fully up and running again.

The disadvantage of the windows lock, is that it goes automatically to the Home screen. Or is that not the case?

Do you also unlock "automatically" via keystrokes?

Would be great if you can share this part of the source code :rolleyes:

My locking code is based on disabling the power of the TouchPanel:

HMODULE m_CoreDLL = LoadLibrary(L"coredll.dll");

SetKMode_tm_fpSetKMode = (SetKMode_t)GetProcAddress(m_CoreDLL, L"SetKMode");

HMODULE m_TouchDLL = LoadLibrary(L"touch.dll");

TouchPanelPowerHandler_t m_fpTouchPanelPowerHandler = (TouchPanelPowerHandler_t)GetProcAddress(m_TouchDLL, L"TouchPanelPowerHandler");

BOOL bOldMode = m_fpSetKMode(TRUE);

m_fpTouchPanelPowerHandler(disable ? TRUE : FALSE);

m_fpSetKMode(bOldMode);

But it does not appear reliable :mad:
[Windows Mobile Apps and Games] Micht:
Hi chrisstavrou

I've managed to reproduce and capture the g-alarm .net error when auto-lock is launched.

I've attached a screenshot of the error.

I don't know if you could do or find something but the error appears with auto-lock v4.04 and g-alarm v0.9.6.3.

Sometimes, when the screen is locked and off, when the alarm starts, it hangs.

Hope that you can recover your data.

++

Micht
[Windows Mobile Apps and Games] lamberto1:
Screen off only

Hi Chris,

is it possible to have SCREEN OFF option, as Power off we already have in -PowerOffWhenLockedSecs=XXXYYYKKK or in other location?

In my htc P3600 Trinity, I have the Resco Audio Recorder software that auto records the phone Calls in background.

Well, if we power off the device, it stops the recording while with screen off only, the software works well.

The aim of my request is the battery saving of course, because with the device locked only(and screen lighted), everything is ok.

Thanks.

Lamberto
[Windows Mobile Apps and Games] vangrieg:
Same happening here on Touch HD and 4.04 - unbelievably annoying stuff! Hope this can be sorted out easily, otherwise this is an excellent application despite minor aesthetic rough edges.
[Windows Mobile Apps and Games] camro:
chris,

if you make a new version.

can you implement also option for:

if you plugin the power cable, then unlock.

so there should be an option for:

"IfPowercable is connected - disable locking" "YES" or "NO".

This would help you stay in lock mode.

ex: in this moment if i connect the USB cable to my notebook, active sync try to sync, but the phone switch after 60sec to switch off the phone and so the active sync think the phone is disconnected.

if you can implement this new option, then the phone should unlock on connect to power supply.

thanks cu camel
[Windows Mobile Apps and Games] vangrieg:
Just realized that there is a shortcoming in the program in that it doesn't lock the device when the screen is turned off. In fact, this is the only case when I need the auto lock feature. This is needed when listening to music - the device doesn't go to standby.
[Windows Mobile Apps and Games] leen15:
Do you know how can be modify the gray background for when unlock? :confused:
[Windows Mobile Apps and Games] rucreek:
Hi all,

Do somebody know how "Lock fully the device" Exclude these keys work? I realized from Utility that my soft button code is 070. I entered these number in the field, but it doesn't work. In lock mode these button remains sleep.

Can somebody explain how to get work this function?
[Windows Mobile Apps and Games] xerux:
This is wonderful tool!

I have idea for setup. How about this option?

"UnLock During Call" (> In Call Locking)

Frankly, I need this function. ;)
[Windows Mobile Apps and Games] rucreek:
Unblock function is hanging up for 5 seconds then device is entering from sleep mode.

How to eliminate this delay?
[Windows Mobile Apps and Games] camro:
@chris

do you know which programm do you call for locking ?

i have here a image, that is almost perfect, but the lock doesn't work, and so your tool also not working on that image.

do you have an idea - which dll's or exe is involved to use the internal lock programm.

or can i use a seperate exe lock prgramm ?

i don't want to use another image, and nowbody knows which api the internal lock would call.

do you have anidea ? maybe i have only to change some dll's inside ...

thanks - cu camel
[Windows Mobile Apps and Games] chrisstavrou:
Version 4.05

Hi all,

finally PC is restored ..

I have updated the software with some fixes so can you please use this one (remember to copy all the subprograms as well) and let me know if the issues still appear.

As for the questions:

Unfortunately the unlocking is not done through an API but by simulating keystrokes. During a call the dialer comes up and it intercepts the keystrokes so automatic unlock while device is ringing can not be done with this method. I hope there will be presented an API which can do that.

For locking, the program is sending simply VK_F22 as keystroker:

keybd_event(VK_F22,0,KEYEVENTF_SILENT,0);

keybd_event(VK_F22,0,KEYEVENTF_SILENT | KEYEVENTF_KEYUP,0);

no special API is used (unfortunately again).

I will check it out and if i find the way will for sure add it.

I will add this one, assuming if i figure out how to determinate if async is connected.

Cheers

Chris
[Windows Mobile Apps and Games] rucreek:
Thank you Chris!

Please somebody explain how to "Lock fully the device" "Exclude these keys work"?

I entered 070 in this field, but nothing seems to work.
[Windows Mobile Apps and Games] xerux:
How could I set ringing off (not hang up) when the device is locked?

Tip plz...
[Windows Mobile Apps and Games] itwasntme187:
Hi guys,

I'm probably going to get hammered for asking this but here i go....

I know this is cheeky but...

Can you tell me where or how to create the reg hack to the flashing backlight when the phone rings?

i really like the idea of this app and think its great but i don't really use the phone lock much so i don't want to install the app onto my phone just yet.

Thanks in advance guys
[Windows Mobile Apps and Games] smotrs:
heh, I'm subscribing just to see if you get hammered. :) :D
[Windows Mobile Apps and Games] chrisstavrou:
I am sure who ever came up with creating viruses had no 'life' ... Running under ubuntu now ..

Anyway,

Merry Xmas and let the 'hammering' begin :)

- The registry hack for flashing is not straight forward (at least this is what i found out). The value of the key HCU\\ControlPanel\\BackLight\\LockLevel\\LockLevel if set to 1/0 while unlocked turns on/off the backlight. The values are reversed 0/1 to turn on/off while the device is locked.

This however, seems to create a problem with the timeout value set to turn off automatically when running on battery power (i am still to figure out what is the actual problem).

I am planning to split this app into smaller ones for certain functionality (including this one) so that anyone can choose the part that suits more to their needs.

I hope i can set a vmware image to run windows in these few days so i can start doing changes as mentioned.

Cheers

Chris
[Windows Mobile Apps and Games] Micht:
Hi chriss

Any update on your computer problems ?

I've just switched to WinMobile 6.1 (standard HTC ROM) and a new small problem occurs.

When my device screen is switched off (black) and I press the power button, the screen isn't fully responsive.

I'm able to press the "Unlock" button but the slide feature isn't working. I've to wait maybe 5 seconde before sliding.

Any hint ?

++

Micht
[Windows Mobile Apps and Games] leen15:
because che lock start when you press power on, and not when you switched off...

I did yet ask too to resolve... :(
[Windows Mobile Apps and Games] chrisstavrou:
Hi Micht,

finally my system is up and running.

It seems you are referring to is caused by lock being set, at the same time as the device is going to sleep.

I have prepared a different version which among other changes/fixes it includes the change.

- lock is set after the device awakes.

If you want, please give it a try the attached and let me know your opinion.

I am using it with the updated 6.1 from HTC and what happens is:

- If the device is not locked before it went to sleep, then after awaking it takes a second or two to be relocked but the screen is responsive.

- If the device is locked before it went to sleep, then after awaking it continues being locked but the screen is responsive.

Installation

a. Unzip the files attached to any new directory you want on your device.

b. Run the csdevctrlsetup.exe and then choose save so that the keys are updated.

c. Run the csdevctrl.exe

I am testing it a bit more before i release it officially.

(i am also trying an option to turn off the video and not go to sleep).

Anyone willing to test it please use it and let me know your comments.

Cheers

Chris
[Windows Mobile Apps and Games] leen15:
Sorry but with this modify if I Lock the phone by pressing power button and after I press any button for awakes the screen the pda is not lock and responding to the button function... :confused:

The problem was that the lock not working before sleep but only after and that cause the flash and not responding when power on... :(
[Windows Mobile Apps and Games] leen15:
I try this version and not working for me.

The screen lock however if i normal use the pda..

I unlock, use the pda and after the right time the pda lock when i'm using it!

I attach a video that show some problems(version 3.30 because the last not working for the reason up):

- the delay and flash when power on and the phone is already lock ( if i awake the pda more time later the delay is very longer..)

- the problem when i extract the stylus

I have also the problem that if the phone is not lock and i press power off than if i press (for example) the call button the pda go to dialer and then lock....

http://www.megaupload.com/it/?d=12H2D5RQ

Thanks for your work and sorry for my english. I hope you resolve this problems :)
[Windows Mobile Apps and Games] Aussi:
Hi all I tried to read the topic a bit but I couldnt find it.

There is a option which says:

'Do not lock if running'

So my question is how can I not let it lock my devices when its running tomtom navigator?

Edit:

I've tried to put tomtom navigator.exe , tomtomnavigator.exe to it and even the full path but it doesnt seem to work.

Any one knows what i'm doing wrong?

using the latest version
[Windows Mobile Apps and Games] Aussi:
no one that can help me ?
[Windows Mobile Apps and Games] BrAtKo:
SMS Delivery Report

Hello, I'm runnin' 5.0 beta and I have found this problem on me. When I receive SMS delivery report and I click Notification (button or tap) then device is locked. I cannot that delete or dismiss this notification until I terminate csdevctrl. Any idea ?
[Windows Mobile Apps and Games] chrisstavrou:
V.5.00 is out

Hi all,

after a long absence, i finally managed to find time to continue working on this proggy.

I have released V.5.00 which basically has:

- Fix for the lock after awaking which started to mulfunction with the new 6.1

@Micht , @leen15

This release it should fix the problem you are facing with the power button and lock (long delay to continue).

- New feature to turn off the display (does not suspend the device) and perform this optionally for a list of programs only.

@Aussi

The list of the programs needs to include always a ';' after the executable name (without the full path, just the executable filename), for example:

Miomap.exe;iexplore.exe;

Its case insensitive.

Please let me know if you have any probs/comments.

Chris
[Windows Mobile Apps and Games] leen15:
Hi, I tried this new version, now if screen is off and i press a button the screen is lock, good work. ;)

I have however the same problems of my last video, nothing change for it, same screen flash/delay problem and same problem when i extract stylus..

Thanks! :)
[Windows Mobile Apps and Games] vhendsume:
v5 - Power off automatically

I tried v5 on my wm6.1 phone, but had to revert to 4.05.

This was what happened. I powered off my phone. Then, I pressed the button to power on the phone and immediately the phone powered off on its own. I tried this a few times, the problem repeats itself. Unfortunately, the testing also messed up my storage card and I had to reformat (guess it's because the phone tries to read the card while auto lock powers off the phone).

I didn't change the default setting of the files, so why does it power off the phone automatically? I had the lag problem with v4.05, but at least it doesn't have this strange behaviour. Any ideas?
[Windows Mobile Apps and Games] chrisstavrou:
Hi all,

i have updated the program based on your suggestions:

- I have tried to implement an 'In-Call' locking (i really loved this idea as it is so useful).

- Removed the dependency on dimming (made people wonder what that is :)

Anyway give it a try if you want and let me know what you think.

See first post for more information.
[Windows Mobile Apps and Games] yesod7:
I was REALLY hoping, but it still does not lock the keys or scroll wheel during a call.
[Windows Mobile Apps and Games] chrisstavrou:
hmm, seems to be working on mine.

Lets see:

- Did you set the registry keys ??

LockDuringCall=1

LockDeviceDuringCall=1

After setting them, the program needs to be restarted so rerun it to stop itself and then run it once again.

What happens on mine:

- I press the green button

- Get the dialer up, dial a number (Up to this point it does not lock).

- As soon as it gets the line then it locks (with 1 second delay).

- The lock is complete (including any key i press).

I spotted a bug where the above sequence if repeated it fails, i found the reason and am fixing it now.

Can you see if you follow the steps above if it works as described ?
[Windows Mobile Apps and Games] chrisstavrou:
I fixed the In-Call locking part and also made the locking to be full even without having a call in progress.
[Windows Mobile Apps and Games] yesod7:
Awesome!!

It works, and works perfectly! I am SO HAPPY! I can't tell you how long I've been looking for this feature. Well, I could tell you, but it wouldn't sound very impressive; let's just say "for two-thirds of the time I have had the phone." Thanks Again!
[Windows Mobile Apps and Games] yesod7:
I forgot to thank you also for your "How To" for SPB Mobile Shell. I wish I could express how great this is for me; I've had it on my mental checklist for a long time, and it's really wonderful to have it resolved.:D:D:D
[Windows Mobile Apps and Games] flippy:
Fantastic app :) There is getting to be quite a few options now... maby somebody could make a settings app(gui)???
[Windows Mobile Apps and Games] tweakmy:
how do you add a screensaver 2 this

can somebody show me how you can integrate the screen saver into this? is it possible
[Windows Mobile Apps and Games] yesod7:
search for S2U2 (Slide 2 Unlock,) that's about as "screensaver" as it gets!
[Windows Mobile Apps and Games] chrisstavrou:
Thats good news yesod7, am glad you found it useful.

I am working on creating the setup GUI.

tweakmy,

i am not sure what you want actually, if you could describe it to me may be i could help more.
[Windows Mobile Apps and Games] tweakmy:
i m looking for screensaver with clock and comes with pin lock...
[Windows Mobile Apps and Games] chrisstavrou:
Created a very basic setup program so no need to keep on changing the registry keys.

Also, as i really like SPB Shell and my carrier is quite long overwriting the Battery icon, i have change the program to trim the carrier name to a small number of chars.

Using the same concept, i have added an option to display the status of Bluetooth switching between carrier name and bluetooth status (this way i do not have to wait for the blue light to come up to realize that the bluetooth is on).

I am trying to see how i can also make the locking using a kind of PIN as requested.

Cheers

Chris
[Windows Mobile Apps and Games] tweakmy:
hi there,

i m also quite interested to developed this myself. I do hv some basic in vb,net tough. actually the pin has been already incorporated for wm6. it s just that when u powered on ur window, u would get the unlock pin sceen instead of the any screen saver. i tried already with spb time....no help at all.

my intention is to build a screen that overlap the unlock pin screen.meaning to say the screen saver ll be disabled when it is touch by stylus and brings the unlock pin screen into action.

i could consider new app to incorporate the pin lock and screen saver as a combo.

detail of the screen saver would be:

batt status

clock

missed call or sms notification
[Windows Mobile Apps and Games] gepol:
Excellent, thanks :)
[Windows Mobile Apps and Games] yesod7:
CSDEVCTRL and TomTom

With CSDEVCTRL, I have found that it seems to treat TomTom is if it were the phone operation. That is to say, it locks everything after five seconds when TomTom is on, and continues this behavior until I turn one or the other off. Any ideas?
[Windows Mobile Apps and Games] gepol:
I also found out that at times, not always though, the phone gets completely locked, that I cannot answer any calls. I tried several settings but to no avail. I needed to soft reset the device for it to work properly again, until it appears again.
[Windows Mobile Apps and Games] chrisstavrou:
Txn for the comments,

i am working on an update to fix this problems.

The main reason is that there is no official API to hook on the screen/keyboard to use it for timeout and the one i am using has problems.

May be i will switch it back to using the backlight state instead.
[Windows Mobile Apps and Games] man2003:
Thanks athanks thans thanks... I really do not know how to thank you for this tool... I've been looking for it long time... You are the man...
[Windows Mobile Apps and Games] man2003:
This is a gift for you... CAB file which will install the tool into the device and put two shortcuts into Programs...

Do you need a file in the Startup folder?
[Windows Mobile Apps and Games] abdelrahim:
Thanks alot ....will definitely try it ....
[Windows Mobile Apps and Games] chrisstavrou:
Reallys sorry for this mess it created.

It seems some kind of setting starts this strange behaviour.

If you can export the key

HKEY_LOCAL_MACHINE\Software\CSDevCtrl

to a file then i will be able to see what was wrong.
[Windows Mobile Apps and Games] cchris81:
First off, Thanks so much for this program, I have been looking for this for some time,as i got sick of holding the end key on my touch pro to lock the phone (no registry edit for auto lock like on the gsm version)

I tried to read this thread but may have missed/skipped over it, but, this program locks my phone when the screen dims, (real annoying when I'm using opera) is there a way to set it to not do this, and just lock when I turn it off??? I've been playing with the settings a bit, but haven't found anything, or do I have to set my dim and screen off settings in the power options of the device?? I do have it set to only lock on the today screen but it still locks in opera, and other places.

Or set it to only lock after a minute of non use, but it doesn't work when the phone is off.

I really like the program and this is by far the closest I've found to doing what I want, but i simply want it to do one thing, autolock when I turn my phone off,

Also FYI, bluetooth will randomly turn itself on, and i'm running your newest version.
[Windows Mobile Apps and Games] vadjka:
A problem with backlite!!!

Hi, sir!

Nice program. Simple and rich functionality.

But I found a problem.

When it is work it's changing the installed parameter in HTC settings backlite switching off to 10 sec switching by itself. Instead of my changing it before. Realy I am finding the check-box "checked" and param 10 sec after the program first time lock the device after the I have changed this settings in HTC setting tab.

After I have terminated the program this problem has dissappied.

My device is HTC TyTN II.

Thank you for the answer.
[Windows Mobile Apps and Games] Aussi:
Hi chris,

Thanks for the response.

I tried what you said. And it worked!

Love your program !
[Windows Mobile Apps and Games] BrAtKo:
The problem still persist

Hello there I would like to inform that problem (if it is problem) still persist even in 5 final version. The program is very usefull and I like it much.
[Windows Mobile Apps and Games] leen15:
I've this problem too.. also the phone often lock itself when i use it.. return to 3.30 version... :(
[Windows Mobile Apps and Games] chrisstavrou:
@ALL

Well, first sorry for this v.5 release to all, i had to do a critical change to stop that delay and from what it seems i messed up the rest functionality.

I am fixing them as i am testing on my PPC, hopefully i will finish in the next few weeks.

@cchris

With v.5, the setup has changed the default settings (actually it enables by default lots of the features).

So can you please run the setup program and unset all options (uncheck them or set them to zeros depending on the option)

Then to simply lock after awake check:

- Lock After Device Wakes

- Lock Fully The Device

Hope it works for you
[Windows Mobile Apps and Games] Aussi:
I have the same problem.

My device now dims in 10 secs. And when is dims the device also locks.

That's quiet annoying hope you can fix it ! thx !!
[Windows Mobile Apps and Games] Aussi:
I also saw that when I'm getting a call. The phone is locked :\ I thought that did happend in the version before? And I also can't unlock it when getting a call :(
[Windows Mobile Apps and Games] cchris81:
This is what I did. I like my dim backlight after 10 seconds, but after it dims, then i go to use it it locks. Works how I want it if I uncheck the turn off backlight setting off in windows, I gladly give that up for this program to work. Thanks again for the hard work.
[Windows Mobile Apps and Games] Aussi:
No one has a problem with answering the phone while using autolock?

edit:

I now changed a setting and now the device doesnt lock when it dims the light :D

I think it was 'Turn on backlight if locked Secs' it was set for a few secs on my device so I set to '0' , so that it will be ignored

Now I still need to fix my phone answering , gonna check it out ;)
[Windows Mobile Apps and Games] leen15:
I answer with hardware button and no problem.. ;)
[Windows Mobile Apps and Games] Aussi:
Tried with the hardware buttons but also that doesnt work.

I sure hope you can fix this :D
[Windows Mobile Apps and Games] lamberto1:
Editing of a PDA Shortcut Target

Hi all,

in the first page of the thread, we read:

To autostart after softreset:

> Create a shortcut of the csdevctrl.exe and add in the target after the executable name the word -SHORTCUT.

> Copy the shortcut to /Windows/StartUp folder.

The program will start with a delay of 5 seconds when executed as above.

Well, I tried it but I cannot edit the shortcut target (with PDA or PC connected with ActiveSync).

What must I do for edit a shortcut target in a PDA ?

Other question, which is the purpose of the 5 seconds delay, now I am using a normal shortcut of CSDEVCTRL.exe in Startup foolder and it seems work OK.

Thanks,

Lamberto
[Windows Mobile Apps and Games] Aussi:
Any update in progress :D ?
[Windows Mobile Apps and Games] chrisstavrou:
@lamberto1

The 5 sec delay is not visible and as long as you started it through a shortcut it should solve the problem it was facing (not to read the registry when resetting)

@Aussi

Code has been almost rewritten as i realized that too many patches were being added causing conflict between them. Also i am using the latest 6.1 so i have adjusted it accordingly.

I am now testing it and i should have it released by this saturday afternoon.

Thanks for your patience :)
[Windows Mobile Apps and Games] Aussi:
Alright than very nice !

its worth the waiting ;)