title: How to move mouse in background window?
body: <p>I want to use keyboard and mouse in background window(the window is a dx window).</p>
  
  <pre><code>HWND myhwnd = GetForegroundWindow();
  PostMessage(myhwnd, WM_KEYDOWN, 0x33, 0); //press "3"
  PostMessage(myhwnd, WM_KEYUP, 0x33, 0);
  LPARAM lParam = MAKELPARAM(300,100);
  PostMessage(myhwnd, WM_MOUSEMOVE, 0,lParam); // mouse move
  PostMessage(myhwnd, WM_RBUTTONDOWN, 0,lParam); // mouse click
  PostMessage(myhwnd, WM_RBUTTONUP, 0, lParam);
  </code></pre>
  
  <p>Press "3" and mouse click is success.But I failed in moving mouse.</p>