Hi, I have the keybd_event working well, where i send a series of keybd_events to the listview and it adjusts the selected item accordingly. However, for some reason it never seems to act on the '/' character, it just seems to ignore it. Any one have any ideas?
DbLVehicleID1->SetFocus();
unsigned char cVehicleID[7];
BYTE key;
strcpy(cVehicleID,Edit1->Text.c_str());
key = (BYTE)cVehicleID[ListIndex];
keybd_event(key,0,0,0);
ListIndex++;
key = 0;
if (ListIndex >= Edit1->Text.Length())
{
ListIndex = 0;
ListSelectionTimer->Enabled = false;
}
here is my code if any one has a clue as to the problem.
The code is in a timer event.
Thanks
DbLVehicleID1->SetFocus();
unsigned char cVehicleID[7];
BYTE key;
strcpy(cVehicleID,Edit1->Text.c_str());
key = (BYTE)cVehicleID[ListIndex];
keybd_event(key,0,0,0);
ListIndex++;
key = 0;
if (ListIndex >= Edit1->Text.Length())
{
ListIndex = 0;
ListSelectionTimer->Enabled = false;
}
here is my code if any one has a clue as to the problem.
The code is in a timer event.
Thanks