Link the Plugin to an Application
You can link your Logi Actions plugin to an application so that the plugin is activated when the application comes to the foreground.
You can find the DemoApplication class here: DemoApplication.cs
Steps
-
Open the Demo plugin solution in Visual Studio.
-
In the Solution Explorer, double-click the DemoApplication.cs file.
-
Modify the
GetProcessNamemethod that returns the process name of the supported application. ReplaceDemoApplicationwith the name of the application you want to link to the plugin: -
Start debugging and wait until the Options+ or Loupedeck software is loaded.
-
Open the configuration UI.
-
Turn on the Adapt to App.
-
Connect a console to your computer. The console shows the default profile on the screen. This is the default profile when no supported application is in the foreground.
-
Start the application you linked with the plugin.
-
The device shows the Demo profile on the screen.
-
Change the active applications with
Alt+Tabto see how the device switches between them.
Notes
-
It is possible to define several process names for the supported applications. In this case, override the
GetProcessNamesmethod instead ofGetProcessName: -
You can set a process name filter instead of fixed application names. In this case, override the
IsProcessNameSupportedmethod instead ofGetProcessName: