I'm working on an application. This application has several fields which will only have numerical input (Zip code, phone number, part #, etc).
This application runs on Windows Mobile 5 & 6 with a touchscreen and full keyboard (So basically Treo's and HTC phones).
To type a number on these phones, you need to hold down a Function Key, then hit a letter which corresponds to a number. It has been requested to eliminate the need to hit that function key, and have it automatically input the number.
I cannot hard code this because it's certainly not very extensible (Well, I could hard code it, but whatever)
I was thinking I could P/Invoke "keybd_event" the Function key, and it should work from there.
However, I cannot find what key code the "Function" key is.
And also, will this key code be the same across all phones?
I suppose one last note, if you know a better way to achieve this without using P/Invoke, I'm up for new ideas
Thanks for your time,
Dan
I'm afraid I can't be of much help here, but you for sure *can't* get a Function key code. There isn't. It's deep in the keyboard driver.
However, according to this, there's some hook you can ask OS for to convert letters to numbers. But with MS, it might as well be hidden from public...
There has to be some message that's sent to the OS when I hit the Function Key, I just (obviously) don't have Spy++ on my PPC.
I was looking up a few things.
Is there anything relevant contained in keybddr.dll?
Related
Hi,
I'm trying to add support for the Samsung Blackjack device's keyboard. It seems to have a special keyboard layout where each digit is shared between two buttons, for example, 'E' and 'R' are both used for '1'.
I didn't find any method of telling the OS to change between digit mode and character mode, but I might have just missed it.
I noticed that IME generates the same WM_KEYDOWN (VK_1) message for these two buttons ('E' & 'R').
Any idea how to create a generic solution for this kind of devices? I wouldn't want to query the OEM string and do it hardcoded.
Thanks!
Nergall
This may be a challenge or it may be a simple "RTFM" sort of reply that solves my problem, but I'd love for the Hermes to have the same power as my Treo 650 keyboard did. There was a program called TreoCaps.
It operated thusly....
When typing letters, using the normal keyboard press, a normal key was inserted (usually lower-case, unless auto-caps was on). If you pressed the key down for like 300ms, it would change into an upper case. If you held it down for 600ms, it would change to the symbol character assigned to that key.
The blackberries have a similar function.
Has anyone written such a hack for the Hermes or WM5 w/ keyboard devices in general. I've gotta believe so, since in my recent experience with wm5, it's (a) a real multi-tasking operating system, and (b) it's loads more extensible than POS is.
Thanks,
-Humbert
Im old school, I like to put the "-" in between the first 3 numbers and last 4 numbers of my contacts.
So I Was entering in some people today, and I suually hit the blue dot and "f" to get the dahs, but it doesn't work. Shift doens't give me a capital, either. And I don't have to hold down the blue key to get the numbers working when I press the appropriate keys, they come up by themselves.
I checked and the Fn and Shift keys were no stuck, and hadn;t been pressed twice. What is going on?
Anyone? This is annoying
I confirmed this bug... when adding a new contact and entering a phone number via the hardware keyboard I couldn't insert the '-' (dash) character, no matter what i did with the fn and shift key i would get the 'a' character. I could insert the '-' character via the standard windows mobile software keyboard and the PCM Keyboard (another software keyboard).
This could be a design flaw of the windows mobile contact editor. Maybe they wanted to disallow all non alphanumeric characters and only implemented that for the hardware keyboard rather than for both the hardware and software keyboard.
Whatever the problem is, in order to get a dash character to show up when editing a contact phone number on the stock Sprint 6.1 rom it looks like you will need to use the software keyboard
Hi, I have a Sony Ericsson X1. This device is enriched with 4 front hardware keys (2 softkeys and a "panel"-button and a "ok"-button). You have to possibility to customize the function of the 2 softkeys, but not the panel-button or the ok-button.
Now, I'm trying to write a application in C# that does programmatically exactly what a keypress does (on the panel-button), but I'm not able to find any information anywhere that can help me with this task, so that's why I'm asking the question here.
Anyone here with some information that might be of help?
Some more information, I ran AE Button Plus, and the "Panel"-button identifies as key code = 00EA and the ok-button identifies as key code = 405C!
There is something I don't understand.
So I am new to smartphones, have a Legend. Recently upgraded to Android 2.2. When I create a new contact on the phone and I enter his phone number, since I've upgraded it shows on the virtual keyboard also the letters "P" and "W" along with the numbers, so I can enter a phone number containing "P" and "W".
I was looking for some online help, but could not find one. What are "P" and "W" for?
I was thinking that probably this has something to do with modern phone answering menus and could be like "pause" and "wait" so entering "123w456" would produse "dial 123, then wait a bit and dial 456" where "456" could be extension. No idea - this is the first thing that came to my mind. Don't think of actual phone target I can dial it and try it with.
Does anyone know? I just read the Desire HD manual hoping it could answer, since I remember it has newer Android on it.
Help anyone?
Thanks
from what I know, one is for Pause and the other for Wait.
Function:
- Pause: wait for user to interact (press button)
- Wait: giving a short pause, then continue with string
That's what I think it is, maybe it is actually the other way around between P and W.
on my HTC Desire dialpad
W means "wait for user to interact (press button)"
P means "giving a short pause, then continue with string"
So I need to press button using "w"
PS: I use it dialling my IP-telephony provider from my cell.
Just typing +XXXXXXXpYYYYYYY
where XXXXXXX is pool number of IP-tel provider and YYYYYYY - the number I'm calling