I want to use the A and B hardware button on the C5 for custom actions. I can only get the A and B button to send a string with Alpha characters(A-Z). I would like to assign an unusual character to distinguish it from keyboard entry. I posted my code below, do you know of another way to assign a keycode to the buttons?
//header section
using Intel.Healthcare;
using Intel.Healthcare.Device;
using Intel.Healthcare.Exception;
//form init
btn = new Buttons(this.Handle);
btn.RegisterKeyPressAction(Buttons.HCButtonType.BT_Barcode, "B");
btn.RegisterKeyPressAction(Buttons.HCButtonType.BT_MedAppA, "A");
btn.RegisterKeyPressAction(Buttons.HCButtonType.BT_MedAppB, "B");
//btn.RegisterKeyPressAction(Buttons.HCButtonType.BT_MedAppA, "{ALT}+A"); //will not work
//btn.RegisterKeyPressAction(Buttons.HCButtonType.BT_MedAppA, "{ALT}A"); //will not work
//btn.RegisterKeyPressAction(Buttons.HCButtonType.BT_MedAppA, "|"); //will not work
//btn.RegisterKeyPressAction(Buttons.HCButtonType.BT_MedAppA, "3"); //will not work
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
string sResult = string.Format("down KeyValue {0}, KeyCode {1}, Shift {2}, Control {3}, Alt {4}",
e.KeyValue.ToString(), e.KeyCode.ToString(), e.Shift.ToString(), e.Control.ToString(), e.Alt.ToString());
MessageBox.Show(sResult);
}
Thanks
Mitchell McCollum
Takeing control of A and B hardware button on Motion Computing C5
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.


