Related
Does anyone know how to programmatically enable the "Button Lock" function on the HTC devices? It's obviously not a registry key, so I assume there's some kind of (HTC) API function used to accomplish it :?:
maybe capturing and handling the event would be the way to go
i would asume that the hardware buttons throw events like most other things in windows
try looking into it
I'm not sure I understand what you're meaning by "capturing and handling the event"? There's no event to capture, unless you're suggesting I should "emulate" a couple of UI keypress-events which changes this setting. But that kind of implemenations usually aren't very stable.
It seems like quite of few device configuration settings isn't stored (or is visible) in either registry or filesystem. Is there some kind of non-visible configuraton hive available on these devices?
try reading this
http://www.pocketpcdn.com/forum/viewtopic.php?t=1966
you can prob find more using this search
http://www.google.dk/search?num=20&...G=Søg&meta=lr=lang_da|lang_en|lang_no|lang_sv
Ok, now I understand why you're talking about events. But the "Button Lock" setting isn't set by a hardware button. Its set from a "control panel applet", which got two alternatives
"When device is off:
( ) Lock all button except Power button
(*) Do not lock button"
Where the latter is the default after a cold reboot. Settings like these are not stored in registry, and I havent found an API for setting them either..
well the thing i was talking about was when you said program
i talked about one could write a program capturing all the buttons and only redirect the power button and leave the other event hanging
but i would asume that in the sdk there would be a flag which indicated if the the buttonlock was active
where i save if it is i'm not sure but it sure keep it on after a softreset so it cant be in active mem
Wille, did you ever work this one out? It's another of the many things I'd like to adjust programmatically.
have you looked in the stk ?
it should contain all the function calls that makes a pda work
changing something in the reg and changing sometime from a program are 2 different things
theora said:
Wille, did you ever work this one out? It's another of the many things I'd like to adjust programmatically.
Click to expand...
Click to collapse
No, unfortunately I didn't. Its not possible from an official standpoint since it seems to be a vendor specific implementation. The setting isn't stored in the registry or inside the standard file system.
You can try if Mort can help, he has made MortSaver, which shuts off the screen and buttons to act as buttonlock and screensaver in one. Perhaps he can help? Right now you can find him in the thread on MortRing, or through his website www.sto-helit.de. Or you can PM him of course.
I just handle the button events in MortSaver. Nothing special there...
wille said:
Does anyone know how to programmatically enable the "Button Lock" function on the HTC devices? It's obviously not a registry key, so I assume there's some kind of (HTC) API function used to accomplish it :?:
Click to expand...
Click to collapse
Try some reversing on \windows\buttonlock.exe and you'll get what u want
I've seen it's possible to set through a KernelIoControl call, but I haven't got enough debugging/re experience to determine the required function parameters.
(are there any in-memory debuggers like SoftIce available for these devices/Windows Mobile?)
As far as I know the best debugger right now is the free embedded visual tools from Microsoft.
There is nothing even close to SICE for CE.
However, IDA Pro, even though a disassembler and not a debugger, is quite powerful and usually does the trick.
Button Lock set/enable
I am also looking for a program/setting to turn on the button lock. I found this in another forum on xda-developers.com through a google search. There is a file to download but when executed on the PPC it gives an error Setup Failed "The file "\temp\SetButtonLock.exe" is not a valid Windows CE Setup file." I am not a programmer but I manage over 60 of these devices right now soon to be hundreds. Any info is appreciated.
http://forum.xda-developers.com/viewtopic.php?p=112394
This device is known by several names:
Audiovox PPC-6600
Audiovox PPC-6601
XdaIII (XDAIIi)
XdaIIs - O2
MdaIII (T-Mobile)
SPV M2000
i-mate PDA2k (MOST POPULAR NAME)
i-mate Pocket PC Phone 2
Qtek 9090
Siemens SX66 (Cingular)
HTC Blue Angel
Unicom CU928 (CDMA based China)
XV6600WOC (Verizon)
wille said:
Does anyone know how to programmatically enable the "Button Lock" function on the HTC devices? It's obviously not a registry key, so I assume there's some kind of (HTC) API function used to accomplish it :?:
Click to expand...
Click to collapse
Hi Wille,
This is probably too late to help, but I came across your post while looking for a solution. I ended up having to reverse engineer it myself...
You can use KernelIoControl(...) to set the button lock:
BOOL success = KernelIoControl(0x01012A00, &in, sizeof(in), NULL, 0, NULL);
struct button_lock_in
{
DWORD set_or_get;
DWORD set_value;
};
If set_or_get is 0x00000000, the set_value must be 0x00000000 to disable key lock and 0x00000001 to enable key lock.
If set_or_get is 0x00000001, set_value should be 0x00000000 (but it may be ignored). You then pass in a pointer to a DWORD in lpOutBuf and set nOutBufSize to sizeof(DWORD) (4 bytes). You'll get a 0x00000001 or 0x00000000 depending on if the buttons are locked or unlocked.
The above calls seem to work, but because it was gained from intercepting kernel calls and not from documentation I can not warrant that the above will work or won't set fire to your XDA.
By the way, lpBytesReturned doesn't seem to be implemented properly. It is unmodified by the KernelIoControl(...) IOCTL.
HELP
HELP
Somehow when I did a hard reset (for the first time) the ButtonLock is gone from Settings->System
Tried to call Audiovox/UTStar support, no help available.
Any idea how to get that app back? thx
Keylocking
Microsoft recommended way of doing this (turning keylock on) is posting
VK_F22 keycode (special key for locking WM5). I did small utility which looks Power Notification Queue and as soon as it sees WM_SUSPENDING message in it, it throws VK_F22 thus locking keyboard,
Utility can be found from
http://mobilitytoday.com/forum/showthread.php?t=13030
Devicelock
There is an aygshell-API function from Microsoft:
HRESULT SHDeviceLockAndPrompt();
But it is available only in very new Windows Mobile versions.
It works fine on a MDA Pro with AKU2.0 (OS 5.1.195 Build 14847.2.0.0) and on the landscape smartphone emulator image (same OS build) but it is not available in the standard emulator image with OS version 5.1.1700 (Build 14343.0.0.0).
How about the PIN-settings?
I would like to alternate between regular screen lock and PIN-lock..
Hi every one.
So i set "button lock" and also disable mainly all notifications but every time a new sms arrives,the screen goes on.I will like to keep the screen off because if you carry your magician in your pocket and after that sms arrives,you can accidentaly press any button or even touch the screen.
I been checking every thing i could check but i can´t find the answer about this problem.
Thanks in advance.
Third party software Pocket Zen Phone or phoneAlarm.
Ok i´ll check it and see what i can do.
Cheers mate.
User22 said:
I will like to keep the screen off because if you carry your magician in your pocket and after that sms arrives,you can accidentaly press any button or even touch the screen.
Click to expand...
Click to collapse
There are many occasions the Magician turns on its screen. Rather than trying to find and disable all these, I copied TPDisable.exe and TPEnable.exe from the original Extended ROM into my Program Files folder, and then assigned them to a hardware key (using Hotbutton, so that I can use the same key for both).
As the name implies, TPDisable disables the touchscreen (not the display!), and TPEnable re-enables it. So, before I put my Magician into my pocket, I now disable the touchscreen (one press of a button). That still leaves the keys active, true, but I found that normally the touchscreen is much more likely to be the culprit when strange things happen on your Magician while it's in the pocket, and turned itself on.
Cheers
Daniel
@ tadzio
Well,that is a very interesting solution,but i can´t find TPDisable.exe
or TPEnable.exe inside my magician.I need a bit more info from you
Daniel.
Thanks a lot for your replies.
What happens if you hold down power button for 2 seconds to switch off backlight? Does the light still illuminate on receipt of sms?
@ cruisin-thru
I can´t see the point of your question,mainly because the thing i am looking for is to "switch off" my Qtek like a normal mobile phone,i mince buttons locks and screen off when a new sms or incoming call arrives and when you push power button for example,then screen go on and also release the lock of the buttons.
Any one can say that then i can use deltalock.I did it but the battery live is going down very quick.
Screenlock is not working properly also,i will say that Deltalock is 95% a lot better than Screenlock.
And finally,why microsoft is developing this OS without fully screen off selectable option???. Who knows!!!
Cheers
User22 said:
Well,that is a very interesting solution,but i can´t find TPDisable.exe or TPEnable.exe inside my magician.I need a bit more info from you Daniel.
Click to expand...
Click to collapse
Both programs are in the Extended ROM. Most users have made this visible (though not writable) by performing a Hard Reset, and immediately after completing the initial screen adjustment and mini-tutorial and before the device starts installing programs, a Soft Reset.
If you do not want to do a Hard Reset, search this site's FTP server for Magician Extended ROM downloads. There were a few there last time I looked.
Cheers
Daniel
Well,after config hotbutton to TPDisable and TPEnable i can´t enable the screen and hardware buttons.
TPDisable is disablind the screen but also all the hardware buttons ( with and without button lock at settins),even the power button.
I use same hardware button for TPDisable and TPEnable ,is that correct or i am doing silly things?
If I arrive an sms the screen is switching on and after a few seconds switching off again if I don't press any key or tap the screen!
It's a changeable registry key:
HKEY_LOCAL_MACHINE / System / CurrentControlSet / Control / Power /
WakeupPowerOff =12 (the default is 180)
DisableGwesPowerOff=0 (the default is 1)
If you switch on the Jam (power button) need to press some other key too, because it switches off after 12 seconds!!!
by Avers
@avers
Well that is another solution but i insist that there should be an easiest way to keep the screen fully off when a new sms or what ever arrives,including hardware buttons off ofcourse.
Any suggestion more?, perhaps at the end and betwen all of us ,we can find the solution.
Cheers.
I think the best solution is third party software like PHONEALARM,
it's easiest way to get main tweaks of Pocket Windows.
get it there
http://www.pocketmax.net/phoneAlarm.htm
Well my friends,pocketzenphone is not doing what i am looking for.
Next step is to try phonealarm,but probably will work the same way as pocketzenphone,leting the screen to go on every time a new sms arrives.
Sorry for my languaje but F... microsoft and F... devil gates.
As you can read on this post ,phonealarm IS NOT doing it.
http://www.pocketmax.net/phpbb2/viewtopic.php?t=429
phonealarm has option named "Don't activate backlight on alarm"
ALARM there means any event, that needs notification.
now i am understanding, that it is some differ that you need.
also i advice you make some registry tweaks to make a very short backlite time when sms arrives.:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\WakeupPowerOff = 10
this timeout in seconds. is used when our device self power on, when SMS arrives or we push the POWER button and do nothing anymore
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Power\DisableGwesPowerOff = 0
this key is enables this power control system (necessarily change it, or first key will not work)
after the editing registry you need to reboot PDA.
sorry for poor english, i translate text from russian.
if you want to use online translator i can give you original URL
_http://forum.ladoshki.com/viewtopic.php?t=16012
Thank you for your reply i will try like you and others point out and also will keep looking for that utopic soft.
deltaLock locks the screen and buttons even if you get sms or calls. I use it on my JAM and it works so far.
bnycastro said:
deltaLock locks the screen and buttons even if you get sms or calls. I use it on my JAM and it works so far.
Click to expand...
Click to collapse
If you read one of my post ,you will see that i allready said that Deltalock is working but it is KILLING the battery live very fast and when i say VERY FAST it mince that you will get almost 6hours against the normal live (more than 15hours).
Cheers mate.
I think if you keep your ppc on all the time you will get this battery life. Anyway I think deltaLock is for keeping your PPC on and having screen and button lock, not having it in suspend mode and not allowing the screen to power up. Sorry about that, seem to have misunderstood your post.
Don´t worry mate, at the end we are all together trying to find a solution to this microsoft silly programing, any comment and any new idea is wellcome.
Cheers.
Has anyone figured out how to remap the volume slider on the Wizard?
I hardly ever want to change volume, just turn on/off vibrate mode which is a single keypress anyway, but i would really like it to be an up/down control like my old Dell Axim.
I know it functions like this in IE full screen mode, but I really want it for everything (especially MS Reader).
I think a lot of people would like this. It allows a better grip on the phone whilst moving within the app you're using (eg: MS Reader).
Any guru's got an idea about this one?
Joe
Remapping
Absolutely neccessary thing to fix (volume slider)!
And as using double-language hard-keyboard layout I am in desperate need to remap the change-layout sequence.
What about remapping in this OS, is it possible to do something?
Someone did this on the Magician (found it in that group on here at the time), I remember finding it very useful!
If someone could do a Wizard version that would be great!
Solution Found
Here is how you do it (and it was on the Magician forums, thx for the tip :wink: ):
Install the program found at the URL below, or from the attachment as you wish.
When you get the setup screen, choose "Do not handle" for all except the volume slider, which is set to up/down.
Ok it, and there you go, slider is now up/down and works in MS Reader, Today screen, and general folder browsing.
It says on the site not to put it on any device not listed as compatible, which doesn't include the Wizard, but "He who dares, wins..."
I am well chuffed with it. Now I am all ready for my commute on Monday.
http://ae.inc.ru/download/AEBPlus.zip
Joe
Unless this is a new version. DO NOT USE AEB+ WITH A WIZARD
I tried AEbuttons plus awhile ago and It deleted a couple of my buttons. I dont think it is meant for a device with as many buttons as the wizard. I had to go in and manually create the buttons again. I told it to handle all buttons though. Maybe telling it to only handle the volume slider doesn't cause this problem. I won't try it again until they actually say the wizard is compatible.
I just checked all buttons having read your post.
The only casualty is the connection manager button, which now only switches from audio vol. on to vibrate ringers when held down, and I have an icon on the today screen to go there anyway.
I can live with that
BUT BEWARE: No comms manager button = no hard reset = what do you do when you need to hard reset?
guttrhead said:
Unless this is a new version. DO NOT USE AEB+ WITH A WIZARD
I tried AEbuttons plus awhile ago and It deleted a couple of my buttons. I dont think it is meant for a device with as many buttons as the wizard. I had to go in and manually create the buttons again. I told it to handle all buttons though. Maybe telling it to only handle the volume slider doesn't cause this problem. I won't try it again until they actually say the wizard is compatible.
Click to expand...
Click to collapse
How did you restore the buttons?
Never mind:
http://forum.xda-developers.com/viewtopic.php?t=33795
joebongo said:
The only casualty is the connection manager button
.....
BUT BEWARE: No comms manager button = no hard reset = what do you do when you need to hard reset?
Click to expand...
Click to collapse
I just checked if it is possible to restore the connection manager button after installing AE Button Plus, and it seems to work
Just add these registry keys after you have installed the software and you have all your buttons back and an up down slider:
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys\40C6]
"Flags"=dword:00000000
"ResetCmd"="\"\\Windows\\AppButtons\\Comm Manager.lnk\""
"Icon"="\\windows\\CommManager.exe, 0"
"Name"="Button 5"
@="\"\\Windows\\AppButtons\\Comm Manager.lnk\""
[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys\40C5]
"Flags"=dword:00000000
"ResetCmd"="\"\\Windows\\AppButtons\\Record.lnk\" -b"
"Icon"="\\windows\\HotVoice.exe, 0"
"Name"="Button 4(Hold)"
@="\"\\Windows\\AppButtons\\Record.lnk\" -b"
You can put this in a .reg file and open it on your Wizard to import into the registry
I don't think Windows minds the button to be remapped for a hard reset, the hard reset will probably still work if the button is remapped by software.
Did you figure out which reg entries are actually changed when the slider is remapped by AEB? If we can figure this out, we could create a file to do this without the need to recreate.
I am also getting slowdowns/crashed on syncing via USB, and am beginning to wonder if this is another AEB effect.
Joe
joebongo said:
Did you figure out which reg entries are actually changed when the slider is remapped by AEB? If we can figure this out, we could create a file to do this without the need to recreate.
I am also getting slowdowns/crashed on syncing via USB, and am beginning to wonder if this is another AEB effect.
Joe
Click to expand...
Click to collapse
I can't find any slider registry entries, but I have no idea where to look
I have noticed that once I close the AEB program my slider doesn't do anything anymore, so it might be possible that it is not just a registry entry
To secure a Qtek2020i i must disable the phone buttons.
Only the GPRS mode must stay in use. (no call)
Any solution is welcome.
THX for your help
Dany (tontonpc)
Do you just want to disable the buttons or the incoming and outgoing calling facility?
http://forum.xda-developers.com/viewtopic.php?t=16135&highlight=disable+button
THX for the link.
I have read and find the AE ButtonPlus verry nice but not freeware.
Ther are also an old version free but...
I will just disable the red and green button.
Any suggestion ??? registry documentation ?
THX Again for your help, and for the link ;-)
Dany (tontonpc)
Why disable the buttons ?
Surely you should block calls using Settings->Phone->Services->Call Baring
I assume if you set this up it can be password protected.
tontonpc said:
To secure a Qtek2020i i must disable the phone buttons.
Only the GPRS mode must stay in use. (no call)
Any solution is welcome.
THX for your help
Dany (tontonpc)
Click to expand...
Click to collapse
I know how to remap the phone buttons, but i don't know if this will actually create a "secure" Qtek. This is because even if the phone won't execute by pressing the buttons, it can execute with the stylus. Now the solution isn't exactly simple, but it can be done. The "trick" is that the first application that maps the green and the red button, locks them and afterwards no other application can map them. In order to achieve this you must create an application, which will be started either by services.exe or HKEY_LOCAL_MACHINE\init which wil map the two keys.
To register the two buttons, you must execute the
RegisterHotKey API
The virtual key code for the green (talk) button is 114 (decimal not hex) and for the red (close) is 115 (decimal again). The fsModifiers parameter as stated in the API must be zero (0). You can give any IDs for these two buttons as long as they are unique.
Happy remaping.
I agree with CSExpert. For securing the phone, you're probably better off using TAPI methods to disable the line, standard API stuff to find and close the cprog.exe app, and possibly consider disconnecting the Phone's Modem programmatically.
V
ANyone please help. My BA's Touchscreen is cracked and not functioning anymore. But for now i need to use it. When sending SMS i have to touch or press the Send button from the touch screen. But since my screen doesnt work anymore, is there a way like assigning the "Send" button into the hardware key?
Or is there any application that can do this? Anyone please help!
Thanks in advance!
hi
what do u mean cracked?there is a picture and there is no tap action?or there is no picture and response anymore?there is like damage in lcd like un usual colors and rabush and lines?because may be if u change the rom or re-upgrading the rom,may be the problem fixed,specially in minor problems.
i think u cannot send msgs without tap action.
there is a crack, display is okay, but touch response is not fuctioning well, the only thing i notice is that, when i press on the right bottom most of the screen, sometime touch works and sometimes not works. I been trying to do the Align screen method but doesnt work. i think it is the hardware problem.
if that sms is really that important to you, you can always connect the device to the pc and when connected to activesync a nice little freeware called "my mobiler" can be used to control the device with the pc's mouse and keyboard and gets the device's screen on your pc screen. it can be downloaded here:
http://www.mymobiler.com/
but after bypassing the problem for now, we should focus on getting the thing fixed. you could answer homam_france's questions to help us determine what exactly went wrong and maybe you don't need to bypass then anymore but can solve the problem!
EDIT: ignore the request for more information, you already answered while i was writing this
@Chef_Tony
Thank you, but that is what I am doing right now. But my problem is that when i am not in from of my pc and I need to send important sms? Maybe there is a software that can map the Send softkey to hardware key.
Thanks again!
you could try this program:
http://classic.pocketgear.com/software_detail.asp?id=21070
there is a trial version there, and if you can install, start and control that program without the use of the touch screen, or from your pc, maybe you can tell it to for example, map the left softkey with the mail hardware key or something like that, i haven't tested it. if that prog is not right, on the bottom of that page there is a link for related applications, maybe one of those helps you.
if, however, the remapping of the keys does not work, for a different sms application, you could try:
iwindowsmobile sms chat:
http://iwindowsmobile.com/threaded-sms-messaging.html
visual it simple sms:
http://www.visualit.co.uk/PocketPC/simplesms_V5.htm
or this one:
http://www.mobileflipper.com/mobile-tips/sms-application-for-windows-mobile-50-60-and-61/
maybe their way of hitting the send button is different and works for your device.
by the way, on any normal mobile phone, you can also send an sms by pressing the green call button, unfortunately, ppc phones don't do that.
greetz
Chef_Tony
Why don't you just go to Setting/Personal/Buttons and map a button to "<Left Softkey>"
Thanks to everyone
Thanks to you all. I finally got a chance to fix my touch screen. not bad at all. except that i forgot to right fit the volume hardware keys.
Be very careful with the Volume key, if you don't close the case wright, you might broke the switch (a little switch on the mainboard that is moved by the volume key). Just make shure it's in the wright place when closing the case
Hi to all.
What can I do in case the ba is working, the screen is perfect but no more touch? it's a os 5.2.1933(18533.0.7.0)
thanks
that can happen but it has probably nothing to do with the rom. it means that the digitizer is broken and you need to look for a new one, maybe a good ebay search or a post in xda's marketplace could help you
thanks 4 the reply. Do you mean a new lcd screen?
no, just the digitizer, it is the see through touch panel on top on the actual display, maybe you are lucky and find a cheap one, as you don't need a new screen.
you can buy a new digitizer on dealextreme.com, i recall a few months ago they were selling the digitizers for Blueangel devices, its very easy to disassemble the BA & replace it. Good luck.
BA Screen alignment settings at HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH
Can any of the members pl. post the screen alignment settings available at Registry entry Screen alignment settings for BA and/or variants at HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\TOUCH
Value Name: CalibrationData
Value data:
? (5 sets of data)
Value type: REG_SZ
Value Name: MaxCalError
Value Data: ?
Base : Decimal
Value type: REG_DWORD
With these values most of the BA devices with defective touch screen can become functional to large extent.
Actually we can add the values to the BA Wiki
Regards
here's the CalibrationData:
17 154,258 154,788 865,785 859,262
i dont have a MaxCalError key.
Good luck,
dtd
Hi DTD,
Thanks for the prompt reply. Pl. verify the data provided by you as it doesnt seem to have the 5 sets for the CalibrationData values & repost correctly.
Thanks in advance
Regards