title: Can PHP be used to control a GUI application?
body: <p>Suppose I have a GUI-only application that runs on Windows and I'd like to create a web interface for it using PHP. Is it even possible? I know I can use functions like system() or exec() to launch programs, but can I have more control over a running GUI app? Primarily, I would like to be able to send it keystrokes, so I can use it to process a file, save the output, and exit.</p>
  
  <p>Please point me in the right direction.</p>