I'd like to write a simple plugin that allows switching of the default audio device using Vista and Windows 7.
This was easy to do under XP (using public API calls), but under Vista and Windows 7 it's hidden away in undisclosed DLLs.
Somebody reversed engineered the Windows control panel (sound manager) to find the calls so it's now possible to switch the default audio devices.
Anyways... the methods using COM and the interfaces inherit from IUnknown (not IDispatch).
Does anybody have any examples of doing this in Python? It looks like somebody wrote a Python package called Comtypes to accomplish this exact thing but I'm not sure what I would need to integrate this Python library into EventGhost. (I'm a .NET developer without a lot of experience with Python but if somebody could get me started with this I'm certain I could code the rest...)
Anybody have any Python examples using COM? (re: IUnknown)
Re: Anybody have any Python examples using COM? (re: IUnkno
I haven't used that package, but I tested an import from it by downloading the zip file from sourceforge and and copying the comtypes directory (inside the comtypes-6.2 directory) into the directory my plugin code was in. From there you can try to run the examples from the comtypes documentation from your plugin.
Hope that helps,
Brett
Hope that helps,
Brett