Results 1 to 2 of 2
  1. #1
    FelipeTskill
    FelipeTskill is offline
    New member FelipeTskill's Avatar
    Join Date
    2012 Feb
    Posts
    5
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts
    Rep Power
    0

    Question [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

  2. #2
    ADACH
    ADACH is offline
    Member-in-training ADACH's Avatar
    Join Date
    2010 May
    Posts
    170
    Thanks Thanks Given 
    25
    Thanks Thanks Received 
    168
    Thanked in
    46 Posts
    Rep Power
    14
    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
  •