I am trying to enter string into an IM application which ST sees perfectly well. However, every time I run testcase, ST stops seeing the app and all controls.

The testcase is simple:
wMyWindow.TypeKeys("This is a test")

At runtime, error returned saying window not found, after which, the whole application is not recognized. Record|Window Ids sees nothing. Have to close ST and restart, after which it will see everything fine til try to run test case.

Any advice?