Skip to content
This repository was archived by the owner on Nov 26, 2022. It is now read-only.

WinLib.HotKeyMonitor.RegisterKey

Andrew Lambert edited this page Jul 23, 2014 · 2 revisions

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.

Clone this wiki locally