title: How to send copied text to a text file using pywinauto?
body: <p>I have copied a text from my software using pywinauto. Unfortunately, I don't know how to paste that to a text file. The following is the code that I wrote: </p>
  
  <p>The last line of the code is not working as it should not. However, that is what I should do. Can anyone help me to solve this problem?</p>
  
  <pre><code>pywinauto.mouse.double_click(button='left', coords=(820,168))
  pywinauto.keyboard.send_keys('^c')
  f= open("trial.txt","w+")
  f.write(pywinauto.keyboard.send_keys('^v'))```
  </code></pre>