I am coding a windows servce to deliver mouse data from a touch screen to Windows XP. I have the X and Yparameters from the screen and an indication of when the user has their finger(s) on the screen. There are two sets of X and Y parameters if the user is doing a rotation or stretch contract. I now need to deliver this data to windows to control the system mouse in the same way that the normal mouse does.
Question is: how do I simulate a mouse move, left button down and left button up? Note that a windows service does not have a window or a Handle so I cannot use the normal Delph mouse control messages. I really do need to simulate the behaviour of the mouse since I want the touch screen to control any application that happens to be under the mouse.
I have tried SendMessage(GetDesktopWindow, WM_MOUSEMOVE, 0, 0); but this does not move the mouse.
It would also be helpful to know how VIsta and & post the second set of X and Y parameters to the system.