dukeslater
Technical User
I need a command to close certain applications, and this code works fine to do that (as an example):
Appactivate taskid1
Sendkeys "%fx"
However, when I add the additional code for the second, third, etc. application it goes haywire. I believe that this is because there is not a sufficient interval allowing the first application to actually close before the code fires to close the next application.
I could probably do this somehow with a timer, but the technique is escaping me. I bet there is also another, possibly better, way to accomplish this.
Thanks in advance for the help.
Appactivate taskid1
Sendkeys "%fx"
However, when I add the additional code for the second, third, etc. application it goes haywire. I believe that this is because there is not a sufficient interval allowing the first application to actually close before the code fires to close the next application.
I could probably do this somehow with a timer, but the technique is escaping me. I bet there is also another, possibly better, way to accomplish this.
Thanks in advance for the help.