Link the plugin to an application
Overview
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
GetProcessName
method that returns the process name of the supported application. ReplaceDemoApplication
with 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.
-
Switch the Adapt to App to ON in Options+ or Dynamic mode to ON in Loupedeck Software.
-
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+Tab
to 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
GetProcessNames
method instead ofGetProcessName
: -
You can set a process name filter instead of fixed application names. In this case, override the
IsProcessNameSupported
method instead ofGetProcessName
: