Please enable JavaScript to view this site.

ESL Documentation

Prototype

subroutine EcsTypeString( string:String )

Description

Simulates the typing of an ASCII string on a terminal keyboard, start at the current cursor position.

Parameters

String

Input

The text to be typed into the emulator. Note that the string can include tab "\t" characters to skip to the next input field on the screen.

Return Value

ECS_E_NOTINIT

Not initialized - command was ignored

ECS_E_NOTCONN

Not connected to an active session

ECS_E_SENDKEY

Failed to send keystroke(s)

ECS_E_ERRORFREE

No errors were generated

Example

###**************************

###  Actions to type a string 

###**************************

action TypeString is

    copy text of String_MLE in Write_DB to String_SV

    call EcsTypeString ( String_SV )

    copy errorlevel to ErrorLevel_IV

    copy "EcsTypeString" to Call_SV

    if ( ErrorLevel_IV = ECS_E_ERRORFREE ) then

        copy "Type string was successful" to Message_SV

        action DisplayMessage

    else

        action DisplayError

    end if