View Single Post
Copernicus's Avatar
Posts: 1,986 | Thanked: 7,698 times | Joined on Dec 2010 @ Dayton, Ohio
#699
Originally Posted by sixwheeledbeast View Post
Firstly, yes the UI is not very intuitive and can be frustrating.
Yup. The current macros UI was quite literally an afterthought, after I managed to get a lot of the internal code working. (And, after fighting with it over the past week, I'm realizing that it should have been part of the forethought...) But I figured I should go ahead and let folks try it out, even if I had to rip it out and start over.

One major problem is you can't go back and edit the macros commands, pressing the edit button seems to jump you to the Macro Properties Panel with no way to the edit section.
Yeah, I had this big idea to break everything down into "pack" / "macro" / "command" sections; but it hasn't made things all that much simpler so far. I don't really have a way to edit commands at all yet, you just have to delete and recreate them. I'll keep working on it...

Fortunately your LG TV keyset has the "sleep" command so I have the following macro.

Sleep > Pause 0 > Sleep > Pause 0 > Sleep > Pause 0 > Sleep > Select

The first time it worked perfectly 30 minutes sleep timer, so I reset the sleep timer and tried again.
Ever since that first go it has not worked. It sometimes stops on 10 minutes with the dialog box left open on the TV, sometimes 20 minutes.
Hmm. Sounds like I may be pushing the protocol timing a bit too hard; some devices really need commands to be repeated once or twice before they will acknowledge them. The current design just fires off a command once and goes on to the next one (and so it is like pressing a remote key very very quickly).

Also, a "Pause" of 0 seconds should essentially be a no-op. I'm using the Qt "QTimer" class for these commands, which can in theory support milisecond resolution, so I could put in support for fractions of a second if you need it...

I have tried 20 times now and never got it to work like the first go.
What do you think?
I have even tested removing and extending the sleep commands to no avail.
I suspect you might be able to get it to work by holding the N900 right up to the TV's IR receiver. If so, it probably means that there is some interference / weak signal / incorrect protocol timing going on, and allowing the signal to repeat would alleviate the problem.

I'll try setting up the macros to hold a keypress long enough for it to repeat once.

BTW, the "power search" feature uses the same no-repeat timing; do you know if it ever fails to switch on / switch off your TV?

Finally, although I like the idea of using the keyboard to fire off the macro's.
IMO is this not going to create conflicts if you decide to follow OMP and use the top row of keys for switching your tabs.
Hmm. Is the Open Media Player the standard? Let me take a look at it. If nothing else, I could certainly put an option in the Preferences window to setup the keyboard following the OMP system. (I do still want to allow the use of the entire keyboard when IR keyboarding is possible, as with reverse multitap.)

Thanks!
 

The Following 3 Users Say Thank You to Copernicus For This Useful Post: