title: Detect left mouse button down after sending left mouse button up
body: <p>I am writing a program that scans if the Left Mouse Button is held down, then sends a left mouse button up and continues after that. The problem is, since I am sending a left mouse button up, the program will not continue because the left mouse button is not being held down anymore.</p>
  
  <p>Here is some pseudo:</p>
  
  <pre><code>if(GetKeyState(VK_LBUTTON) &lt; 0){
     Sleep(10);
     mouse_event(MOUSEEVENTF_LEFTUP, p.x, p.y, 0, 0);
     //Rest of code
  }
  </code></pre>
  
  <p>How can I detect the left mouse button being down after this? Would I have to use a driver?</p>