title: Shift and mouse click
body: <p>I am trying to hold shift key and at the same time click with the mouse. I searched the internet and found a stackoverflow question about this. This is the post: <a href="https://stackoverflow.com/questions/52321602/pyautogui-need-to-hold-shift-and-click">Pyautogui - Need to hold shift and click</a></p>
  
  <p>Also the code in this post was working for like three times!</p>
  
  <p>Then suddenly it stopped working. It is really strange. I also tried it with <code>pynput</code>. Here is my post: <a href="https://stackoverflow.com/questions/56469486/holding-shift-key-mouse-click/56473371#56473371">Holding shift key + mouse click</a></p>
  
  <p>It seems like holding shift and clicking the mouse are working seperately.</p>
  
  <p>However, together it seems not to work</p>
  
  <p>This is the code:</p>
  
  <pre><code>import pyautogui
  import time
  
  time.sleep(2)
  pyautogui.keyDown('shift')
  pyautogui.click()
  pyautogui.keyUp('shift')
  </code></pre>
  
  <p>I am running on windows OS</p>