Thanks Jason. Ok, I got that thanks. It's not that crude really :) It worked ok to make a macro and now (of course) there are more things to get confused over.
First snag was that the keyboard didn't do what expected. I paired a Bluetooth keyboard to the TV and tested what each F key does and I expected just to choose the matching key on the Flirc setup to make it do what I wanted. But they were all doing different things when I did that, so I had to just go through each F key and see what it actually did when Flirc plugged into the TV. I found quite a few functions anyway so then I tried to make the macro I wanted and found problem 2.
That was that I need a pause command. What I'm trying to do is set up a key that would switch on and off HDR+ mode. (I know it's not useful for most stuff but it looks nice with computer animations and it needs about 20 keypresses to get there.) I found that I can make a macro that will select Picture Mode but then the TV seems to want a second or two to get ready and by that time the rest of the macro that would navigate to the required function has already run. I tried putting in 50 'Space' keys hoping that might force an artificial pause but it didn't work.
I read a couple of forum posts and it looks like a 'Pause / Wait' function isn't available. Is that right? Maybe there's a different key that'll take me into the Picture menu, I'll look for that. Thanks for the help with the macro setup, do you have any suggestions about my other snags? Thanks.