kalhimeo Posted October 19, 2017 Report Share Posted October 19, 2017 From my previous tests, I noted that these commands would start a search on my Nexus Player (to be used with flirc_util) : "8 105" (LWIN + F14) or "4 44" (ALT + SPACE) You may want to give them a try Quote Link to comment Share on other sites More sharing options...
PeterMac Posted October 29, 2017 Report Share Posted October 29, 2017 Thanks, you mean command line with this command for example: "flirc_util.exe record_api 8 105" ? Quote Link to comment Share on other sites More sharing options...
kalhimeo Posted October 29, 2017 Report Share Posted October 29, 2017 as far as I remember, yes, that s the way ;-) Quote Link to comment Share on other sites More sharing options...
foxil82 Posted November 3, 2017 Report Share Posted November 3, 2017 (edited) Hello, I need codes for flirc_util.exe record_api 1. KEYCODE_CHANNEL_UP 2. KEYCODE_CHANNEL_DOWN 3. KEYCODE_DVR 4. KEYCODE_GUIDE Thank You very much! Edited November 3, 2017 by foxil82 Quote Link to comment Share on other sites More sharing options...
kalhimeo Posted November 3, 2017 Report Share Posted November 3, 2017 (edited) 3 hours ago, foxil82 said: Hello, I need codes for flirc_util.exe record_api 1. KEYCODE_CHANNEL_UP 2. KEYCODE_CHANNEL_DOWN 3. KEYCODE_DVR 4. KEYCODE_GUIDE Thank You very much! From my old notes (to be verified) : 402 KEYCODE_CHANNEL_UP -> 156 102 403 KEYCODE_CHANNEL_DOWN -> 157 102 362 KEYCODE_GUIDE -> 141 102 I don't have anything for DVR Edited November 3, 2017 by kalhimeo 1 Quote Link to comment Share on other sites More sharing options...
yawor Posted November 3, 2017 Report Share Posted November 3, 2017 I can't find anything about DVR, but you can try one of these: Media Select Computer 136 102 Media Select TV 137 102 Media Select WWW 138 102 Media Select DVD 139 102 Media Select Telephone 140 102 Media Select Program Guide 141 102 Media Select Video Phone 142 102 Media Select Games 143 102 Media Select Messages 144 102 Media Select CD 145 102 Media Select VCR 146 102 Media Select Tuner 147 102 Also as you can see, there's a code for the program guide in these. There's nothing else in the HID tables related to this, so if it doesn't work then probably the application itself doesn't support these key codes. Quote Link to comment Share on other sites More sharing options...
foxil82 Posted November 3, 2017 Report Share Posted November 3, 2017 10 hours ago, kalhimeo said: From my old notes (to be verified) : 402 KEYCODE_CHANNEL_UP -> 156 102 403 KEYCODE_CHANNEL_DOWN -> 157 102 362 KEYCODE_GUIDE -> 141 102 I don't have anything for DVR Thank You very much! Quote Link to comment Share on other sites More sharing options...
PeterMac Posted November 5, 2017 Report Share Posted November 5, 2017 (edited) On 19.10.2017 at 5:09 PM, kalhimeo said: From my previous tests, I noted that these commands would start a search on my Nexus Player (to be used with flirc_util) : "8 105" (LWIN + F14) or "4 44" (ALT + SPACE) You may want to give them a try I tried this two commands but this is not what should be, it's not right "Search" command for Shield TV, but thank you anyway. For now I assign "S" button and this is only work for start Voice Search in YouTube app, but in Home do not work for Voice Google Assistant and any other app. From my keyboard Logitech K400 "Search" button work correctly everywhere, in YouTube app it start Voice Search, in Home start Voice Google Assistant. --- Only hope in Jason and yawor left to let me assign "AC Search" 0x221 button from HID Consumer table, this is probably same button like on my Logitech K400 keyboard. So please Jason/yawor make it possible. Edited November 5, 2017 by PeterMac Quote Link to comment Share on other sites More sharing options...
kalhimeo Posted June 25, 2018 Report Share Posted June 25, 2018 On 1/8/2016 at 7:05 PM, kalhimeo said: I played a bit more with the keycodes and the record_api command today. I have found the HID code for DPAD_CENTER, no need to use the KEYCODE_NUMPAD_5 trick anymore. The code is "0x0c 0x0041" which can be mapped via flirc using "65 102". It's really a pity that we can't use the full range of the "Consumer Devices" table, that would solve the HOME problem with the code "0x0c 0x0223" (virtually 547 102) without the need for root. Maybe jason could review a bit the handling of the basic HID codes: since there are only 231 characters in the table "7 - Keyboard/Keypad", could we use some codes from 232 to 255 as exceptions to fully cover the "12 - Consumer Devices" table ? For now you are using the code 102 (Keyboard Power) as an exception to send the first 255 HID codes via the modifier byte, but as we know, one byte is not enough to cover the 667 commands of the "12 - Consumer Devices" table. Could we imagine using the codes 253, 254 and 255 for this purpose ? Therefore "253" would cover HID commands from 0-255, "254" from 256-511, and "255" from 512 to 667. I think that this would make more sense than using the code 102. We could even imagine to cover more tables with the remaining numbers if needed. An other solution to fix the HOME button on Android TV only, would be to hard code a unique byte sequence which would reproduce "0x0c 0x0223". Thanks to the courageous readers who hold till the end ^^ Laurent Hi Jason and Yawor, Is there anything new, maybe with the new Flirc revision, to make the record api able to use codes above 255 in the "Consumer device (12)" table ? Could you maybe consider my suggestion for a future software update ? Or create a dedicated Flirc Profile for Android with buttons that cannot be mapped atm (ie. KEYCODE_SEARCH = HID 0x0c 0x0221) ? Thank you very much in advance. Best regards, Laurent Quote Link to comment Share on other sites More sharing options...
TMWNN Posted February 22, 2020 Report Share Posted February 22, 2020 On 6/25/2018 at 3:02 AM, kalhimeo said: Is there anything new, maybe with the new Flirc revision, to make the record api able to use codes above 255 in the "Consumer device (12)" table ? You got your wish On 6/25/2018 at 3:02 AM, kalhimeo said: Or create a dedicated Flirc Profile for Android with buttons that cannot be mapped atm (ie. KEYCODE_SEARCH = HID 0x0c 0x0221) ? Being able to directly send Android keycodes is still not possible unless there is another undocumented method, but it is possible to invoke KEYCODE_SEARCH. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.