Hello,
I have a problem with Kodi, a script runs in windows that detects a pressed key, this works fine in Spotify and others, but when i’m running kodi those keys doesn’t works. I am using this code:
Quote:case SELECT:
if (uart1 != SELECT)
errorDetected = 1;
else{
keybd_event(VK_RETURN, 0x0D, 0, 0);
keybd_event(VK_RETURN, 0x0D, KEYEVENTF_KEYUP, 0);
}
break;
case BACK:
if (uart1 != BACK)
errorDetected = 1;
else{
keybd_event(VK_BACK, 0, 0, 0);
keybd_event(VK_BACK, 0x0D, KEYEVENTF_KEYUP, 0);
}
break;
The keys that I am using in this code are Select and Back; using my laptop keyboard I press Enter key and Backspace key to simulate this. Thanks