I was wondering if anyone could point me in the right direction or give me some info on how to change the visualizations in windows media player on the fly. i know i can change them in the registry but the changes dont take effect till the next run wmp is ran or its ocx. ams uses the wmp ocx to create a wmp object plugin. i need to make a dll that can change the visualizations instantly like you can in windows media player itself.
if you have any questions as to what type of info i need id be happy to answer as i have been scowering for info to no avail
DLL to change WMP visulizations on the fly.
-
- User
- Posts: 22
- Joined: Wed Jan 23, 2008 6:58 am
Re: DLL to change WMP visulizations on the fly.
As i know, <b>all</b> components from wmp (exept the exe itsself) are com-objects. You can try to send wmp a message to change the visualizations. The follow example is for play, pause and stop wmp. I don't know the right constants for change the visualizations.TimeSurfer wrote:I was wondering if anyone could point me in the right direction or give me some info on how to change the visualizations in windows media player on the fly. i know i can change them in the registry but the changes dont take effect till the next run wmp is ran or its ocx. ams uses the wmp ocx to create a wmp object plugin. i need to make a dll that can change the visualizations instantly like you can in windows media player itself.
if you have any questions as to what type of info i need id be happy to answer as i have been scowering for info to no avail
Code: Select all
#APPCOMMAND_MEDIA_STOP = $d0000
#APPCOMMAND_MEDIA_PLAY_PAUSE = $e0000
#APPCOMMAND_MEDIA_PLAY = $2e0000
#APPCOMMAND_MEDIA_PAUSE = $2f0000
myHandle = FindWindow_("WMPlayerApp", "Windows Media Player")
If myHandle <> 0
SendMessage_(myHandle, #WM_APPCOMMAND, 0, #APPCOMMAND_MEDIA_PLAY)
Delay(10000)
SendMessage_(myHandle, #WM_APPCOMMAND, 0, #APPCOMMAND_MEDIA_STOP)
EndIf
-
- User
- Posts: 22
- Joined: Wed Jan 23, 2008 6:58 am
You could dig out the interfaces, create the objects, and then build your .dll that way too. Its not so hard to do once you get the interfaces defined correctly. But...that might be a little too much for what you want to do so the send message thing as suggested above might suit your needs a little better.
-
- User
- Posts: 22
- Joined: Wed Jan 23, 2008 6:58 am
well i downloaded the sdk for wmp10 last night and have been going through it although alot of it is hard to understand cause im not a c coder but i have found the IWMPEFFECTS and IWMPEFFECTS2 are the 2 interfaces that control visualizations but more over what i was looking at in the sdk was the effects.nexteffect and effect.previouseffect as they allow you to switch the effect and as long as you set effects.allowall to true the enduser can cycle through all the effects installed on their system
i just cant figure out how i would implement this in pb. also i believe the visualizations are com objects as is the dll that controls them but i suk at com lol
i just cant figure out how i would implement this in pb. also i believe the visualizations are com objects as is the dll that controls them but i suk at com lol
-
- User
- Posts: 22
- Joined: Wed Jan 23, 2008 6:58 am
can anyone give me any insight on how to port those over to pb so i can use them. I'm not wanting anyone to do it for me, but some help would be greatly appreciated as i have no idea where to start. So far all i have determined is which interfaces i need to use. I just dont know how to use them lol.