For Beginners

Lesson 2/18

Texts Containing Spaces

What would happen if you wanted to enter a little longer text in Notepad, for example: Hello world!? Let's see:

program notepad
keyboard Hello world!

Run this script. An error message appears. Why? Because texts containing spaces should look like this: ‴Hello world!‴.

To enter the special triple prime character embracing the text, press Ctrl and apostrophe (') key on the keyboard with US layout.

Edit the second line of your code, adding triple primes before and after the text and run the script:

program notepad
keyboard ‴Hello world!‴

Now the robot runs smoothly and your text is displayed properly.

In the next lesson you will learn how to insert special keys such as Enter or Tab and keyboard shortcuts like Ctrl+C.