C# Class YetAnotherRelogger.Helpers.Hotkeys.GlobalHotkeys

Show file Open project: sinterlkaas/YetAnotherRelogger Class Usage Examples

Public Methods

Method Description
Add ( System.Windows.Forms.Hotkey hotkey ) : bool

Add a Global Hotkey

KeysToModifierKeys ( Keys keys ) : ModifierKeys

Translate Keys to ModifierKeys standard for GlobalHotkeys

Load ( ) : void
Remove ( int id ) : bool

Remove a Global Hotkey

Private Methods

Method Description
GlobalHotkeys ( ) : System
hook_KeyPressed ( object sender, KeyPressedEventArgs e ) : void

Method Details

Add() public method

Add a Global Hotkey
public Add ( System.Windows.Forms.Hotkey hotkey ) : bool
hotkey System.Windows.Forms.Hotkey Hotkey
return bool

KeysToModifierKeys() public static method

Translate Keys to ModifierKeys standard for GlobalHotkeys
public static KeysToModifierKeys ( Keys keys ) : ModifierKeys
keys Keys Keys as ModifierKeys
return ModifierKeys

Load() public method

public Load ( ) : void
return void

Remove() public method

Remove a Global Hotkey
public Remove ( int id ) : bool
id int Hotkey id
return bool