Hi,

I've just seen what some users do with RandomPlay to associate a button
with a plugin function, and I want to do the same but can't make it
work.

I've placed the following in my mapfile.

1.hold  = modefunction_PLUGIN.Plugins::RateMe->button1


My plugin is called RateMe and otherwise is working. When I press and
hold 1 I get:

2005-12-06 13:13:10.9574 irCode:
modefunction_PLUGIN.Plugins::RateMe->button1, 00:04:20:05:b9:26

2005-12-06 13:13:10.9583 irCode not defined:
modefunction_PLUGIN.Plugins::RateMe->button1

2005-12-06 13:13:10.9586 trying to execute button:
modefunction_PLUGIN.Plugins::RateMe->button1

2005-12-06 13:13:10.9592 executing button:
modefunction_PLUGIN.Plugins::RateMe->button1

So it understands the map file, but it seems to not recognise the
function. My getFunctions in Plugins::RateMe returns \%functions

which is a hash with keys 'button1' etc and values are codereferences.
The code is very simple:

sub {Slim::Utils::Misc::msg("RateMe saw button 1\n")};

it appears it isn't executing as I don't see the message in the log (I
have --d_plugins enabled)

Any ideas?

Malcolm


-- 
mwphoto
------------------------------------------------------------------------
mwphoto's Profile: http://forums.slimdevices.com/member.php?userid=652
View this thread: http://forums.slimdevices.com/showthread.php?t=18837

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to