title: Python and popup windows
body: <p>I have searched for days and tried too many incorrect solutions. I have a python script that used to upload a csv file to a website. The website has added a popup box that must be addressed before the upload can begin. How do I detect that popup box and simulate an "OK" click? I have check and rechecked that the file is correct (it will upload properly if done manually). Script is hosted on GoDaddy and was a P.. I.. T.. A.. to get host to run.I am not that familiar with python but didn't think it would be this difficult. Yes I tried:</p>
  
  <pre><code>from evdev import uinput, ecodes as e
  
  with uinput.UInput() as ui:
       ui.write(e.EV_KEY, e.KEY_ENTER, 1)
       ui.write(e.EV_KEY, e.KEY_ENTER, 0)
       ui.syn()
  </code></pre>
  
  <p>and it does not work! I found this smippit but it doesn't work either:</p>
  
  <pre><code>import thread
  import time
  
  def keypress():
      global char
      char = chr(13)
  </code></pre>