Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Control Multiple Winamp Instances

If you have a question or need help, this is the place to be.
Post Reply
Drabert
Posts: 19
Joined: Wed Feb 18, 2009 8:30 am

Control Multiple Winamp Instances

Post by Drabert »

i was reading that winamp has the ability to run multiple instances through different sound cards at the same time. This would be great with my distributed audio system at my house. For one computer to run 5 instances of winamp through different sound cards so each room can have its own audio source and control of it. Winamp has the ability to assign a class to each instance of winamp for control through girder but i wasnt sure if there was a way to control the instance of winamp by specifying the class associated to it. Has anyone tried this or is it already built into the winamp plugin and im just not seeing how to do it?

Im using EG 0.3.6.1476

Thanks for the help

Drabert
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: Control Multiple Winamp Instances

Post by jinxdone »

Hi,

I added an action to the Winamp plugin that allows you to change the target class you want to find. It works like this:
- The plugin has a configuration option for target class.
- You can use the "Set target class" action to change the target class of the Winamp plugin.
- By default it tries to find the default "Winamp v1.x" class.
- All the other actions (play, pause etc.) will try to find the window with the class you have set
- You can multiload Winamp plugins if you want (for example one plugin for each winamp instance)

Replace the EventGhost\plugins\Winamp\__init__.py file with the one attached and restart EG.

I updated the plugin a to have a cofiguration option in the plugin as well as the action to set the target class.

Please test it and post any feedback here. If there are no issues with it I'm going to go ahead and commit the changes to eg SVN.

PS. you are not running the latest version of EG btw.

-jinxdone
Attachments
__init__.py
Winamp plugin with configurable target class
(19.97 KiB) Downloaded 170 times
Drabert
Posts: 19
Joined: Wed Feb 18, 2009 8:30 am

Re: Control Multiple Winamp Instances

Post by Drabert »

After first downloading the latest version of EG (thanks for the heads up) it worked perfectly. Thank you very much for this. I cant believe how quickly you made the adjustment to the plugin :) Do you have a good python book that i can use to get started on programing these plugins myself? i know a little c and vb but still need to workon python syntax.

thanks for the great enhancement!!!
Post Reply