There are more than one way to do them.Quote:
There is however I do not have global key hooks working yet. If somone can be bothered googling for some C# global key hook's source or a tutorial i could easily add them in :D I don't have buff's or aoe etc but could set it up i guess..
The straight forward way is
PHP Code:
[DllImport("user32.dll")]
private static extern bool RegisterHotKey(IntPtr hWnd, int id, uint fsModifiers, uint vk);
[DllImport("user32.dll")]
private static extern bool UnregisterHotKey(IntPtr hWnd, int id);
PHP Code:
[DllImport("user32.dll")]
private static extern int SetWindowsHookEx(int hookType, HookProc lpfn, IntPtr hMod, uint dwThreadId);