En/na Klaus Schmidinger ha escrit:
Well, after a weekend of consideration I decided to implement a function that can be used by background threads to queue a message for display (the thread can even wait for user input) in VDR 1.3.37. Since a plugin's MainMenuFunction can now (since VDR 1.3.32) be launched programmatically, a plugin that wants to do more than just display a message can always launch itself and interact with the user in the foreground.
It isn't working really well for my use case (dish position): while the dish is moving I'm trying to call QueueMessage either with Seconds=0 and Seconds=-1. Timeout is -1 (so that vdr should display the message no matter what). Instead of a steady message with the position updating in real time I just see a flash with the (same) position for a couple of messages, then the message disappears to show a new one with a new position.
I've abandoned the idea of implementing something like cPlugin::Popup() because it would only make things very complicated.
this one would have worked :-(
Bye