Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

Text application methods and events

Updated on October 19, 2022

Text applications have the following methods and events.


FocusPlaces focus on the main window of the target application.
HideHides all processes currently running in this adapter.
MaximizeMaximizes the main window of the target application.
MinimizeMinimizes the main window of the target application.
RematchChildrenRefreshes matching on all objects under the adapter. Set the detach property to True to unmatch all targets before attempting to rematch.
ReseteStateResets all component properties to their initial values.
RestoreRestores the main window of the target application.
SendControlSequence (1 parameter)

Sends the appropriate control sequence data. Control sequences consist of text data plus optional binary data expressed with an octal escape sequence. The octal number must contain three digits, including leading zeros, for example, ABCD\007.

This sends the letters ‘ABCD’ followed by 7 (BELL). Note, this is not the character 7 (which is 55 in ASCII).

SendKeyStringToHost (1 Param)Sends the key string data to the host application.

SendKeyStringToHostPlusEnter (1 Param)

Sends the key string data plus an Enter key to the host application.
SendKeyToHost (1 param, 2 param)

Sends the keystroke to the host application.

Parameters are: (Keys), (Char), (Host Keys), (Keys Key, Int32 Repeal Count), (Char key, Int32 Repeal Count), (Host32Key, Int32 Repeal Count.

ShowShows all processes currently running in this adapter.

Set this property to True if you want hidden fields, such as those that show passwords or other sensitive information, to appear. The default is False, which hides this information.

The ShowHiddenFields property for Text adapters is not supported by all emulators. For example, it is not supported by Reflection or Call.

StartStarts the application.
StopStops the associated process (and all child processes) using StopMethod.


StartedOccurs when the host application is started.
StartingOccurs when the host application is starting.
StoppedOccurs when the host application exits.
StoppingOccurs before the Stop is called on the host application.
TerminatedOccurs when the host application is terminated.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us