Handheld device

  • Thread starter NedMetric Solutions BV
  • Start date
N

NedMetric Solutions BV

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
 
M

Marina

Define a local variable that means that the key is pressed for the purposes
of your application. The user can then do something to make your code set
the variable to true.

Then, in the rest of the code, if the user happened to press the red key, or
if your variable is set to True, then act as if it is true.
 
T

Tom Spink

One said:
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:
<snippedy-doo-dah>

Hi Marcel,

Are you talking about some arbitrary application that responds to the
"red-key"? Or, is it your own software that processes the "red-key"? If
it's the former, then if you're on Windows, you'll probably need to do a
bit of P/Invoke to set the state of the "red-key" to 'on'. Also, if this
is the case, then you'll need the key-code for the "red-key".

If it's the latter, then you can simply add some logic to your application
to decide whether or not to listen to the "red-key".

I'm going to assume you need to toggle it for some arbitrary application, in
which case, you should take a look at the following Windows API call:

UINT SendInput ( UINT nInputs, LPINPUT pInputs, int cbSize );

(URL may wrap)
http://msdn.microsoft.com/library/d...eference/keyboardinputfunctions/sendinput.asp
 

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