Hi,

I need to invoke my application on press of the hardware button.
I understand that I need to change the settings in the pocket pc.
In the Settings -->Personal --> Buttons.

My questions are,
1) How can I add my application in the "Assign a Program" drop down
list?
Is there any API available for this?

2) If I need to invoke my application by press and holding a hard key
button,
will it be possible in the Pocket PC by modifying the setting?
Is it possible to add another entry in the Buttons list in Settings
like "Button (Hold)"?
Is there any API available?

I believe that this can be done by modifying the settings in the
registry.
Please let me know what keys in the registry should be changed.

Thanks in advance
Sri

Re: Changing Registry question by ---

---
Thu May 25 06:30:56 CDT 2006

On 25 May 2006 03:10:49 -0700, "Sri" <srinivasan222@gmail.com> wrote:

>Hi,
>
>I need to invoke my application on press of the hardware button.
>I understand that I need to change the settings in the pocket pc.
>In the Settings -->Personal --> Buttons.
>
>My questions are,
>1) How can I add my application in the "Assign a Program" drop down
>list?
>Is there any API available for this?

My application appears in the list of applications assignable to buttons, and I
did not take any explicit steps to enable it. I just did the normal install as
outlined in Muench's book on Windows CE. Apparently one of those "boilerplate"
registry settings specified in the INF file did the trick.


Robert Scott
Ypsilanti, Michigan

Re: Changing Registry question by Sri

Sri
Thu May 25 06:52:04 CDT 2006

Thanks for your reply. If I run the installable file(cab file) in the
Pocket PC, the application is visible in the assignable programs.. But
I need to programmatically assign the application to a hardware button.
Please let me know how to do that programmatically..

Thanks
Sri


Re: Changing Registry question by ---

---
Thu May 25 11:39:45 CDT 2006

On 25 May 2006 04:52:04 -0700, "Sri" <srinivasan222@gmail.com> wrote:

>Thanks for your reply. If I run the installable file(cab file) in the
>Pocket PC, the application is visible in the assignable programs.. But
>I need to programmatically assign the application to a hardware button.
>Please let me know how to do that programmatically..

It is not a very friendly thing to do. The user should have the ultimate say as
to which buttons do what. For you to grab one of his buttons that he as
assigned manually might piss him off.


Robert Scott
Ypsilanti, Michigan

Re: Changing Registry question by r_z_aret

r_z_aret
Thu May 25 16:25:30 CDT 2006

On Thu, 25 May 2006 16:40:24 GMT, ---@--- (Robert Scott) wrote:

>On 25 May 2006 04:52:04 -0700, "Sri" <srinivasan222@gmail.com> wrote:
>
>>Thanks for your reply. If I run the installable file(cab file) in the
>>Pocket PC, the application is visible in the assignable programs.. But
>>I need to programmatically assign the application to a hardware button.
>>Please let me know how to do that programmatically..
>
>It is not a very friendly thing to do. The user should have the ultimate say as
>to which buttons do what. For you to grab one of his buttons that he as
>assigned manually might piss him off.

That depends very much on how the program and handheld are used. Some
handhelds are set up so users see a very few applications (perhaps <
2). For some of those situations, remapping the hardware buttons makes
a lot of sense, and even helps users.

(Some of the reasons for such tight control are legitimate. Sometimes
employees act like and are treated like children. Either way, some
places have such rules and users and programmers have to follow them.
Whether you are I think they make sense doesn't matter.)


>
>
>Robert Scott
>Ypsilanti, Michigan

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com

Re: Changing Registry question by ---

---
Thu May 25 21:15:30 CDT 2006

On Thu, 25 May 2006 17:25:30 -0400, r_z_aret@pen_fact.com wrote:

>...(Some of the reasons for such tight control are legitimate. Sometimes
>employees act like and are treated like children. Either way, some
>places have such rules and users and programmers have to follow them.
>Whether you are I think they make sense doesn't matter.)

I guess I have to agree with you. I just finished modifying some Win32 code to
prevent the (unskilled) workers who use this application from having access to
the file deletion and renaming capabilities of the Exporer-type Open File Common
Dialog. (Desktop Windows, not Pocket PC).
Robert Scott
Ypsilanti, Michigan

Re: Changing Registry question by Sri

Sri
Thu May 25 22:39:06 CDT 2006

Thanks for your comments.. Is there any way to launch application on
long pressing of the hardware key?
Is there any settings that we can change to make it work? Please let me
know..

Thanks
Sri


Re: Changing Registry question by Frank

Frank
Sun May 28 15:08:35 CDT 2006

25.05.06 12:10, Sri schrob:

> I need to invoke my application on press of the hardware button.
> I understand that I need to change the settings in the pocket pc.
> In the Settings -->Personal --> Buttons.
>
> My questions are,
> 1) How can I add my application in the "Assign a Program" drop down
> list?

If I see it correctly, in the dropdown list for button assignment appear
all those files that are listet in the start menu (EXEs and shortcuts).
--
Gruß | Greetings | Qapla'
http://www.stud.tu-ilmenau.de/~frst-ii/