I'm writing my first script to open Peachtree Accouting, export a report to Excel, save the report, then close both programs.
I can get the script to open Peachtree and export the report, but afterward it will not setfocus on any window or close any window. I've tired Alt+F4, CloseWindow, SetFocus+CloseWindow, Alt+F+X and even using mouse commands.
Any suggestions?
Can't focus or close windows
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Maybe it is busy when you're trying to close it. Perhaps you need to wait for it finish whatever it is doing. A bit drastic, but if you want to close the entire application you could try killing it's process using the KillProcess command in v12.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
I tired a 20 second wait and waitwindowclose.mtettmar wrote:Maybe it is busy when you're trying to close it. Perhaps you need to wait for it finish whatever it is doing. A bit drastic, but if you want to close the entire application you could try killing it's process using the KillProcess command in v12.