Handheld device

M

M. Bruil

--> Does someone have a short code example ??



Hi,

A customer requested to permanently activate the red Function key on a HHP
Dolphin 9550. This key behaves like a SHIFT key for function keys. They have
to make a lot of key entries:

RED KEY - F1
RED KEY - F2
RED KEY - F3

.... and so on...

It would be very desirable if the RED KEY could be permanently 'pressed',
but it also has to be possible to deactivate ('unpress') the RED KEY.

Does anybody know how to do this using VB.NET?

Regards,

Marcel
 
P

Peter Hartlén

I think that is hard to accomplish.

The red key is a hardware key that remaps the other keys. So instead of 'h'
it sends F8 to the system. The best solution would be if Handheld could
produce a "CapLock"-function for the red (and blue) key.

I tried out this "hack" which might or might not work in your application,
perhaps you could get something out of it...

private void textBox1_KeyDown(object sender,
System.Windows.Forms.KeyEventArgs e)
{
if( Keys.F24 == e.KeyCode )
{
bRedLockOn = !bRedLockOn;
return;
}

if( bRedLockOn )
{
switch( e.KeyCode )
{
case Keys.A:
textBox1_KeyDown(sender, new KeyEventArgs(Keys.F1));
bDisableKeyPress = true;
return;
}
}

switch( e.KeyCode )
{
case Keys.F1:
this.label1.Text = "F1 pressed";
break;
default:
this.label1.Text = e.KeyCode.ToString();
break;
}

}

private void textBox1_KeyPress(object sender,
System.Windows.Forms.KeyPressEventArgs e)
{
if( bDisableKeyPress )
{
e.Handled = true;
bDisableKeyPress = false;
return;
}
}

cheers,

Peter
 
N

NedMetric Solutions BV

Thanks Peter,

But it is even a little more complicated. My app should switch this function
key permanent in order for another third-party application to act more
user-friendly.

Marcel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top