MouseHook not working for Lenovo trackpad

youki 1,021 Reputation points
2021-03-14T14:03:57.097+00:00

Hello,
I want to hook the mouse actions of the trackpad but it doesn't work for the Wheel (tested for i.e.: Edge & Chrome & Excel), it only works for the buttons (left & right). Everything is hookable in Visual Studio.
When i move 2 fingers to scroll up or down nothing happens.

Console.WriteLine("Mousehook " + (MouseMessage)wParam);

I assume it's driver dependent but what could be a practicable solution and could it be working with any trackpad?

Regards

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,202 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. youki 1,021 Reputation points
    2021-03-14T16:28:18.473+00:00
    0 comments No comments

  2. Daniel Zhang-MSFT 9,631 Reputation points
    2021-03-15T01:48:56.057+00:00

    Hi youki,
    For questions about MouseHook, I suggest you ask the question on the Microsoft Mousehook Community and you can get more professional answer.
    Thank you for your understanding.
    Best Regards,
    Daniel Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.