title: Combining pyperclip copy-to-clipboard with pyautogui paste?
body: <p>I want to paste some text loaded in from python into a browser field:
  Any method to load something into the clipboard, which I can then paste using Ctrl+V. Currently I see pyperclip.paste() only paste the text into the console, instead of where I want it. Pressing Ctrl+V after running <code>pyperclip.copy('sometext')</code> does nothing.</p>
  
  <pre><code>import pyautogui
  import pyperclip
  
  def click():
      try:
          pyautogui.click()
      except:
          pass
  
  pyperclip.copy('sometext')
  pyautogui.moveTo(4796, 714)
  click()
  pyperclip.paste()
  pyautogui.hotkey('ctrl', 'v', interval = 0.15)
  </code></pre>
  
  <p>What am I doing wrong here? An alternative method would be just as welcome as a fix - preferably one that avoids using <code>pyautogui.typewrite()</code> as it takes a long time for lots of text</p>
  
  <p>Update: seems to be a problem with <code>pyperclip.copy('sometext')</code> not putting or overwriting <code>'sometext'</code> into the clipboard. the pyperclip paste function works as it should, and so does the pyautogui Ctrl+V</p>