title: Running xdotool movewindow from a python script
body: <p>I am writing a python script to run a movie using ffplay, and then move the ffplay window to a specific location on the screen.</p>
  
  <p>The script I am basing this one is located here - <a href="http://code.activestate.com/recipes/577376-simple-way-to-execute-multiple-process-in-parallel/" rel="nofollow">http://code.activestate.com/recipes/577376-simple-way-to-execute-multiple-process-in-parallel/</a></p>
  
  <p>The only difference is I am changing the commands array at the bottom to</p>
  
  <pre><code>commands = [
      ['xdotool', 'search', '--name', 'Goodfellas', 'windowmove', '480', '200'],
      ['ffplay', '-x', '320', '-y', '180', '-autoexit', '/data/media/Vidoes/Movies/Goodfellas.mp4']
  ]
  </code></pre>
  
  <p>The video plays fine, but the window will not move position</p>
  
  <p>To test if the script is actually cycling through all the commands I added the command</p>
  
  <pre><code>['xdotool', 'mousemove', '180', '180'],
  </code></pre>
  
  <p>And the mouse will indeed move to location 180, 180 on my screen</p>
  
  <p>Perhaps maybe ffplay takes a split second to load and there is still no screen called Goodfellas when the movewindow command is executed</p>