String (Text) Literals

String (Text) Literals

Literal strings are text that you wish to pass straight through to a command, i.e. the text is not interpreted in any way.

Types of Strings

Strings may either be literal (fully defined in the script) or may come from values stored in bookmark attributes. Both are treated the same way, except that bookmark attributes are not enclosed in quotes.

String Syntax

Strings are enclosed in double quotes (“).

To use the double quote within a string use it twice (“”).

Strings (including bookmark data) are automatically concatenated. E.g. "A" "B" is output as "AB".

Examples:

Basic:

"Hello World" is output as Hello World

Embedded quotes:

"Hello ""World""" is output as Hello "World"

Concatenation:

"String1" ":" "String2" is output as String1:String2

Integration with bookmark attributes

If the bmUsername attribute is JackJones then

"Username is " bmUsername becomes Username is JackJones

    • Related Articles

    • Injecting Text Into Controls

      The commands in this section are responsible for assisting the user to select credentials for an app, emulate the user typing into the app and for injecting text into the controls of a window. SelectBookmark Instructs the Desktop Agent to find the ...
    • Syntax Diagrams

      Syntax Diagrams This documentation uses syntax (or “railroad”) diagrams to show the structure of the commands. They provide a graphical way of showing mandatory and optional parameters, or parts of, a command. Graphical Representation A syntax ...
    • My1Login Desktop Client Overview

      Introduction The Desktop Client (DTC) is My1Login’s Windows solution for integrating Single Sign On with legacy (desktop, terminal) applications and web based applications. The Desktop Client runs on the user’s desktop. It monitors the processes ...
    • Script Example - Using Notepad

      Script Example - Using Notepad This section introduces a basic script that interacts with the windows Notepad application. The script does three things: It inserts some text in the Notepad window when Notepad starts. It shows a message to the user ...
    • Desktop Client Commands

      Table of Script Commands Command Description AlertInfo / AlertError Commands to show text messages to users. BringToForeground Attempt to force the main app window to desktop’s foreground. InteractiveSelectBookmark Allows manual intervention when ...