Hello. I would like to know if VB.NET (Windows forms) has how to make an event happen only during the time that the mouse button (LMB) is pressed.
For example, as long as the user holds down the mouse button, the "W" key will be sent several times. And as soon as he releases the mouse button, the "W" key will stop being sent.
And also, if you have to do this work in the background, in this case, not only within the program, but throughout the computer, using the press function for example, only this would be more a "hold" function, code example:
If Held.Keys.LMB = True
SendKeys.Send("W")
End If
Thank you in advance.