Plugin question - returning to front row

0 views
Skip to first unread message

Adrian

unread,
Jun 13, 2009, 3:19:18 PM6/13/09
to frontpython-discuss.
hi everyone,

i build a small plugin to launch safari from front row.
this works so far.

now i would like to quit safari when front is shown again (by pushing
the menu key on the remote e.g.). i used the FRWasShown method with
the safari quit command, but this didn't work.
which event is triggered, when frontrow is up again? where do i have
to place the quit command?

best regards,
adrian

Jon Christopher

unread,
Jun 13, 2009, 5:22:57 PM6/13/09
to frontpyth...@googlegroups.com
Hum... you're working backwards from the way I usually think of
things. With PyeTV, the PyeTV code is
constantly monitoring the uiVisible state of the front row controller
to see if Front Row is visible again,
and so control returns to the PyeTV code.

If you do a "fire-and-forget" kind of launch, then when you press the
menu button your plugin's code may not be run.
If you're committed to that, then you might want to install a timer
which checks the uiVisible state.

I'd look at PyeTV's WaitController and do something similar.
http://code.google.com/p/pyetv/source/browse/trunk/PyeTVWaitController.py

Probably after the line:
log("FR ui is visible, so hiding windows")
you could quit safari.
Reply all
Reply to author
Forward
0 new messages