This macro copies text from a field on a screen in an InfoConnect demo program to a string variable. Then creates another demo session, navigates to a screen on the new session, and puts the text into a field on that session.
This sample uses the GetText method to get the screen text from the current session.
Then it creates a session as discussed in Dynamically Open a Session.
After creating the new session, it uses the WaitForHostSettle, SendKeys, and SendControlKey methods to navigate through several screens in the new session to the screen with the Project field.
Finally, it uses the PutText2 method to put the text into field at the specified row and column for the new session.