Share this page

# TE_typing_style

Send Text Functions

Determines the way text is typed into the terminal emulator.

    int TE_typing_style( const char *style );

## Inputs

style | Indicates the typing style, either FAST or HUMAN. FAST sends characters as a single string. HUMAN waits for a specified interval between characters, and has the following format: HUMAN, delay [,first_delay] The delay indicates the interval, in milliseconds, between keystrokes. The optional parameter first_delay indicates the wait, in milliseconds, before typing the first character in the string.

The TE_typing_style function determines how typed strings are submitted to the client application running in the terminal emulator. If you select FAST, characters are sent as a single string. This input style requires no arguments.

If you select HUMAN, the individual characters are sent separately. You determine the delay between characters using two arguments. The delay indicates the interval to wait before submitting each individual character. The optional first_delay parameter indicates the interval to wait before typing the first character in the string.

The default typing style is HUMAN.

Note: The initial wait time is reset between TE_type calls. To make a sequence of keystrokes follow the type style defined by a TE_typing_style call, concatenate the entire sequence in the same TE_type function

## Return Values

This function returns 0 if it succeeds, and a negative error code if it fails. It also sets the global variable TE_errno.

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

In the following example, the script waits 0.5 seconds before typing the letter A; it then waits 0.1 seconds before typing B, and then a further 0.1 seconds before typing C.

Copy code

    TE_typing_style ("HUMAN, 100, 500");
    TE_type ("ABC");

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: