Program restores after opening another program

Ok, I've made my program and it works...kinda. When it runs, it opens another program, a database of sorts, and does keyboard strokes to input data read from some .xls files.

The problem is this, about 10 seconds or so into the program going it restores the last menu that I was in (99% of the time the program itself) instead of staying in the database it opened. This is similar to the keyboard hitting alt+tab. I don't know why it's doing this.

Any ideas?

The program is 301 lines long so I don't want to post the whole thing. How do I attach on this forum or can't I?
Last edited on
Paste your code at http://paste.pocoo.org/ and copy the URL here. I don't see why any program would do this?
Topic archived. No new replies allowed.