PDA

View Full Version : locking down hardware buttons


derekcfoley
21-04-2008, 03:10 AM
Hi Guys

Wondered if anyone knew of a way of locking down all the hardware buttons with a registry change on WM5?

Or at least specific ones?

Reason being I'm developing a flash lite data driven app for a device specific service with issued handsets to users during a corporate event - they need to be "locked down" to stop the user activating the phone using the "make call" buttons etc.

Although I can make the Flash app run "full screen" I can't stop the other buttons switching to other apps.

Regards

Derek

curious george
21-04-2008, 04:09 AM
2 suggestions.

1 if you are trying to gain lock out control A_C's S2U2 program accomplashes this. If you need something other than his program I recommend that you PM him and asked him out he accomplished it with his lock.

2 you may want to try a program like hbutton. It would allow you to assign controls of the buttons to certain actions. One of the action options could be to do nothing. You could set them all to that.

chrisstavrou
21-04-2008, 08:05 AM
Try using GXOpenInput();
it will redirect all input screen/keys to your app and then you can ignore then if you want.

Chris

derekcfoley
17-05-2008, 07:35 PM
chrisstavrou

I've just googled that command and found this page...
http://msdn.microsoft.com/en-us/library/ms831632.aspx

Seems like a good solution - only problem is, I'm not a .Net developer, so how would I pass this into the Flash Lite App as a .swf is loaded on the handset?

is there a way of passing this system variable in almost like a command-line before the app is opened?

Or would I need an executable on the PocketPC to somehow pass that in opening flashlite and the .swf in one go?

derekcfoley
17-05-2008, 08:03 PM
Thanks for all the useful suggestions, I'm now following them up - cheers guys!