button to show and hide media player

hi

i tried to build a button that shows my winamp player if its minimized/hidden, and hides it, if its shown.
with the built in DXPlayer application, i could build a button that shows the player on click and hides it on "shift & click".

i also tried to do it with a script, using the pusbutton activex element, but i dont know how i can manipulate the player from the script...is there a command that shows or hides the player?

someone has an idea how i could build such a button?

thanks in advance
2,066 views 3 replies
Reply #1 Top

It is not possible to (through scripts or otherwise) change the functionality of objects that are utilizing the DXPlayer. Scripting support of objects utilitizing DXPlayer is somewhat limited.

You could, through some script trickery, accomplish this using multiple objects and toggling their visibility. For example:
http://sd.stardock.com/mike/apps/Winamp_show-hide_example.zip
(Built with DesktopX 3.2 on XP x86 - Tested with winamp 5.32 on XP x86)

-Mike
[Stardock Support]

Reply #2 Top
perfect, thanks! thats exactly what i planned to do, but i didnt have the skills to script it :-)

now i'm gonna look closely at your script...hope i can learn how those things work out
Reply #3 Top

There are definitely some DX scripting gods out there that can answer any other questions you might have.

If you had any questions about the dxpack, I'd be happy to help.

-Mike
[Stardock Support]