-
New member
- Rep Power
- 0
[HELP] Hotkeys dll C++
I want a function in C + + to activate a hotkey commands without being:
if( GetAsyncKeyState( VK_F1 ) & 1 )
{
//Code
}
I'd like to replace the function GetAsyncKeyState otherwise, I found another way to RegisterHotKey but do not know how to use it in a dll for the games. If anyone can help...
Thank You
-
-
-
1. Register window.
2. Register HotKey via RegisterHotKey
3. In WinMain handle WM_HOTKEY message (wParam is hotkeyId).
Read MSDN first
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules