Re: Starting application using keypad
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Mon, 15 Sep 2008 09:20:47 -0700
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" <shaihi@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/browse_thread/thread/8e65b872db7f2831/c8eafe8a2a1a8c91?lnk=st&q=%22ResetCmd%22+group%3A*.microsoft.public.windowsce.*#c8eafe8a2a1a8c91
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
- Starting application using keypad
- Prev by Date: Re: Application Shortcuts Embedded CE 5.0
- Next by Date: Re: Windows CE 6.0 SNTP settings
- Previous by thread: Re: Starting application using keypad
- Next by thread: Re: Starting application using keypad
- Index(es):