[mythtv-users] command line to trigger jumppoints

johnellis at alumni.creighton.edu johnellis at alumni.creighton.edu
Sat Jan 29 13:05:50 EST 2005


I am trying to do something that should be possible, but I am running into
trouble.  Basically, I want to evoke a jumppoint in mythfrontend from a
command line (shell script).  

 

Here is the use case:

I use mythvideo mostly.  I have about 50 movies and growing in there (a lot
of HD space).  I have a harmony remote that has 6 buttons on an lcd screen.
I want to program the buttons for things like unseen (I added a flag to the
mythvideo table), comedy, drama, etc.  My plan was to have the buttons exec
a shell script that ran a query like:

Update videometadata set browse = 1 where seen = 0

Then trigger the video browse jumppoint.

 

I am thinking a simple command line utility that would send a keypress event
to the mythfrontend window would do the trick.

xkeypress <F3>

 

Here is what I’ve tried:

I found some perl libraries that do stuff like this:

X11::Protocol

X11::SendEvent

But I can’t seem to figure out how to write a script that does this.  The
main problem seems to be finding the window.  I have no knowledge of perl
unfortunately, so I’m not even sure if one can use these types of libraries
in shell scripts, anyway.

 

Any help would be appreciated.

 

thx

 

John

 


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.840 / Virus Database: 571 - Release Date: 1/19/2005
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20050129/300c7eac/attachment.htm


More information about the mythtv-users mailing list