Hi, thanks for pulling/replying,
On Mon, 18 Oct 2010 12:51:23 +0200, Zeljko Ametovic <[email protected]> wrote:

> Updated
>
> Cheers,
> Zeljko
>
>
>
>  def onAction( self, action ):
>>
>>     if ( action.getButtonCode() in CANCEL_DIALOG):
>>
>>         self.exit_script()
>>
>>
> catches all the action,e.g, if you were to remove "self.exit_script()"  
> you
> couldnt close the script. you can define other actions in there as well.  
> let
> us know what you are trying to achieve and maybe we can help
MPD Client has control buttons (Play,Pause,Stop,Prev,Next) to control  
remote server. script.mpdc handles these buttons fine. I wanted the script  
to handle (let's say) XBMC events (when user pushes 'Play' on remote  
control).
For example:
You are listening to XBMC audio from local files, you have something in  
playlist.
You fire up MPD Client, to control another MPD which does not need stream  
to you and does not influence your music at all. When you push STOP on  
your remote, MPD Client stops the server, that is fine. But XBMC stops  
playing, which I do not want.

btw ... another thing, you are using action.getButtonCode() is it better  
aproach then action.getId() ? why?

thanks
>
>
>
> On Mon, Oct 18, 2010 at 1:29 AM, Libor Zoubek <[email protected]>  
> wrote:
>
>> addon - script.mpdc
>> version - 0.9.7
>> url - git://github.com/lzoubek/xbmc-plugin-mpdc.git
>> revision - HEAD
>> branch - master
>>
>> xbmc version - dharma beta, eden-pre
>>
>> btw
>>
>> How does xbmcgui.WindowXMLDialog onAction work? Am I able to catch  
>> action
>> (for example STOP), handle it and not to pass it on to XBMC?
>>
>> How do <include> in addon skins work? Am I able to include something  
>> from
>> current scheme? Or define my own includes?
>> I am asking, because Transparency! has nice animations when focusing  
>> list
>> items and buttons and I'd like script.mpdc to look similar.
>>
>> thanks,
>>
>> Libor
>>
>>
>> ------------------------------------------------------------------------------
>> Download new Adobe(R) Flash(R) Builder(TM) 4
>> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
>> Flex(R) Builder(TM)) enable the development of rich applications that  
>> run
>> across multiple browsers and platforms. Download your free trials today!
>> http://p.sf.net/sfu/adobe-dev2dev
>> _______________________________________________
>> Xbmc-addons mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/xbmc-addons

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to