I wrote a nice AutoIt script to automate Omnipage14 because it offered no way whatsoever for a Python script to control it. Anyway everything worked except that I was running it under terminal services on another computer and whenever the terminal services window lost focus or I logged off, AutoIt just stopped running. So I spent quite a while searching and found these solutions:
The short answer is:
Give up! .. don’t run it under terminal services, try VNC instead.
The long answer is:
I searched for too many terms to even recall. I came across a lot of websites and a lot of advice for this problem. The basic problem is that when you’re not actively using terminal services, the desktop and everything GUI goes away somehow. That’s why Autoit stopped working. I tried setting up the AutoIt script to run as a service but nothing happened when I launched the service and it seemed like an overly-complex solution to research any further. The second solution I had come across (using VNC) seemed like a reasonable idea so I went that route and everything is now working fine.
Here are the discussions I found on this issue:
http://www.autoitscript.com/forum/lofiversion/index.php?t4026.html
http://tinyurl.com/8yh3w
http://tinyurl.com/7wmvy