Hello all,

I thought up a very simple app that I think is very usefull.
With this, you can send CLI commands to slimserver, right from a
command promt. It's been built with .NET Compact Framework 2. Meaning,
if you want to run it on windows, you need .NET 2.0 installed, but you
can ALSO run it on a Windows Mobile device! (at least, when you have
installed .NET CF 2.0)

Now, here's the syntax:


SendSlimCmd.exe HostName[:port] <PlayerID> "Command1" ["Command2"] ...

HostName - the full name (or IP) address of your slimserver
port - optional, SlimServer's CLI port (default 9090)
PlayerID - not optional, the ID of the player you wish to control
Command1 - not optional, the command you wish to give
Command2 - optional, you can have as many extra commands as you wish

You need quotes around commands that have spaces inside of it, and if
you want to send a command with a file or directory in it, which has
spaces of its own, you need to encapsulate it with |

here's an example of how I use it to wakeup in the morning, it's in a
batch-file, triggered by WinXP's scheduler:

SendSlimCmd.exe localhost 00:04:20:06:38:14 stop "mixer volume 50"
"power 1" "playlist play |D:\Music\Diana Krall\All For You\10 - Deed I
Do.flac"

this single line command does the same as:

SendSlimCmd.exe localhost 00:04:20:06:38:14 stop 
SendSlimCmd.exe localhost 00:04:20:06:38:14 "mixer volume 50"
SendSlimCmd.exe localhost 00:04:20:06:38:14 "power 1"
SendSlimCmd.exe localhost 00:04:20:06:38:14 "playlist play
|D:\Music\Diana Krall\All For You\10 - Deed I Do.flac|"

the only difference is, with the first one, only a single time will a
connection be opened and closed, in the last set of commands, there's
gonna be 4 connections opening and closing after eachother. If you're
connecting from a local PC (as in my case) that doesn't matter that
much, but when you're connecting from your PDA, you want things to be
as fast as possible.

remark: those of you who are uber bright, already see that you can ONLY
use this tool to send player based commands.  they're quite right! So
only CLI commands which use the <PlayerID> can be used here, all other
commands are simply not supported.

One Extra thing: The PlayerID can be found on the bottom of the fist
page of the settings of your player (hardware / software / remote,
doesn't matter)

Hopefully, I made it a bit clear what you can do with this, and if not,
pitty, it's for my own personal use anyways ;-)

greetz to all


+-------------------------------------------------------------------+
|Filename: SendSlimCmd.zip                                          |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=2554|
+-------------------------------------------------------------------+

-- 
Heimiko

Analog modded SB3 -> M1000i -> tube buffer -> M1000i -> Electrocompaniet
ECI-3 -> Dynaudio Audience 122
------------------------------------------------------------------------
Heimiko's Profile: http://forums.slimdevices.com/member.php?userid=3462
View this thread: http://forums.slimdevices.com/showthread.php?t=33670

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

Reply via email to