Python script that hacks in support for Android headset media control for Windows.
For more details on how this works, see the associated blog post
Regardless of the platform the following is required
- Python 3 or 2.7 (untested) installed on the system.
- The packages pywin32 and sounddevice, installable via
pip install pywin32 sounddevice
.
-
Download a copy of this repository from here
-
Extract to an appropriate location on your system, where doesn't matter as long as you don't accidentally delete it.
-
Navigate to the following directory:
C:\Users\<your username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
-
Create a shortcut via File->New->Shortcut in the directory.
When asked to specify location point it to where 'pythonw.exe' is installed.
This is usually at:
C:\Users\<your username>\AppData\Local\Programs\Python\Python<version>\pythonw.exe
When prompted for shortcut name just keep the default.
-
Right-click the new shortcut and open 'properties'
-
At the end of 'target' add the path where you installed the 'run.py' script to the end of the string.
For example:
Target:
<path to pythonw.exe> C:\Programs\audiocontrols\run.py
-
Restart your computer. At this point you should find 'pythonw.exe' running in the task mananger under 'Background Processes' and the program should function.
Sorry, the script currently only works for Windows at the moment, feel free to contribute code for other platforms if you have the time.