How to use C-sharp to realize the function of pressing a key on the keyboard to make the system recognize as a mouse button?

is similar to the mouse button function that Windows can easily access, but the mouse button function needs to press NUMPAD5 to trigger the left mouse button. I want to be able to customize a key on the left side of the keyboard.

the specific function is that in the global scope, pressing a key on the keyboard is equivalent to pressing the left mouse button. I want to write a gadget in WPF and find that I really don"t know how to do this step. I don"t know what keywords to search for if I want to use Google.

Oct.21,2021
Menu