meaculpa
November 23rd, 2002, 05:06 AM
The askey plugin recognize bad some button of remote control.
I've modify dll in file the original function SendKey() with the follow routine
and now work well.
void SendKey(int key)
{
// Convert to Hex
char Buffer[100];
unsigned int pippo;
pippo = (unsigned int) key;
Buffer[0] =char(48 + ((pippo>>12) & 0x7));
Buffer[1] =char(48 + ((pippo>>9) & 0x7));
Buffer[2] =char(48 + ((pippo>>6) & 0x7));
Buffer[3] =char(48 + ((pippo>>3) & 0x7));
Buffer[4] =char(48 + ((pippo ) & 0x7));
SendString(Buffer);
}
I've modify dll in file the original function SendKey() with the follow routine
and now work well.
void SendKey(int key)
{
// Convert to Hex
char Buffer[100];
unsigned int pippo;
pippo = (unsigned int) key;
Buffer[0] =char(48 + ((pippo>>12) & 0x7));
Buffer[1] =char(48 + ((pippo>>9) & 0x7));
Buffer[2] =char(48 + ((pippo>>6) & 0x7));
Buffer[3] =char(48 + ((pippo>>3) & 0x7));
Buffer[4] =char(48 + ((pippo ) & 0x7));
SendString(Buffer);
}