DXPLayer Help

Visualisation pop-up?

Hi

I'm new to skinning desktopx and have no scripting ability at all. I was wondering if it is possible to attack the visualisation window in DXPLayer to another popup object:



When I toggle the window, I want the viz to disappear aswell.

Also, I would like to be able to resize the windwon if possible.

Can anyone help?

Broadbend
5,504 views 3 replies
Reply #1 Top
There are two ways of going about this, One (and the easiest in my opinion) is to set a message in the state property of the object where in the button on the player you'd add Show: Visualization Name and on the visualization window close button you'd ass Hide: Visualization Name.

The second is to add a small script to the toggle buttons. Copy and Paste this script to add function:

Sub Object_OnStateChange(state)

If Object.State = "Mouse down" Then
DesktopX.Object("visualizationname").Visible = True
End If

End Sub

And this script for the visualization close button:

Sub Object_OnStateChange(state)

If Object.State = "Mouse down" Then
DesktopX.Object("visualizationname").Visible = False
End If

End Sub

Note: visualizationname would be the name you've choosen to call the visualization. Replace to fit your object.

This should hopefully get you up and running.
Reply #2 Top
Thanks for the reply sranshaft, I hope you had a lovely Christmas.

I don't think I made myself very clear in my post - I had discovered how to toggle the window but could not attach the 'viewer' overlay that shows any visualisations, while music is playing, or video. When you show the viewer, it does not appear as a DX object on the Object navigator and can, therefore, not have a name that you can place in the script.

I think the problem may be that it is generated by Windows Media Player and not DesktopX.

I might try something else...
Reply #3 Top
Hi there - I'm the person who is working on DXPlayer for Stardock. No it isn't possible to do what you want right now. The problem is that DXPlayer does not have a way to connect the video window to an object. It would be good if it could, I agree. I will be looking at making it so that you can do that in a future version of DXPlayer. You would probably set it so that you just set an object to be "display player window" or something similar and it would take over the painting of that object.