Volume Control
Application-specific hotkeys for Windows
|
Addons are written in C# with .NET Core 6 - you don't need any previous experience with C# in order to create addons, but this is not a tutorial for learning C#.
This assumes you're using Visual Studio with the **.NET/C#** workload installed.
.csproj
file and click Properties. In the property pages, change the Target OS to Windows: VolumeControl.SDK
package. Here's an example of an action that opens a file using the default application.
You can find the full code example here.
Additionally, you can view the source code for Volume Control's built-in actions here.
See the API Documentation for more information on what is available through the Volume Control SDK.
Assuming you're using Visual Studio, you can use Publish Profiles to build your addon and place it in an easy-to-access directory.
First, you'll need to create a new publish profile.
Tip: In order to see log messages related to the loading of addons, you should enable all of the log filters in the settings tab.
Volume Control will attempt to load addons from a few locations, depending on the version.
Since v6.0.0, Volume Control will *(recursively)* load addons from C:\Users\<USERNAME>\AppData\Local\radj307\VolumeControl\Addons
first, if that location exists.
Do not place Volume Control SDK dlls in addon directories, and do not include them when redistributing your addon.
Since v5.1.0, addons may also be located in any directories specified by the CustomAddonDirectories
setting, which can be found in the configuration file:
*(until v5.2.0):* ~/AppData/Local/radj307/VolumeControl_Url_<HASH>/<VERSION>/user.config
*(since v5.2.0):* volumecontrol.json
located in the same directory as VolumeControl.exe
Assuming you enabled DEBUG
log messages, you will see messages in the log confirming that your addon was loaded when launching Volume Control:
Once you've got your shiny new addon, you may want to distribute it to share your work.
To encourage this, I've created an official repository for third-party addons here.
Submit a pull request (or issue) including your addon DLL to add it to the repo! Be sure to include "@radj307" so I get notified.
### Legal Because Volume Control is licensed under the GPLv3, any code that uses the Volume Control SDK must be licensed under the GPLv3 as well; however you are the sole owner of the code that you write.
The only real requirement for you to remain compliant with the GPLv3 license is that you must make the source code for your addon available to users.