Results 1 to 1 of 1
  1. #1
    ladladlad's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    1

    Question SetWindowsHookEx NON-GLOBAL (not LL), how to ignore/detect SendInput?

    Hello,

    I am trying to write a keyboard (and mouse later on) macro for a game in C++ for windows, and I decided to use the thread-specific variant WH_KEYBOARD (as opposed to WH_KEYBOARD_LL) where I had to make a DLL and so on... Due to differences between these hook types, the thread-specific one I'm using doesn't seem to have a way of recognizing a simulated input (from SendInput). My question: is it possible in any practical way to allow all simulated inputs to not get picked up by the thread-specific hook, or for the hook to distinguish them from real physical inputs and just return?

    Before you recommend sticking with global hooks, note that I'd prefer to use thread-specific hooks if possible because (primarily) they don't pick up inputs when the game is not focused and I would imagine that perhaps global hooks are not as performant as thread-specific hooks? amongst other reasons...

    That said, I'd appreciate any and all advise given! Thanks.
    Last edited by ladladlad; 04-25-2020 at 05:40 PM. Reason: wording mistake fixed

Similar Threads

  1. Replies: 2
    Last Post: 02-09-2012, 06:22 AM
  2. [Solved] I do not know how use hacc and how activite that haccc !!! plz help :(
    By crossfireplayer0000 in forum CrossFire Help
    Replies: 3
    Last Post: 11-28-2011, 01:59 PM
  3. [Help Request] DLL file, I do not know how to run
    By ez2djtiger in forum Vindictus Help
    Replies: 2
    Last Post: 08-11-2011, 02:30 AM
  4. Not another "how long.." thread, but similar.
    By ecnahc515 in forum C++/C Programming
    Replies: 10
    Last Post: 11-23-2010, 06:55 PM
  5. i love how people ignore your PM'S
    By karma123 in forum Flaming & Rage
    Replies: 7
    Last Post: 09-14-2009, 02:37 PM