Results 1 to 3 of 3

Thread: Problems with the WH_JOURNALRECORD hook

  1. #1

    Thread Starter
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Unhappy

    I am using the WH_JOURNALRECORD hook to check whether a mouse event (a message between WM_MOUSEFIRST and WM_MOUSELAST) occured anywhere on the screen. The problem is, if the cursor changes its icon for any reason, a WM_MOUSEMOVE message is sent to the window at the cursor position.
    I have no problem with the other messages.
    I need to check for mouse moves and avoid curosr changes. Because of reasons I don't want to get into, I can't use GetCursorPos and check if the cursor changed position.

    Got any ideas?

  2. #2
    Guest
    I'm guessing the reason you are using WH_JOURNALRECORD is to make a keystroke recorder, since that is its most common use. I won't help you there, but as far as checking for events between the two meggages how about just running the message through a case statement, and ignore the WM_MOUSEMOVE message.

  3. #3

    Thread Starter
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892

    Unhappy I do need it.

    I am using the WH_JOURNALRECORD hook to check whether a mouse event (a message between WM_MOUSEFIRST and WM_MOUSELAST) occured anywhere on the screen.
    I must process all messages within that range. WM_MOUSEMOVE is the first message there. I need to not process it if its source is a mouse cursor change.

    Well... How?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width