title: How can I simulate mouse events from code?
body: <p>I would like to simulate mouse events using the Win32 API; how can I do it? </p>
  
  <p>What I want to do is simulate the event at the most basic level, the level at which the system has just the event type and the co-ordinates and hasn't yet figured which window it must relay it to. </p>
  
  <p>I don't know if that's how things work. Either way, I need help doing it. Would I have to meddle at the driver level?!</p>
  
  <p>To make my requirements clear, I don't want to target any window, I just want the system to think the mouse was clicked or moved by the user. And I would be coding in C.</p>