Author Topic: COM Support?  (Read 10543 times)

ec8or

  • Guest
COM Support?
« on: 25 Sep '06 - 17:11 »
I am controlling XMPlay through customized buttons in bblean and would like to be able to grab the Song Title and display it on my desktop, when asking about it in the blackbox forum i got the following reply:

Quote
If XMPlay has some type of COM control you can grab the display rather easily. If not you'll probably have to capture it much in the way bb plugins do with the winamp window. Using dll.dll to do the actual work in tcl. Use tcom in tcl if XMPlay has COM support.

Check with the program if it does support com and I can throw together a quick title display with tcl.

Anyone knows what is the case?

Also i had a look through the list of DDE functions XMPlay uses and there doesn't seem to be any for  shutting down the player. If there is and anyone knows the id for this please let me know.

Peace

Jace

  • Posts: 824
Re: COM Support?
« Reply #1 on: 26 Sep '06 - 05:33 »
Not certain how it would work on BB, never tried it myself but I'm having no hassles with LiteStep here.
Easiest way is to grab the window title of XMP and show it there.. As here with xLabel:
Code: [Select]
*Label Xmplay
    XmplayWidth 308
    XmplayHeight 16
    XmplayX 32
    XmplayY -63
    XmplayImage xmp_back.png

    XmplayFontHeight 18
    XmplayFontColor 000000
    XmplayText "[if(empty(windowTitle('XMPLAY-MAIN')))]Something funny, don't know what.[else][windowTitle('XMPLAY-MAIN')][endIf]"
    XmplayTextFade 16 0

    XmplayScroll
    XmplayScrollInterval 15
    XmplayScrollSpeed 1
    XmplayScrollPad 60
    XmplayUpdateInterval 500


Bottom left corner of the screen, to see it in live action!

Doesn't give you any controls for it, but it's better than nothing, at least IMO. ;)
And as far as I know, the DDE command list at the support site is a complete one. I suppose Ian might add one for shutdown if you ask nicely enough. ;D

Ian @ un4seen

  • Administrator
  • Posts: 18996
Re: COM Support?
« Reply #2 on: 26 Sep '06 - 15:20 »
And as far as I know, the DDE command list at the support site is a complete one. I suppose Ian might add one for shutdown if you ask nicely enough. ;D

There have actually been a few new shortcuts introduced since that list was posted, including these 2 :)

10 = Close
11 = Close with position saved

Other additions are...

12 = Open directory
88 = Current track - Tray title bubble
89 = Current track - Plugin info
96 = Plugin & Skins
296 = Toggle MOD playback mode
325 = List sort - Selected to top
343 = List nav - Select dead
378 = List - Save
379 = List - Show queue in list
380 = List - Auto advance
384 = List track - Add to/from library
385 = List track - Plugin info
400 = List - Undo
608 = Info - Library   (replaced "Recent tracks list")
624 = Device options
640 = Bookmark - Set
641 = Bookmark - Resume

ec8or

  • Guest
Re: COM Support?
« Reply #3 on: 27 Sep '06 - 11:10 »
Thanks Ian! :)

ec8or

  • Guest
Re: COM Support?
« Reply #4 on: 27 Sep '06 - 11:15 »
Oh, and while you're at it, what about COM? Is it supported?

Ian @ un4seen

  • Administrator
  • Posts: 18996
Re: COM Support?
« Reply #5 on: 27 Sep '06 - 16:26 »
Nope, I'm afraid not, but you can grab the title (and all the other info window texts) via DDE.

ec8or

  • Guest
Re: COM Support?
« Reply #6 on: 28 Sep '06 - 10:47 »
ok, thanks a lot for the help!