Chris wrote: > Duncan Webb schrieb: >> Chris wrote: >> >>> Hello list, >>> >>> I was working on a Idlebar-plugin for showing the current song mpd is >>> playing. >>> I was wondering if it would be possible to bind keys to an >>> idlebar-plugin, so I can press [next] on my remote to let mpd jump to >>> the next song. Is this possible or do I have to code something like the >>> colorbutton-plugin? >>> >> This is all done in the event handler. You can choose what you want to >> handle, simply print event.name and see what come out when you press >> buttons. >> >> > Back to topic: > I just played around a bit. I tried to add an eventhandler function to > my idlebar plugin, but it wasn't recognised. I suppose I have to make an > extra-plugin to handle keypresses? DemonPlugin?
You may need two plug-ins in the same module for this, The idlebar plug-ins' eventhandler, as you noticed, is not called these plug-ins are intended just so show information. Daemon plug-ins can do any thing but can be more complicated to write and are quite difficult to use as an idlebar plug-in as they need to tell the idlebar how much space they take up. You could use the daemon plug-in to pass commands the idle bar plug-in. Not quite sure the best way to do this. May be someone else has an idea. Duncan ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel