Re: Starting application using keypad
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Wed, 17 Sep 2008 09:13:43 -0700
The shell, if you have AYGShell in your OS, will handle some set of keys,
the help says VK_APPn (and you can see that in the PRIVATE code for
AYGShell, if you look), based on a set of registry entries. Since we don't
have your keyboard driver code here, we don't know what VK_ values the keys
that you are trying to assign return. If they are sending VK_APPn, then you
should be able to use the registry entries documented on the General Shell
Registry Settings page in the help.
Otherwise, you'll have to do something else, something where *you* are
handling the processing of the key and starting the program or whatever.
That is, you can't expect the OS to handle this operation for every
conceivable key!
Paul T.
"shai" <shaihi@xxxxxxxxx> wrote in message
news:59d0b23f-185f-4bf0-bce8-0f2240aa267b@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
OK,
I obviously am missing something here...
My system is PXA 300 with a keypad controller. I have a keypad with 9
keys, 5 of which I designated for arrow keys and one for the return
key.
Now I want to give my users the ability to configure the rest of the
buttons to launch applications they want.
From the answer above I understand they I will have to develop awindow application to capture the key strokes?
I am building the OS - isn't the shell suppose to do the mapping
between the key press and the application launching through the
registry?
I guess I would be glad to get an elaborated explanation if you can.
Thanks,
Shai
On Sep 16, 6:20 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
no instrument no spam DOT com> wrote:
RegisterHotKey()...
in message handler for the window that registered the hot key
case WM_HOTKEY:
// See which of our hot keys was fired and do something with it. Start
IE, for example.
break;
2) That's up to the utilities provided by the OS builder. There's no
built-in key mapping capability in the registry of every Windows CE
device.
Windows Mobile devices do that but, unless your device has some means to
do
it, nothing will happen.
3) I don't understand what the system looks like. If the key is a system
key, an individual application won't get keydown/keyup. And it should be
obvious that only the focused window will get keys, anyway.
Paul T.
"shai" <sha...@xxxxxxxxx> wrote in message
news:950c2eab-fdf2-42bc-86b1-2687ba1b6d13@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
Sorry for answering just now.
First of all - iesample.exe is in the Windows folder.
As for Paul's answer -
1) I'm not sure (even after reading about RegisterHotKey) how I'm
supposed to use that - and I'm not sure that is the funtionality I'm
looking for.
2) What's wrong with what I was trying to do? I want to have the
ability of mapping the keys to the apps through the registry, so I
understood that setting the keys I mentioned should do the trick fi I
mapped the kepypad keys to the VK codes of APP1-6.
3) I don;t understand why I'm not receiving WM_KEYUP or WM_KEYDOWN
events, the layout manager calls keybd_event with the correct VK
mapping and from the documentation it leads me to understand that I
should get such an event.
Thanks,
Shai
On Sep 15, 7:20 pm, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
no instrument no spam DOT com> wrote:
It sounds to me like you want RegisterHotKey() for whatever key on this
custom keypad your keyboard driver is generating. If you do that, you
don't
care what application is in front, (which will be a problem using any
other
means to capture the key).
Paul T.
"shai" <sha...@xxxxxxxxx> wrote in message
news:38b3410a-0258-4b58-a8d1-9a4ff96bf4a0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I am using WinCE 6.0 R2 with all QFE's.
I have in catalog : AYGShell and the Standard Shell
I have a custom Keypad, and I want to launch some application when a
certain button is pressed.
I also have navigation buttons which work (UP, DOWN,LEFT, RIGHT and
RETURN).
I have read this:
http://msdn.microsoft.com/en-us/library/aa923204.aspx
So I tried to set:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Shell\Keys\C1]
"Application"="iesample.exe"
"Path"="\\Windows"
"Flags"=""
But nothing happens when I press the button.
I also read this:
http://groups.google.com/group/microsoft.public.windowsce.platbuilder...
And tried to use similar settings though with applications and not
shortcuts. I haven't found in the PB docs any settings like these so I
was skeptic at the beginning already.
Anyway I got back to the original settings (as written above), and
tried to debug the taskbar as suggested by Paul in the post I
mentioned. The thing is that no matter what key I press no WM_KEYUP or
WM_KEYDOWN event is generated. And from what I understand from the
code, one needs to be genereated in order for the shell to look at the
registry keys I am setting.
I checked the code the LayoutMgr generates and it is good (it
generates C1 VK code for the VK_APP).
Any suggestions as to why the VK_APP1 does not do anything?
Thanks,
Shia
.
- Follow-Ups:
- Re: Starting application using keypad
- From: shai
- Re: Starting application using keypad
- References:
- Starting application using keypad
- From: shai
- Re: Starting application using keypad
- From: Paul G. Tobey [eMVP]
- Re: Starting application using keypad
- From: shai
- Re: Starting application using keypad
- From: Paul G. Tobey [eMVP]
- Re: Starting application using keypad
- From: shai
- Starting application using keypad
- Prev by Date: RE: WinCE 6.0 "Connectivity Options" not launching
- Next by Date: CertAddCertificateContextToStore CERT_STORE_ADD_REPLACE_EXISTING crashing CertGetCertificateContextProperty
- Previous by thread: Re: Starting application using keypad
- Next by thread: Re: Starting application using keypad
- Index(es):