WinLib.HotKeyMonitor.RegisterKey - charonn0/WinLib GitHub Wiki

WinLib.HotKeyMonitor.RegisterKey

##Method Signature

 Function RegisterKey(Key As String, ParamArray modifiers() As Integer) As Integer

##Notes Registers a new hotkey combo for the specified key and modifiers. For example:

    Dim hk As New HotkeyMonitor
    Dim keyID As Integer = hk.RegisterKey("a", MOD_CONTROL, MOD_ALT)

The above snippet registers Control + Alt + A as a global hotkey combo.