Shell and Focus

  • Thread starter Thread starter Chas2002
  • Start date Start date
C

Chas2002

Guest
Hi All,

I have a db that communicates with a com port using TeraTerm. The DB basically writes a macro file using the Print commands then shells the TeraTerm and the macro.

Shell C:\Teraterm.exe /M=SystConnect

All of this works fine.

My question is: It takes a while to login using Dial Up with Tera Term, so I don't want to kill the application and re-open the application each time Access calls a function. I'd like to allow the macro to run and close, keep the Tera Term application open and 'link' any additional macros to the App.

I could do this with Sendkeys, something like sendkeys "%OM", but after Tera Term runs the macro it's not in focus anymore. How do I get Tera Term back in focus and send the keys to it?

Thank
 

Users who are viewing this thread

Back
Top Bottom