title: Print to Console on left click C#
body: <p>The code below shows mouse position in console every 500ms. I am trying to figure out How to only get mouse position to show when a left click happens. 
  Example of what it does now below.</p>
  
  <p><a href="https://i.stack.imgur.com/saSMY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/saSMY.png" alt="enter image description here"></a></p>
  
  <pre><code>public static void MacroMouseThread()
  {
      Console.WriteLine("MouseLocation Started");
  
      while (true)
      {
          // Shows mouse location cords 
          Console.WriteLine(Cursor.Position.ToString()); 
          Thread.Sleep(500);
      }
  
  }
  </code></pre>
  
  <p>I want to left click anywhere on screen and it prints to console opposed to it it constantly printing continuously. </p>