I've got a print driver which launches another app after one selects "Print" from the regular print dialog.
What I'm trying to do is:
My other option would be to simply create a script that watches for the window of the second app to appear and then do what I want. But, I hate to do this because it just seems messy to have a script idling away looking for a window to appear that may only happen several times a day. I'm also concerned about CPU impact and would like to handle it as I've first described.
Any ideas on determining how the call is actually being made from the first app to the second app (tools?). Or, I'm guessing that if a window watcher script only checks for the window every second, it probably wouldn't impact things too much?
What I'm trying to do is:
- Redirect the call from the second app and set it to run my compiled autoit .exe (already done this).
- Have my autoit script then launch the second app (with the $CmdLine variable pass on) that was supposed to be run. I can't do this because somehow the second executable recognizes that it wasn't run in the normal fashion. It produces a window saying "This application cannot be run from the command line."
My other option would be to simply create a script that watches for the window of the second app to appear and then do what I want. But, I hate to do this because it just seems messy to have a script idling away looking for a window to appear that may only happen several times a day. I'm also concerned about CPU impact and would like to handle it as I've first described.
Any ideas on determining how the call is actually being made from the first app to the second app (tools?). Or, I'm guessing that if a window watcher script only checks for the window every second, it probably wouldn't impact things too much?