I would like to command mouse operations with Windows API SendInput function. So I wrote the code below, but it doesn't work. Can anyone point out what I am doing wrong here?
Thank you very much.
Public Sub MouseMove(ByVal x As Integer, ByVal y As Integer)
I am creating a windows service which uses the SendInput API to send keypresses to an application (must be SendInput, SendKeys doesn't work).
For some reason it does not work in a windows service, but the exact same code works flawlessly in a windows form.
I'm guessing there is some...