Using hw keys in MS Smartphone

TomasNM

Member
Hi all.

I am beginner with b4ppc and I need help from someone,more experienced.
I want to develop an application,that should use hardware buttons(as shortcuts for functions) and arrow keys to control that.
After studying all of the documents,I am able to control my application with arrow keys,but here I have some problems,that I want to resolve:
1.I cannot handle numeric keypad(0-9,#,*,maybe also qwerty keys as in MotoQ)
2.I can handle middle button(enter),but after handling that,I get a problem with control this key from another applications even my is closed already. A typical example: xBar is an application,that allows you to switch between running programs by long press middle button. When I am using this key in my programs,I lose this functionality(long press of it),so I am unable to use xBar and after closing my application,I need to restart xBar in order to work.
Someone is able to help me with these problems?

Thanks in advance. Tomas
Edit/Delete Message
 

TomasNM

Member
...

I am handling the keys,following this tutorial...
http://www.b4x.com/help/hardware/index.html
That's not 'form_keybress',but 'HardKeyPressed' event from 'hardware.dll' library.
Can you please show me,how to handle that? Just a simple example form with label control or something similar,that will show,which key was pressed will be very useful,if possible of course.
Thanks a lot.
 

TomasNM

Member
...

Wow!

That works very well.
I didn't know about this:

Case Else:
label1.Text = Chr(specialKey)

Thanks once again.
 
Top