Kodi Community Forum
Problem with script VB on XMBC - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136)
+---- Thread: Problem with script VB on XMBC (/showthread.php?tid=297480)



Problem with script VB on XMBC - notf0und - 2016-11-21

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