Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

keyboard events simulation by WH_JOURNALPLAYBACK

following is taken from MSDN article - "win32 hooks":

Simulate mouse and keyboard input (WH_JOURNALPLAYBACK). Hooks provide the only reliable way to simulate these activities. If you try to simulate these events by sending or posting messages, Windows internals do not update the keyboard or mouse state, which can lead to unexpected behavior. If hooks are used to play back keyboard or mouse events, these events are processed exactly like real keyboard or mouse events.

question is : is there any chance for us to distinguish the simulated events from real events ?

Anybody helps?

Comments

  • pritaeaspritaeas Posts: 274Member
    Good question. If journalplayback does not send a message when it starts playing, then there is no way to see the difference between them and real events. I think it is supposed to do just that.

    pritaeas

    : following is taken from MSDN article - "win32 hooks":
    :
    : Simulate mouse and keyboard input (WH_JOURNALPLAYBACK). Hooks
    : provide : (rest of the text omitted)
    :
    : question is : is there any chance for us to distinguish the simulated
    : events from real events ?
Sign In or Register to comment.