How to control window?
Published on August 21, 2005 By rabidrobot In Object Desktop
Hi there,

I am trying to create a media player object which will show a
visualisation window whenever and only when music (or video) is playing.

It has been very frustrating, I'm hoping someone here can give me some
pointers.

I tried to deconstruct Martin's object
https://www.wincustomize.com/ViewSkin.aspx?SID=1&SkinID=3425&LibID=3&comments=1
but kept getting DesktopX crashing errors. And I looked at
https://www.wincustomize.com/ViewSkin.aspx?SID=1&SkinID=3386&LibID=3&comments=1
the NoPlugin Media Player by Fix, but stil couldn't quite get how the
visualisation window interacts with the rest of the object.

These media players, and others with visualisations I looked at have
an object with an empty or nearly empty script with the WMP ActiveX
control active. I couldn't replicate this functionality, though.

What I have found that works with my creation so far is to create an
object, give it the DXPlayer addititional ability Viewer Button->Show,
then click on this new object. This brought up a small area on the top
left of my primary monitor which responds to music being played by
showing a visualisation, and shows video when a video is played.
Confusingly it works when I start playback with it's sibling objects or
with a different media player object altogether. That's fine with me,
though.

I can also close this visualisation window with a DXPlayer->Viewer
Button->Hide object.

I can click and drag to move the window.

What I would like to do is define the size and location for this window
to appear (change the default) so it appears seamlessly with the media
player object graphics.

Any hints on how I can resize and move the visualisation window I get
when I use a DXPlayer->Viewer Button->Show object to show it?

Also, this little window is associated with WMP. If I change DXPlayer
options to force winamp, the show and hide buttons show and hide the
winamp interface. When I double click on a recently active
visualisation window, it goes to full screen with some non-functioning
WMP buttons. (I'll need to prevent that from happening too)

Any suggestions welcome!

thanks,
rr

Comments
on Aug 21, 2005
Sorry, could have sworn I put this in the DesktopX forum