keyboard events simulation by WH_JOURNALPLAYBACK - Programmers Heaven

Howdy, Stranger!

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

Categories

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.