Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
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.

EVENTMSG in JournalRecordProc & JournalPlayBackProc

When we install JournalRecordProc or JournalPlayBackProc, we shall handle EVENTMSG structure. If EVENTMSG contains a keyboard message, what's the meaning of the paramL and paramH?

Thanks for your help.

Comments

  • pritaeaspritaeas Posts: 274Member
    Hi. Taken from MSDN:

    The message element of the EVENTMSG structure is the message ID for the message, the WM_* value. The paramL and paramH values depend on whether the event is a mouse or a keyboard event. If it is a mouse event, the values contain the x and y coordinates of the event. If it is a keyboard event, paramL contains the scan code in the HIBYTE and the virtual-key code in the LOBYTE, and paramH contains the repeat count. Bit 15 of the repeat count specifies whether the event is an extended key. The time element of the EVENTMSG structure contains the system time (when the event occurred), which it obtained from the return value of GetTickCount. The hwnd is the window handle for the event.

    This is the link where the text comes from:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwui/html/msdn_hooks32.asp

    hth, pritaeas

    : When we install JournalRecordProc or JournalPlayBackProc, we shall
    : handle EVENTMSG structure. If EVENTMSG contains a keyboard message,
    : what's the meaning of the paramL and paramH?
Sign In or Register to comment.