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.
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
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
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?
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.