I had the same problem, and figured out the Squeezebox was not sending
plain "1", "2", "3" keys as dictated in the sample code provided.  

In order to get the correct values, use xplhal manager, and click the
monitor icon.  You can watch that to see what values the Squeezebox
sends when you press "1", "2", "3" on the remote.

For me, I had to change my script to...works fine now!

sub slimdev_slimserv_19216813_trigger(XplMsg)
' We're only interested in button presses
If not lcase(xpl.GetParam(XplMsg,"{schema}",True)) = "remote.basic"
Then
Exit Sub
End If

' We're only interested if the player is powered off
If not lcase(xpl.getparam(XplMsg,"power",true)) = "off" Then
Exit Sub
End If

if lcase(xpl.getparam(XplMsg,"keys",true)) = "7689f00f" Then
sys.value("SlimShutdown") = "1"
ElseIf lcase(xpl.getparam(XplMsg,"keys",true)) = "768908f7" and
sys.value("SlimShutdown") = "1" Then
sys.value("SlimShutdown") = "2"
ElseIf lcase(xpl.getparam(XplMsg,"keys",true)) = "76898877" and
sys.value("SlimShutdown") = "2" Then
sys.value("SlimShutdown") = "3"
call sys.execute("poweroff.exe","/h 127.0.0.1",False)
End If  
End Sub


-- 
gbonawitz
------------------------------------------------------------------------
gbonawitz's Profile: http://forums.slimdevices.com/member.php?userid=5622
View this thread: http://forums.slimdevices.com/showthread.php?t=35964

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

Reply via email to