Skip to content

Manage plugins to execute own code on registered global hotkeys.

Notifications You must be signed in to change notification settings

nh-nico/GlobalHotkeyManager

Repository files navigation

Global Hotkey Manager

Global HotKey Manager was developed to easily execute own code on global registered hotkeys.

My main reason why i developed this was the need to split my windows in horizontal half and attach it to the top or bottom of the screen where the window is currently active. So that´s are the first features (plugins) of this manager.


Application runs in background.

Configure hotkeys.


Build your own plugins

Simply use this interface:

/// <summary>
/// Interface used from hotkeymanager to detect Plugins
/// </summary>
public interface IGlobalHotkeyPlugin
{
    // Name of the plugin, shown in hotkeymanager
    String PluginName { get; }

    // Main execution of plugin.
    void Execute();
}

Example:

/// <summary>
/// Throw a test message.
/// </summary>
public class TestMessageThrower : IGlobalHotkeyPlugin
{
    /// <summary>
    /// Name of plugin for the hotkeymanager.
    /// </summary>
    public string PluginName
    {
        get { return "MessageThrower"; }
    }

    /// <summary>
    /// Execute TestMessageThrower.
    /// </summary>
    public void Execute()
    {
        MessageBox.Show("Hello World!");
    }
}

All classes in an assembly wich implement this interface, will be reconiced from the global hotkey manager with the ability to attach it to an hotkey.

The DLL has to be in the "Plugin" directory of the output.

This project is in development and will be further developed sporadically.


About

Manage plugins to execute own code on registered global hotkeys.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages