title: Pyautogui Script and Looping
body: <p>Made a script to copy info to an API.
  How do i repeat this script to run a certain number of times?</p>
  <p>Sorry, just started playing around with python for work so i'm not too sure of what i'm doing just yet.
  Thank you!</p>
  <pre><code>import pyautogui as pag
  import time
  time.sleep (3)
  
  pag.click(448, 98, interval = 0.25) #click NEW bookmark
  pag.hotkey('ctrl', 'tab') #switch to spreadsheet; must be on the correct cell
  pag.hotkey('ctrl', 'c', interval=0.25) #copies first name from spreadsheet
  pag.press('tab') #move to last name cell before switch to API
  pag.hotkey('ctrl', 'tab') #switch back to API
  pag.scroll(50) #scrolls to view recruiter
  pag.click(192, 297) #clicks first name box to have a place to press enter
  pag.press('enter') #saves entered information
  </code></pre>