Class HotkeyManagerHelper
Inheritance
HotkeyManagerHelper
Assembly: CAMIPC.DotnetHelper.dll
Syntax
public static class HotkeyManagerHelper
Methods
AddShortcut(ComWrapper<ICamIpcHotkeyManager>, string, string)
Add a plugin hotkey for the given shortcut (e.g. "Ctrl+Shift+K") and caption.
Throws if the shortcut is already taken. Returns the created binding.
Declaration
public static ComWrapper<ICamIpcHotkey> AddShortcut(this ComWrapper<ICamIpcHotkeyManager> managerCom, string shortcut, string caption)
Parameters
Returns
EnumerateShortcuts(ComWrapper<ICamIpcHotkeyManager>)
Enumerate the (normalized) shortcut text of every registered hotkey.
Declaration
public static IEnumerable<string> EnumerateShortcuts(this ComWrapper<ICamIpcHotkeyManager> managerCom)
Parameters
Returns
FindByShortcut(ComWrapper<ICamIpcHotkeyManager>, string)
Hotkey occupying the given shortcut (plugin or reserved native). The returned wrapper
is IsNull when the shortcut is free.
Declaration
public static ComWrapper<ICamIpcHotkey> FindByShortcut(this ComWrapper<ICamIpcHotkeyManager> managerCom, string shortcut)
Parameters
Returns
GetCount(ComWrapper<ICamIpcHotkeyManager>)
Number of registered hotkeys (plugin plus reserved native).
Declaration
public static int GetCount(this ComWrapper<ICamIpcHotkeyManager> managerCom)
Parameters
Returns
GetHotkey(ComWrapper<ICamIpcHotkeyManager>, int)
Registered hotkey at the given index (0..Count-1).
Declaration
public static ComWrapper<ICamIpcHotkey> GetHotkey(this ComWrapper<ICamIpcHotkeyManager> managerCom, int index)
Parameters
Returns
RemoveShortcut(ComWrapper<ICamIpcHotkeyManager>, string)
Remove a previously added plugin hotkey by its shortcut. Throws for a reserved shortcut.
Declaration
public static void RemoveShortcut(this ComWrapper<ICamIpcHotkeyManager> managerCom, string shortcut)
Parameters