title: Python-declare specific region for image clicking
body: <p>I am new for Python!
  I would like to define a small region for reading the image, not searching the whole screen. I have some code below but not successful:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>import pyautogui, time
  while True:    
      if pyautogui.screenshot(region=(666,0, 200, 200)pyautogui.locateOnScreen(r'C:\Users\Lawrence\Desktop\PyTest\image.png', grayscale=True)):
         pyautogui.click(1880,15)
         time.sleep(0.1)
         break</code></pre>
  </div>
  </div>
  </p>
  
  <p>Hopefully somebody can help! Thank you very much!</p>