Paul Webster wrote: 
> Sorry for sending you down that route...

It's all part of the fun!  

I've had a couple of days away from this, but today I've got a
rudimentary Applet set up to call my script with the necessary
arguments.  It's a bit of an uphill struggle at the moment!

[image:
http://www.cjh.me.uk/MyPhotobucket/cache/DIYHifi/Jivelite/jivelite0005_512.jpg]

I'd -like- to have fewer menu items, with text that toggles depending on
the player state, i.e. if the internal player isn't running then it
should say 'Start SqueezeLite...' and if it's already running then it
should say 'Kill SqueezeLite....' etc.  My bash script can do those
things, but I'm struggling with the Jive/Lua menus.

And I'd -like- the 'Start SqueezeLite...' menu items to lead to another
menu level, where I can enter the player name for instance, but although
I can bring up a text entry window I've had enormous trouble (by which I
mean I've failed) getting the entered text back into the settings file. 
Whenever I try to update my settings file (e.g. with
self:getSettings()['sqname'] = sqltname) the settings file seems to get
corrupted from 
Code:
--------------------
    settings = {sqname="Squeezelite",}
--------------------
 to 
Code:
--------------------
    settings = {sqname={s="Squeezelite",},}
--------------------

I can't figure out what's adding that '{s=', but whatever it is it means
that I can no longer read back the settings, 

And I don't know how to make a 2nd level menu - the 'SimpleMenu' command
puts all the menu entries at one level, so I can't see how to make a
sub-menu underneath one of those menu items.

So any broad pointers on how to do all this would be really useful. 
I've looked at the info in the wiki (e.g. 'here'
(http://wiki.slimdevices.com/index.php/SqueezePlay_Applet_Guide)), and a
number of sample Applets, but I'm still struggling.  The way the
'Squeezebox Name' applet works is what I'm looking for - it remembers
the text you type between visits to that menu - but I can't even find
the file where that code exists!


------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110040

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

Reply via email to