- Add support for reading scripts from stdin.   Requested by Paul and Henning Bekel on the xdotool-users mailing list.
- Add support for reading scripts from stdin.
  Requested by Paul and Henning Bekel on the xdotool-users mailing list.

  Scripts right now are simply a list of commands to give to xdotool.

  For example:
    #!/usr/bin/xdotool
    mousemove 30 30
    click 1
    click 1

  You can invoke this manually by doing any of the following:
  xdotool my/file/script
  xdotool -   # Causes xdo to read from stdin
  xdotool < my/file/script   # uses isatty(3) to detect stdin redirection

  No variables or whatnot, though environment variable should work since we just
  run each command as 'xdotool ' + your command via system(3). For example:

  myscript.xdo:
    #!/usr/local/bin/xdotool
    windowactivate $WINDOWID
    mousemove -window $WINDOWID 50 50
    click 1
    click 1

  # Now run it:
  % WINDOWID=46137379 ./myscript.xdo


git-svn-id: 3e233b966d8db0098658eee0e1eda9b14ab3892d@2671 66067f73-fe4c-0410-82e9-b9c6d0c95a22

webdev1001/xdotool,rudimeier/xdotool,rudimeier/xdotool,roroco/xdotool,roroco/xdotool,webdev1001/xdotool,yatsek/xdotool,roroco/xdotool,yatsek/xdotool,webdev1001/xdotool,rudimeier/xdotool,webdev1001/xdotool,yatsek/xdotool,roroco/xdotool,yatsek/xdotool,rudimeier/xdotool,roroco/xdotool