MouseHook not working for Lenovo trackpad

youki 891 Reputation points

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?


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.
8,189 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. youki 891 Reputation points
    0 comments No comments

  2. Daniel Zhang-MSFT 9,496 Reputation points

    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