All forums » Creating Skins, Scripts and Modules » DDE and TCP/IP data exchange

Go to page 1 2  » 

Message

DDE and TCP/IP data exchange

Service-Team in Jul 05 * · Reply

Using the host "localhost" and the service "silverjuke", you can also control Silverjuke by DDE on Windows or TCP/IP on Linux.

The supported topics are simelar the the command line options:

open - clear the playlist and open the files given as data; playback is started using the first given file

enqueue - enqueue the files given as data; the currently playing track stays unchanged and existing files are not removed from the queue

play - same as pressing the "play" button

pause - same as pressing the "pause" button

toggle - toggle play/pause

prev - play the previous track, if any

next - play the next track, if any

kiosk - start kiosk mode

raise - bring the Silverjuke main window to the top of all windows

Please also note the command line options which are easier to use in some cases.


Credit system

Service-Team in Oct 05 * · Reply

Silverjuke 1.15beta2 supports a basic credit system that may be controlled with the following additional DDE commands:

addcredit - adds the numer of credits (tracks that may be enqueued) given in data to the credit system

setcredit - sets the number of available credits to the number given in data

These options only work if "Settings/Kiosk mode/Credit system/Credits may be added by external programs" is enabled.

credits.gif


Volume & Visualizations

Service-Team in Jun 06 * · Reply

The following commands will be introduced in Silverjuke 1.50beta5:

volup - Increase the main volume

voldown - Decrease the main volume

togglevis - Toggle the selected visualizations on and off


Start scripts via DDE

Service-Team in Jul 07 * · Reply

The following command will be introduced in Silverjuke 2.52beta2:

execute - Execute the script snippet given in data. Instead of giving the script directly, you can also write the script to a file and give the filename as data.

With this DDE command you are able to execute any little script by the command line. For scripting details, please refer to the Silverjuke SDK.


Re: Credit system

Guest in Dec 07 · Reply

Service-Team wrote:
> Silverjuke 1.15beta2 supports a basic credit
> system that may be controlled with the following
> additional DDE commands:
>
> addcredit - adds the numer of credits (tracks that
> may be enqueued) given in data to the credit
> system
>
> setcredit - sets the number of available credits
> to the number given in data
>
> These options only work if "Settings/Kiosk
> mode/Credit system/Credits may be added by
> external programs" is enabled.


Where can I buy a coin validator compatible with Silverjuke for british currency


Re: Credit system

Guest in Dec 07 · Reply

Guest wrote:
> Where can I buy a coin validator compatible
> with Silverjuke for british currency


As far as I know, the emp800 should also work with british pounds. If in doubt, you should contact whberlin here: http://www.whberlin.de/neu/inhalt_e/index_e.html

For Silverjuke, you can use nearly any coin acceptors, for some high-level support modules, see http://www.silverjuke.net/en/addons

Regards,
B.


Re: DDE and TCP/IP data exchange

Guest in Jan 08 · Reply

Can't you get any coin validations that has USB interface?!


Re: DDE and TCP/IP data exchange

jkn in Mar 09 · Reply

Hello there

you say:

> Using the host "localhost" and the service "silverjuke", you can also control Silverjuke by DDE on Windows or TCP/IP on Linux.

can you say a lillte more about the use of TCP/IP? Since there is no concept like the DDE 'service', I guess I need to specify a port number, and maybe a protocol? Can I just (for instance) telnet to a port and take it from there?

Thanks in anticipation...

J^n


Re: DDE and TCP/IP data exchange

Service-Team in Mar 09 · Reply

Hello jkn,

Silverjuke uses the wxWidgets classes for interprocess communication. Theses classes use DDE on windows and TCP/IP on other operating systems. For further details, please have a look at http://docs.wxwidgets.org/2.6/wx_ipcoverview.html - please note, that you need some programming experiences to use this service. Please also note the command line options which may be easier to use.

NB: To test the DDE part under windows, we found a little "howto" here.

Best regards,
Your Silverjuke-Team


Re: DDE and TCP/IP data exchange

SilverEagle in Mar 09 · Reply

Hi jkn,

jkn wrote:
> can you say a lillte more about the use of TCP/IP?
> Since there is no concept like the DDE 'service',
> I guess I need to specify a port number, and
> maybe a protocol? Can I just (for instance)
> telnet to a port and take it from there?


Depending on your requirements the following might interest you: I have created a DLL with a remote HTTP interface for SJ, both the client side and the server side.

This system was originally created by me to have a Silverjuke running on a remote machine control. This uses internally a HTTP client from inside one Silverjuke instance, and a HTTP server inside the other. The interface is just HTTP you can test the system with any browser and control SJ from anything able to transmit a HTTP request.

Development on this system has halted due to lack of testers and time, but depending on your wishes it might give you a headstart if you want to do some serious remote controlling. PM me if you think this is something you can use as I do not want release the code into the public yet.

Final warning however: note this plugin is written in a mixture of C and SJ-script...

Bye,
SilverEagle


Go to page 1 2  » 

Log in



You have the option to become a registered user of our forums: Registered users can post or edit topics under their names and have access to protected data and to a lot of additional, powerful features. A registration is free of charge. Go to registration page...

Searching forums

Recent posts