vrette wrote: 
> I've been using SqueezePlay for years with great success and really
> appreciate the effort. However, I've run into a bit of a snag. I'm
> attempting to automate the use of SqueezePlay (among other things) via
> remote. I'm using SqueezePlay to control a Touch, and displaying
> SqueezePlay on my TV. I've run into an issue where the Windows standard
> keyboard shortcut to close a program (ALT-F4) does not close
> SqueezePlay. Instead, it goes to preset # 4. I have the same issue on
> several computers. I've messed with this for a while and have not come
> up with an alternate shortcut to close the SqueezePlay window.  Is there
> another way to close Squeezeplay using a keyboard shortcut rather than
> having to drag out a mouse and/or keyboard?
> 
> Thanks

I've attached a patch that creates a quit action and as an example, maps
the lower case letter o to the quit action.

I can add the quit action in the next build, but I won't likely include
a key binding in InputToActionMap.lua as pressing the o key quits
squeezeplay immediately, no are you sure? prompts.


Code:
--------------------
    Index: share/applets/SlimBrowser/SlimBrowserApplet.lua
  ===================================================================
  --- share/applets/SlimBrowser/SlimBrowserApplet.lua     (revision 1101)
  +++ share/applets/SlimBrowser/SlimBrowserApplet.lua     (working copy)
  @@ -1727,6 +1727,12 @@
  ["scanner_fwd"] = function(self, event)
  return self.scanner:event(event)
  end,
  +
  +       ["quit"] = function()
  +               -- disconnect from Player/SqueezeCenter
  +               appletManager:callService("disconnectPlayer")
  +               return (EVENT_CONSUME | EVENT_QUIT)
  +       end,
  }
  
  
  Index: share/jive/InputToActionMap.lua
  ===================================================================
  --- share/jive/InputToActionMap.lua     (revision 1101)
  +++ share/jive/InputToActionMap.lua     (working copy)
  @@ -36,6 +37,7 @@
  ["e"]  = "scanner_rew",
  ["r"]  = "scanner_fwd",
  ["u"]  = "mute",
  +       ["o"]  = "quit",
  
  -- original
  ["/"]   = "go_search",
  
--------------------


+-------------------------------------------------------------------+
|Filename: SqueezePlayQuit.patch.txt                                |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=25118|
+-------------------------------------------------------------------+


Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.
------------------------------------------------------------------------
ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=96573

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

Reply via email to