shen wrote:
gorstk Wrote:
I am sure xplhal can do this.
Setup a 'determinator' in xplhal to listen for the IR message of the
'special' button. Then set the action to launch a program.
Not really.
I did the following:
Installed xPLHAL Manager 1.53
It can see my SqueezeBox in "xPL" devices so far.
According to
http://www.google.com/search?q=cache:vnYJSVMRfOwJ:www.xplproject.org.uk/modules.php%3Fop%3Dmodload%26name%3DSections%26file%3Dindex%26req%3Dprintpage%26artid%3D34+xpl+slimserver+execute+program&hl=de&gl=de&ct=clnk&cd=11
saying
SlimServer's xPL interface can handle infra-red signals in a variety of
ways. By default, no xPL messages are sent when you press a button on
your remote control. To change this, do the following:
- Open the xPLHal Manager and click on xPL Devices.
- Your player(s) should be listed, along with any other xPL devices you
may have, in the right-hand window.
- Double-click on the name of your player to bring up it's
configuration window.
- Select infrared from the list of configurable items.
- The value will probably be set to "none". Delete the current value,
and enter the word buttons
- Click OK.
Your player will now send an xPL message whenever you press a button on
it's remote control.
this does not work for me. Double clicking the player I get an error
saying
_No_information_is_currently_available_about_this_device._This_device_has_not_issued_a_config.list_message,_therefore_xPLHal_is_not_aware_of_which_items_can_be_cofigured_
Looking at the integrated xPL Monitor, I can see messages from my
SqueezeBox coming in.
I'm using SlimServer 6.3.0 with SoftSqueeze 2.7 and a SqueezeBox v3
with the latest firmware () installed.
In the slimserver web interface (http://127.0.0.1:9000)
Server settings --> plugins --> ensure xPL interface checkbox is ticked
and click on apply
Server settings --> plugins --> xpl settgins (at the bottom of page for
me) --> heartbeat interval 5, infra red processing raw
In xplhal help menu --> update plugin library --> select all --> ok
In xplhal load up tools menu --> xpl monitor
Press the down button on your remote (or whichever button you want to
activate the script)
I get the message in xpl monitor
trig slimdev-slimserv.BATHROOM
zone=slimserver
device=BATHROOM
keys=7689b04f
power=off
In xplhal
right click on 'determinatory' --> select new --> click next
type in name and description that you wish --> next
add button (this is your ocnditions upon script will be run)
select the slimdevices player e.g. for me slimdev-slimserv.bathroom
select button pressed
in 'button name'' box insert e.g. for the down key 7689b04f (taken from
xplmonitor output above)
click ok, then next
click on add button to add an action
select xpl-xplhal.<computername>
select run a program
type in the full path to the program e.g.
c:\WINNT\system32\notepad.exe or c:\windows\system32\notepad.exe
To test right click on the 'determinator' you have created and click
execute.
The program /will/ be executed. (have a look in task manager)
However if xplhal is running a a 'system service' (most likely) then the
program will hide in the background and will NOT display on screen.
This may or may not be what you want depending on what you are wanting
to execute.
e.g. running a command line program to shutdown your pc will not require
the program to come on screen.
However if you do require the program to load up on your desktop then try
http://www.xplmonkey.com/xplexec.html
(try installing it as a service, and then going into 'services' in
control pannel and making it run as your user account)
Hope this helps
_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss