15 Feb '12 - 00:17 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: One Instance of XMPlay  (Read 3011 times)
MikeP
Guest
« on: 14 Jan '04 - 23:57 »
Reply with quoteQuote

Hi,
     I have a keyboard shortcut in Total Commander which opens xmplay with an argument of a folder. However, this opens a new instance of xmplay and starts playing, while there is already one copy open. I see two methods around this:
   1). have just one instance of xmplay, when another is loaded with some argument it can either close the old one and start playing, or it can tell the old instance to start playing the files, and not open a new copy.
   2). have some external program detect if xmplay is currently running and pass the arguments to it, or some other way to add files to an existing instance.

Sorry for the long explanation. Is any of those things I described possible?
Thanx in advance.

-Mike
Logged
Torkell
Posts: 1154


« Reply #1 on: 15 Jan '04 - 09:05 »
Reply with quoteQuote

Can Total Commander use DDE to start a program?
Logged
MikeP
Guest
« Reply #2 on: 15 Jan '04 - 22:17 »
Reply with quoteQuote

Where can I find informatin about using xmplay with dde? Like whats the application name it uses and the topics that need to be passed to do data exchange. Also, is it possible to change the playlist in xmplay via dde?
Thanx.
Logged
JimVonMoon
Posts: 70


« Reply #3 on: 16 Jan '04 - 16:18 »
Reply with quoteQuote

From xmplay.txt, v2.4 release info:

* Info window texts retrieveable via DDE (topics=info0-2)
I don't know if there are any other DDE topics available (probably not). BTW DDE service name is "xmplay".
Logged
Torkell
Posts: 1154


« Reply #4 on: 16 Jan '04 - 18:34 »
Reply with quoteQuote

Where can I find informatin about using xmplay with dde? Like whats the application name it uses and the topics that need to be passed to do data exchange.
You could associate XMPlay with one or morefile types, and check what is used for launching the files and the add to playlist option.
Quote
Also, is it possible to change the playlist in xmplay via dde?
Again, see what xmplay adds to the filetype open options (Folder Options under Windows).
« Last Edit: 16 Jan '04 - 18:36 by BoggyB » Logged
MikeP
Guest
« Reply #5 on: 17 Jan '04 - 02:16 »
Reply with quoteQuote

Hey, thanx a lot people, I finally figured this out (it took some time cause I never heard of DDE before). XMPlay uses [open("filename")] to open a file or directory and play it, and [list("filename")] to add the filename or directory to the current playlist. Service name is "xmplay" and topic that I tested this with was "info0".
Just one more question though, are there any programs which I can use to pass this to xmplay, or do I have to write my own?  
Logged
Torkell
Posts: 1154


« Reply #6 on: 17 Jan '04 - 11:32 »
Reply with quoteQuote

Don't know of anything that exists to do so for you. If you end up writing your own Visual Basic will probably be the easiest way to do it - create a form with a label control (I think) and use that to send the messages.
Logged
MikeP
Guest
« Reply #7 on: 18 Jan '04 - 08:30 »
Reply with quoteQuote

If anyone is interested, I have wrote a command line program to connect to any running program (server) and execute a number of commands on there. This of course can be applied with xmplay, with commands [open(filename)] or [list(filename)]. Returning to my original question, in Total Commander to play or add files to xmplay, DDE_run can be used like this:
  DDE_run.exe -s xmplay -t info0 -n d:\xmplay\xmplay.exe -c [open(%P%N)]
Download or look at code from www.angelfire.com/linux/myp
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
Page created in 0.263 seconds with 15 queries.