GKL Posted November 6 Report Posted November 6 Situation: Fiirc USB v2 to control my KPN TV set-top box. (Sagemcom DIW7022 modified) wit Harmony Hub. I have a working configuration downloaded from This Website. But some controls are missing. I can control those with a Logitech K400r keyboard plugged into the STB. so I want to add those functions via a record_api script in a .bat file. I found the HID codes after quite a lot of online research. The script has randomly (?) worked 2 times, but 99% of the times it just hangs waiting for a IR input at the first button. This is on a w11 laptop and a w11 desktop PC. I tried compatibility modes XP, vista, 7 , 8. Different USB port etc. @echo off if exist "C:\Program Files\Flirc" cd "C:\Program Files\Flirc" if exist "C:\Program Files (x86)\Flirc" cd "C:\Program Files (x86)\Flirc" flirc_util.exe wait flirc_util.exe format echo Press button: ZoomLevel3 && flirc_util.exe record_api 0x2 0xA6 echo Press button: PowerOff && flirc_util.exe record_api 50 102 echo Press button: 1 && flirc_util.exe record_api 0 30 echo Press button: 2 && flirc_util.exe record_api 0 31 echo Press button: 3 && flirc_util.exe record_api 0 32 echo Press button: 4 && flirc_util.exe record_api 0 33 echo Press button: 5 && flirc_util.exe record_api 0 34 echo Press button: 6 && flirc_util.exe record_api 0 35 echo Press button: 7 && flirc_util.exe record_api 0 36 echo Press button: 8 && flirc_util.exe record_api 0 37 echo Press button: 9 && flirc_util.exe record_api 0 38 echo Press button: 0 && flirc_util.exe record_api 0 39 echo Press button: Skip back && flirc_util.exe record_api 182 102 echo Press button: Skip forward && flirc_util.exe record_api 181 102 echo Press button: page up && flirc_util.exe record_api 156 102 echo Press button: page down && flirc_util.exe record_api 157 102 echo Press button: audio next language && flirc_util.exe record_api 141 102 echo Press button: big step back && flirc_util.exe record_api 41 102 echo Press button: ZoomLevel1 && flirc_util.exe record_api 1 102 echo Press button: ZoomLevel2 && flirc_util.exe record_api 52 102 echo Press button: Rewind && flirc_util.exe record_api 180 102 echo Press button: Play && flirc_util.exe record_api 232 102 echo Press button: Fast forward && flirc_util.exe record_api 179 102 echo Press button: Record && flirc_util.exe record_api 178 102 echo Press button: Pause && flirc_util.exe record_api 176 102 echo Press button: Stop && flirc_util.exe record_api 183 102 echo Press button: Up && flirc_util.exe record_api 66 102 echo Press button: Right && flirc_util.exe record_api 69 102 echo Press button: Down && flirc_util.exe record_api 67 102 echo Press button: Left && flirc_util.exe record_api 68 102 echo Press button: OK && flirc_util.exe record_api 65 102 echo Press button: Back && flirc_util.exe record_api 548 102 echo Press button: red && flirc_util.exe record_api 105 102 echo Press button: green && flirc_util.exe record_api 106 102 echo Press button: yellow && flirc_util.exe record_api 108 102 echo Press button: blue && flirc_util.exe record_api 107 102 echo Press button: Enter && flirc_util.exe record_api 0 40 echo Press button: LCD - Home && flirc_util.exe record_api 8 40 echo Press button: Info && flirc_util.exe record_api 21 102 echo Press button: Rotate && flirc_util.exe record_api 0x2 0xAA echo Press button: Screenshot && flirc_util.exe record_api 0x2 0x5B Quote
jason Posted November 7 Report Posted November 7 try putting in a sleep 200 ms after each record. You probably have a race condition. Quote
jason Posted November 7 Report Posted November 7 wait, at the first record? That doesn't make sense. What if you do the command by itself without all the other stuff in front of it? Just do this on it's own: flirc_util.exe record_api 0x2 0xA6 If that works reliably, it's something else related to windows Quote
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.