Has anybody ever gotten RegisterHotKey() to work? I can't seem to get it to work. It's a simple test, I try to register ALT + VK_A, and the function returns 1. NULL is failure for this function (as with most) so I guess it worked, but when I try to MessageBox the WM_HOTKEY message, nothing happens! Any help is appreciated.
Posted on 2001-12-30 21:55:32 by lackluster
Hi lackluster

invoke RegisterHotKey,hWnd,101h,NULL,1Bh

This registers Esc as a hothey. hWnd is the handle of the winrow receiving the message through WM_HOYKEY.

KetilO
Posted on 2001-12-30 22:42:09 by KetilO
Thanks KetilO. Hope you and your Fiance are doing well. Can I get this function to register a hotkey system-wide or must I put it in a DLL?
Posted on 2001-12-30 23:02:42 by lackluster


RegisterHotKey(hwnd, IDHOTKEY, MOD_CONTROL | MOD_ALT, 'S');

This is straigth from the C version of my hhlookup program.
Works like a charm. Doesn't require DLL. Have fun.
Posted on 2001-12-30 23:12:35 by f0dder