Hi
Anyone knows keycodes (KeyEventArgs) for buttons: Back, Volumne up / down on HTC Touch Pro2?
For now i got only this keys:
- Talk - 0x3D
- End - 0x3E
- Windows - 237
I kinda need rest of them.
http://www.google.com/search?q="windows+mobile"+key+codes
MarcLandis said:
http://www.google.com/search?q="windows+mobile"+key+codes
Click to expand...
Click to collapse
Great, but... according to this page http://msdn.microsoft.com/en-us/library/bb431750.aspx talk key value is 0x72 but in ppc_phone_480x800.xml emulator file this key value is 0x3D, so which one is correct?
Related
Hello,
Im currently working on a custom control in managed code(vb.net) and have decided to implement it in a lock application as its initial demo. I have written code which catpures the base hardware keys available to windows mobile(1-6) this captures all of the hardware buttons on my wizard except for the Phone Buttons, Volume/Vibrate Button, and power button. im not particularly worried about trapping the power button because i like the tap to standby feature but im up the creek on the phone/volume buttons.
I found the hardware buttons 1-6 in the registry under (HKLM\Software\Microsoft\Shell\Keys) but i cant seem to find the other keys anywhere including where this person says they are
http://www.mobipocket.com/forum/viewtopic.php?p=2367&sid=c3b2c704a729c2d6e5a47d0ee38ecb54
basically from my understanding of what he's saying the keys for these options(at least the phone ones) should have been listed under "HKEY_CURRENT_USER\Software\Microsoft\Today\Keys\"
I had one key there 112 pointng to my calendar(so that i thought confirmed him) I added a key called 114 with a path to calendar as well. but the button still directs to phone/ so im not sure what's up.
Here's some logic from the hardware button capturing... Any insight into the location of these items would be greatly appreciated
Code:
Dim hk As HardwareKeys = HardwareKeys.ApplicationKey1
Dim i As Integer = 0
While i < 6
Try
Dim hwb As HardwareButton = New HardwareButton
hwb.AssociatedControl = Me
hwb.HardwareKey = hk + i
Catch ex As Exception
Me.Label1.Text &= ex.Message
End Try
i += 1
End While
Dim regkey As RegistryKey =
Registry.LocalMachine.OpenSubKey("Software\Microsoft\Shell\Keys", True)
Me.Label1.Text = regkey.SubKeyCount
For Each skey As String In regkey.GetSubKeyNames
Me.Label1.Text &= skey.ToString & ","
Next
regkey.Close()
Thanks in advance for any insight anyone can provide
DrewG
Well ive found some russian page talking about the
Dated Post on russian site with Broken English Translation said:
HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\KeyMaps]
"195"= - =-hitting "record" on the three pozic. phone (one that najmeshy story)
"196"= hitting "power" and "house"
"197"= Opening screen
"198" = "red tube"
dword:00000000 - nothing
dword:00000001- mobile phone
dword:00000002 - quick menu
dword:00000003 - lock (for the press release #)
dword:00000004 - 00000004 fast-locking
Click to expand...
Click to collapse
Do you guys think this is a good start? At that location i have dword 197 val of 5. Im adding entries now for the othr buttons to see if i can catch
Here's What I have so far for Cingular 8125 HTC Wizard as the hardware buttons/software key maps which i get from a call onkeypress. I believe im going to have to go an unmanaged route for the phone buttons/Volume.
Code:
'not code just looks better this way
SoftKey Left = Key Code 112
SoftKey Right = Key Code 113
Email Button(top left corner) = Key Code 193 (Cf Hardware Button 1)
Web Button(top right corner) = Key Code 194 (Cf Hardware Button 2)
Camera Button(bottom right side) = Key Code 195 (Cf Hardware Button 3)
Voice Button(top right side) = Key Code 196(Cf Hardware Button 4)
Record(hold voice) = Key Code 197(not firing well) (Cf Hardware Button 5)
Comm Button = Key Code 198 (Cf Hardware Button 6)
All of those I can catch and react to but i cant seem to find any info for the phone and volume buttons/ Is there a specific api call I can make thats related to button press or catching? Possibly a way of forcing an association to an app only while its running?
Thanks in advance for any help. Ill post the full app here if i can get over this hump
Hi all,
i got an United Kingdom TyTN, but i installed the Italian official ROM from HTC with wm6.
That's works fine but layout of the slide keyboard doesn't work correctly.
Principal functions are ok, layout is QWERTY.
Only 4 caps doesn't work.
Key S with cap " return me cap -
Key D with cap : return me cap "
Key F with cap - return me cap °
Key C with cap ; return me cap :
What can I do?
Thank you all
now it's all ok, Advanced Configuration Tool was the way
Sorry for bothering
but there isnìt italian layout.... in Advanced Configuration Tool... How can I do?
I'm very sad...!!
Get a registry editing program (Often already included in custom ROM)
Here's a free one : http://www.phm.lu/Products/PocketPC/RegEdit/
In the registry, go to: HKEY_LOCAL_MACHINE\Software\Oem\Qwerty
Under it, you'll find "Layout", it should have a number as data, such as "197649" or whatever else.
I dont know what your keyboard layout it, but you can try changing the data number to something else.
Here are some numbers that I know of (Only write the NUMBER)
Make sure you enter those values as DECIMAL
DECIMAL NUMBERS
THOSE ARE DECIMAL NUMBERS
NOT HEXADECIMAL
English : 132105
Chinese : 132100
German : 132103
Spanish : 132106
FROM WHAT I COULD MAKE OUT FROM A GENERAL PPC WEBPAGE (Don't hold me responsible if it doesnt work)
I got a few possible values
Italian Standard : 132112
Italian Swiss : 133136
DO NOT SOFT RESET!!!
Soft reset sometimes causes the phone to not SAVE the changes and then your phone reboots with the hold QWERTY settings.
Do this instead
TURN OFF
wait 5 seconds
TURN ON
If you want to find other keyboard values, go to the webpage link below
Example to USE the webpage: Italian Standard
1 - Find : Italian Standard
2 - Look at the LCIDHex value (first column on right side with 4 digits)
3 - Italian Standard : 0410
4 - Add 20 in front of this number ( 20 410 = 20410)
5 - Open MS calculator on your computer (start menu, run, type calc OR Start Menu, All Programs, Accessories, Calculator)
6 - In calculator, click on VIEW, then select SCIENTIFIC
7 - In calculator, check mark "HEX" under the white box, left corner, just under "edit"
8 - In calculator, Type in your number ( 20410)
9 - In calculator, check mark "DEC" right next to the "HEX"
10 - In calculator, the white box should where you typed 20410 should have changed to 132112
11 - Type 132112 in the registry value from the top of this thread.
Go do those steps with the code you find in this webpage depending of the country you wish to use.
http://www.microsoft.com/globaldev/reference/winxp/xp-lcid.mspx
I thought creating a thread that shows the various registry hacks might be helpful/useful/contructive/destructive.
I am still pretty new to all of this and would love to know what others have discovered to get 'more' from our PPCs.
Thanks in advance for the contributions!
I am using PHM Registry for my editor.
did you try searching? they are scattered all over this forum
Tregrad said:
did you try searching? they are scattered all over this forum
Click to expand...
Click to collapse
That is why I thought it might be nice to have one location for them.
Registry Hacks - List 1
You can download and install PHM Registry Editor on your phone to modify the registry.
http://www.phm.lu/Products/PocketPC/RegEdit/
Unlocking/Unhidding the extended_rom
\HKLM\System\StorageManager\Profiles\EXT_FLASHDRV \
then change the value (default at 1) to 0
Wait at least a minute before doing a soft reset.
----
Get rid of the voicemal icon on the '1' key (3.16+)
The 3.16 rom has added an voicemail icon to '1' key which also caused my skin to look messed up. You can disable it:
\HKEY_CURRENT_USER\ControlPanel\PhoneExtendFunctio n\CDMA\
set the DWORD value
"EnableVoicemailIcon" = "0"
by default it is set to 1.
---
Reserved - future use
Reserved - future use 2
Reserved - future use 3
i think this is a good idea as well... since ppcgeeks is down. just fyi, there are some listed on sprintmogul.net and a couple other sites.
Your really aught to just keep editing the FIRST post and as people find new reg hacks you can add them to teh first post.
Tregrad said:
Your really aught to just keep editing the FIRST post and as people find new reg hacks you can add them to teh first post.
Click to expand...
Click to collapse
Right -- that is what I basically plan on doing.
went over to geeks and got a PANT laod of them by doing a "search" in the Titan forum
You can download and install PHM Registry Editor on your phone to modify the registry.
http://www.phm.lu/Products/PocketPC/RegEdit/
1-Unlock Phone (certificate security disabled) rev.1
HKEY_LOCAL_MACHINE\Security\Policies\Policies\0000 1001 = 2
-> Change the value data from 2 to 1
HKEY_LOCAL_MACHINE\Security\Policies\Policies\0000 1005 = 16
-> Change the value data from 16 to 40
HKEY_LOCAL_MACHINE\Security\Policies\Policies\0000 1017 = 128
-> Change the value data from 128 to 144
HKEY_LOCAL_MACHINE \Security\Policies\Policies
-> Add new value "0000101b": Dword = 1
Close registry editor and soft reboot.
------------------------------------------------
2-Change Bluetooth headphones from mono (default) to stereo:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\A2 DP\Settings
UseJointStereo: change the DWORD from “1” TO “0” no quotes.
HKLM\Software\Microsoft\Bluetooth\A2DP\Settings\Bi tPool to 50
HKLM\Software\Microsoft\Bluetooth\A2DP\Settings\Ma xSupportedBitPool to 50,
------------------------------------------------
3-Today screen, Single line date
HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\TODAY
"Date"=dword:1
"AutoSingleLineDatePlugin"=dword:1
------------------------------------------------
4-Change Operator name
HKLM\System\State\Phone\Current Operator Name
------------------------------------------------
5-Disable the pop-up notification that says Message Sent rev.1
HKLM\SOFTWARE\Microsoft\Inbox
create a new key "Settings"
create a new string value "SMSNoSentMsg" and set the value to 1
Hit ok and select "Ok" to save and you are in business.
------------------------------------------------
6-Speed up
Using a registry editor such as PHM RegEdit lookup and change the following three values:
HKEY_LOCAL_MACHINE\System\StorageManager\FATFS\Cac heSize=0x1000(4096)
HKEY_LOCAL_MACHINE\System\StorageManager\FATFS\Ena bleCache=0x1(1)
HKEY_LOCAL_MACHINE\System\StorageManager\Filters\f sreplxfilt\ReplStoreCacheSize=0x1000(4096)
------------------------------------------------
7-Enable GPS icon in the Setting/System menu
HKLM\ControlPanel\GPS Settings
Change "Hide" to 0
------------------------------------------------
8-Enable Bluetooth and IrDA in Wmodem
HKEY_LOCAL_MACHINE\SOFTWARE\OEM\WModem
"Hide IrDA"=dword:00000000
"Hide Bluetooth"=dword:00000000
"Hide USB"=dword:00000000
-------------------------------------------------
9-Registry Hack Improvement of using bluetooth listen music
HKEY_LOCAL_MACHINE\Drivers\BuiltIn\BtA2dpSnd
Add "Priority256 "= dword:60 (Use Dword Value)
HKLM/SOFTWARE/Microsoft/Bluetooth/AudioGateway/Capability
(Dword:69)(Default is 37)
HKLM/SOFTWARE/Microsoft/Bluetooth/AD2P/Settings/BitPool
(Dword: 60)(Default is 30)
-------------------------------------------------
10-Unlocking/Locking Items into position on today screen
HKLM\Software\Microsoft\Today\Items\"Plugin you want to lock or Unlock"
change TYPE from 5 to 4
5=locked
4=unlock
-------------------------------------------------
11-Camera Flip Pictures Fix
HKEY_LOCAL_MACHINE\Software\HTC\Camera\Image
Change "EnableEncodePortrait" to 0
When you take a picture it is saved in the wrong configuration and you then have to rotate
it with a picture editor so its not sideways and save it again. This is the fix for it.
-------------------------------------------------
12-Disable Multi-NAI
HKEY_LOCAL_MACHINE\SOFTWARE\OEM\WModem\Multi-NAI default is 1, set to 0(00000000)
-------------------------------------------------
13-Put Date in Title Bar
[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell]
"ShowTitleBarClock"=dword:00000001
"TBOpt"=dword:00000003
[HKEY_LOCAL_MACHINE\nls\overrides]
"SSDte"="M/d/yy "
***** 2 spaces needed aafter the yy ****
fyi no quotes on the sting values if using a reg edit.
--------------------------------------------------
14-battery, screen rotate, and CommManager icons down in your tray
see cab in this post
http://ppcgeeks.com/reg-tweaks-06-19...,60.html#57690
--------------------------------------------------
15-Change Vibrate Strength
HKLM\SOFTWARE\OEM\VIB
STRENGTH_LOW set to 1.
--------------------------------------------------
16-Disable Ambient Light Sensor
KEY_CURRENT_USER\CONTROL PANEL\BACKLIGHT set auto sensor from 1 to 0
--------------------------------------------------
17-how to get rid of some of thoes annoying sounds while on calls or making calls (or attempting), such as adjusting the volume,
go to HKEY_CURRENT_USER\ControlPanel\Sounds
Loudestincallvolume = the sound it makes when you turn the volume all the way up (that annoying little useless sound) delete this key to remove that
Quietestincallvolume = the same but for when you turn it all the way down
Networkdrop = the dropped call /w lost signal sound
Calldrop = caller hangs up before you do sound
---------------------------------------------------
18-Change ringtone/vibrate/LED flash characteristics
If you would like more control over how your device rings/vibrates/flashes its LEDs on events, you can can change the Script values of these events. For example, for an incoming call performing 'activate device, play ringtone, wait 3 seconds, repeat':
HKCU\ControlPanel\Sounds\RingTone0\Script = "apw3r" (REG_SZ string, no quotes)
For performing 'active device, set volume to 33%, play ringtone, set volume to 67%, play ringtone, set volume to 100%, play ringtone (no repeat)':
HKCU\ControlPanel\Sounds\RingTone0\Script = "ac33pc67pc100p" (REG_SZ string, no quotes)
The following are the full codes available to you. Please note that all the codes are executed simultaneously except after a ringtone play / wait code. E.g. 'v1p' will vibrate and play at the same time, while vibrating for 1 second. But 'pv1' will play the ringtone through all the way first, then start vibrating for 1 second.
a = activate device
cN = set volume to N in percentage max volume
fN = flash notification LED for N seconds
p = play ringtone. Note that this will play the ringtone all the way through before continuing with the next code.
r = repeat. Note that this should be the last code in your Script string, if used at all.
vN = vibrate for N seconds
wN = wait for N seconds. Note that the device will wait this long before continuing with the next code.
NOTE: I tried this on my 6800 and changed the v0 to v1 and now it doesn't have just one long vibrate. v0 sets it to vibrate always.
-----------------------------------------------------
19-FIX THE SLOW RINGER
To do this, you will need your MSL, which only Sprint (or your provider) can provide you. Open up the phone app and dial ##778# (PST). You will be asked to enter your MSL. Enter it, and you will be brought into the provisioning of your phone. From the top left, select Modem Settings. On this page, your Slot Cycle Index (SCI) is how often your phone polls the tower for incoming calls, etc. This value is 1.28 seconds multiplied by 2^value (i.e 0=1.28 secs, 1=2.56secs) with 0 fastest, 7 slowest. The default is 2, but lowering it to 1 hasn't noticeably affected my battery life, and roughly 2.5 second (SCI 1) response time is far more reasonable than roughly 5 seconds (SCI 2)
-----------------------------------------------------
20-Change scroll bar size
Navigate to HKey_LOCAL_MACHINE\SYSTEM\GWE\ and tweak the following values.
cyHScr : Horizontal Scrollbars Height in pixels (default is 13)
cxVScr : Vertical Scrollbars Width in pixels (default is 13)
-----------------------------------------------------
21-Save Attachments or the Whole Email on your SD Card
The Key in WM6 changed from WM5. In WM6 it is:
HKLM\System\Inbox\Settings
For Attachments add "AttachPath" value="\Storage Card\Inbox\Attachments" datatype="string"
For the rest of the email add "PropertyPath" value="\Storage Card\Inbox" datatype="string"
For the paths above to work, you need to have the Inbox folder and Attachments subfolder created already. You must reboot for them to take effect.
-------------------------------------------------------
22-add the AM/PM to your time in the title bar
To Add AM or PM
1) Open your registry editor (either PHM Registry Editor or Resco Explorer 2003).
2) Go to HKEY_LOCAL_MACHINE\nls\overrides
3) Create 1st String Value: Name = S1159 & String = Am
4) Create 2nd String Value: Name = S2359 & String = Pm
5) Create 3rd String Value: Name = STFmt & String = hh:mm t'M'
6) Soft-reset
There has to be a space after the am or pm otherwise it will not display
Also
am=aM pm=pM
Am=AM Pm=PM
--------------------------------------------------------
23-Changing SoftKeys
Create the following keys and Strings in the registry:
HKEY_CURRENT_USER\Software\Microsoft\Today\Keys\11 2
HKEY_CURRENT_USER\Software\Microsoft\Today\Keys\11 3
112 is the left key and 113 is the right.
Set Default to what you want the key to read (ie. SMS)
Now for each key create a new string named Open and set the target path.
--------------------------------------------------------
24-This edit allows you to see the duration of your Vision connection along with a button to disconnect it.
You see it in the bubble that is displayed when you tap the Vision icon.
Click HKEY_LOCAL_MACHINE
Click ControlPanel
Click Phone
[at this point, the buttom grey status bar should read \HKLM\ControlPanel\Phone'
Click the bottom menu 'edit'
Select new dword value
Change the value name to "Flags2" (no quotes).
Select the 'hexidecimal' button.
Type 10
Click ok.
You should now see in the 'name/data' section:
Flags2 16 (0x00010)
When done, reset the device.
Tregrad said:
went over to geeks and got a PANT laod of them by doing a "search" in the Titan forum
You can download and install PHM Registry Editor on your phone to modify the registry.
http://www.phm.lu/Products/PocketPC/RegEdit/
Click to expand...
Click to collapse
Great hacks. Thanks for your contribution.
big list of em over here.
http://www.htcwiki.com/page/Tweaks+and+Hacks?t=anon
im usually not one to mess up my phone (ie im usually very cautious, dont play with what i shouldnt) but i wouldnt touch that ringtone modifying hack. i just tried it, hoping to set the ringtone more like it was on an old razr of mine (4vibes and a break) and it really messed up the phone application. like it wouldnt open. even after multiple restarts, everything. after i called my phone from another one, the phone app opened, thankfully, and then it started working but gave me quite a scare before that
EDIT- nope, that didnt fix it either. even after calling from another phone, once my 6800 is restarted, the phone app wont work again. god this will be the 4th hard reset this week. lame.
Duration of the rington
Has anyone an idea if it is possible to say the phone how long the ringtone should play till the phone hangs up and went into mailbox.
I mean is it possilbe to set the duration to eg. 30 sec or more till it hangs up.
I know there is a hack to stop ActiveSync from starting automatically but I can't find it. Searched here and PDAphonehome. Anyone have it?
Hey guys, I'm an active user on the Wing forums. I was wondering if there is such a reg edit to save SMS to the SD card instead of on the phone? Thanks for any details!
nuron said:
Hey guys, I'm an active user on the Wing forums. I was wondering if there is such a reg edit to save SMS to the SD card instead of on the phone? Thanks for any details!
Click to expand...
Click to collapse
Along those same lines -- I would like to move 'my docs' to my sd card.
HEY!!!!!!!! I GOT 6.1! but cant get to my IOTA!!!! HELP PLEASE!!!!!!!!!!!!!
djhollygrove said:
HEY!!!!!!!! I GOT 6.1! but cant get to my IOTA!!!! HELP PLEASE!!!!!!!!!!!!!
Click to expand...
Click to collapse
have you unlocked your extended ROM? Do that and rub the IOTA cab.
Hi there!
someone knows a way to restrict waking up of the device to the powerbutton only?
it is strange on this device, on win mobile 6.1 and 5 all keys were locked except the power button, but on the touch 2 pressing any front key will wake it up.. and it happens quite often by accident.
thnx!
Check if following registry setting is in your phone or add it if you do not want to wake up by any hardware keys: HKEY_LOCAL_MACHINE\HARDWARE\OEM\KEYBD "KeyLock" = 1 (default is 0) then Reset...
In my Rom this registry is not there btw.
Frank Caarls said:
Check if following registry setting is in your phone or add it if you do not want to wake up by any hardware keys: HKEY_LOCAL_MACHINE\HARDWARE\OEM\KEYBD "KeyLock" = 1 (default is 0) then Reset...
In my Rom this registry is not there btw.
Click to expand...
Click to collapse
"KeyLock" = 1 is a DWORD or String Value??
thanks
DWORD......
I've taken the liberty of rooking a Nook Glowlight 3 and changing the keymap as follows:
Code:
$ cat /system/usr/keylayout/imx-keypad.kl
key 158 BACK
key 116 POWER WAKE
key 139 MENU
key 412 BACK
key 102 HOME WAKE
key 353 DPAD_CENTER
key 103 DPAD_UP
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 108 DPAD_DOWN
key 114 VOLUME_DOWN
key 115 VOLUME_UP
key 90 BUTTON_B
key 191 3
key 192 1
key 193 2
key 194 4
However, when I press the hardware buttons I do not get the expected numeral keypresses. I had based the idea that this would work off this forum post which states:
Renate NST said:
The six hard buttons are mapped in /system/usr/keylayout/imx-keypad.kl
LowerLeft 191 F9
UpperLeft 192 F10
UpperRight 193 F11
LowerRight 194 F12
Power 116 Power
Home 102 Home
Click to expand...
Click to collapse
Of course, I did reset the device after changing the file, and the output seen here is from running cat after the reset so I know that the file was changed properly. Why might the buttons not present the keypresses expected?
For keys to work, you've got:
/system/usr/idc/*.idc - provides links to the other two files
/system/usr/keylayout/*.kl - maps hardware inputs to keys
/system/usr/keychars/*.kcm - maps keys to characters
The first thing to note is that B&N (NTX) just sloppily edited example files.
The imx-keypad.kl has a lot of cruft for things that don't exist.
Ok, they don't do any harm unless there is something wrong with them, then the file reading aborts at that line.
If this were the case, you might have seen a line in the dmesg log.
Get UsbMode.apk out of the signature.
Then you can see where the chain of conversion from hardware input to character fails.
(1, 2, 3, 4 is really not a useful usage of the side keys.
It won't do anything reasonable with any non-custom app.
Page up/page down elicits a response from most things.)
Renate NST said:
For keys to work, you've got:
/system/usr/idc/*.idc - provides links to the other two files
/system/usr/keylayout/*.kl - maps hardware inputs to keys
/system/usr/keychars/*.kcm - maps keys to characters
The first thing to note is that B&N (NTX) just sloppily edited example files.
The imx-keypad.kl has a lot of cruft for things that don't exist.
Ok, they don't do any harm unless there is something wrong with them, then the file reading aborts at that line.
If this were the case, you might have seen a line in the dmesg log.
Get UsbMode.apk out of the signature.
Then you can see where the chain of conversion from hardware input to character fails.
(1, 2, 3, 4 is really not a useful usage of the side keys.
It won't do anything reasonable with any non-custom app.
Page up/page down elicits a response from most things.)
Click to expand...
Click to collapse
Thank you so much Renate. I was wondering what all that cruft was, I will remove it to see if that is preventing further parsing of the file.
In fact, I use the Nook almost exclusively for AnkiDroid, so the 1,2,3,4 are for that app.
Actually, it's more likely that you edited that text file on a Windows CR/LF text editor.
The system will abort as soon as it sees a CR, 0x0d
You can do a hex dump "hd imx-keypad.kl" right on your Nook.
(Use Notepad++ instead.)
Renate NST said:
Actually, it's more likely that you edited that text file on a Windows CR/LF text editor.
Click to expand...
Click to collapse
Very unlikely that VIM on Debian would use CRLF line endings!
dotancohen said:
However, when I press the hardware buttons I do not get the expected numeral keypresses.
Click to expand...
Click to collapse
Well, you're not very explicit on what you do get.
Do you get any response? What?
Did you break your Home key?
Use the UsbMode.apk