QuickStart tutorial – First steps in Robin

Some Notable Features

  • Robin is very easy to use with very simple syntax
  • Robin is not case sensitive
  • Robin is limitless, as anyone can develop modules from scratch.

The Syntax

Robin is an RPA language with which any process can be automated and be converted to an automation.

In this section we can see the basics on the syntax used in Robin.

Variables

Robin uses variables to store information. Variables can be stored either directly using the set assignment statement, or by using dedicated actions.

Below we see the NumVar variable being assigned the value 5 using the “Set Variable” assignment statement.

Set NumVar to 5

The second way is using an action. Below, the “Current” action of the DateTime module is used. The output of the action is a value of the datetime at the time of the execution. The value is stored in the “CurrentDateTime” variable which can be referenced later on.

DateTime.Current DateTimeFormat:DateTimeFormat.DateAndTime Offset:'0' CurrentDateTime=> CurrentDateTime

Input and Output of Actions

In the above example, the DateTime was stored in the “CurrentDateTime” variable. This is also called the output of the action.

Generally, actions require input and produce output. There exist actions, however, that may not require input whilst others may not produce output.

In the command below, the action display message presents the date time through a message box. The value is passed trough the “CurrentDateTime” variable

This action includes multiple input parameters. From these, two input parameters are in use; the Title and the Message. The Title is populated using quotes, while the message is populated using a variable.

Display.ShowMessage Title:'This is the Current Time and Date' Message:CurrentDateTime ButtonPressed=> ButtonPressed

The automation now looks like this: This automation identifies the machine’s time and date and presents it through a message dialog.

DateTime.Current DateTimeFormat:DateTimeFormat.DateAndTime Offset:'0' CurrentDateTime=> CurrentDateTime

Display.ShowMessage Title:'This is the Current Time and Date' Message:CurrentDateTime Icon:Icon.None Buttons:Buttons.OK DefaultButton:DefaultButton.Button1 IsTopMost:False ButtonPressed=> ButtonPressed

Actions Structure

Actions belong to modules. Have a look at the structure below:

Module.Action InputParameter1:'Value1' InputParameter2:'Value2' OutputParameter=> OutputVariable
In this case, the action to be used is the “Display Input Dialog” which will need a title and a dialog message.

Selecting the action from the module the following command is autogenerated.

Display.InputDialog Title:'' Message:'' DefaultValue:'' InputType:InputType.SingleLine IsTopMost:False UserInput=> UserInput ButtonPressed=> ButtonPressed

Breaking down the above action:

Command Definition
Display The action belongs in the Display Module.
InputDialog The action is called Input Dialog.
Title:” The first input parameter is the Title and should be populated in the quotes.
Message:” The second input parameter is the Message that appears to the user and should be populated in the quotes.
DefaultValue:” The third input parameter is the default value appearing in the input field.
InputType:InputType.SingleLine As a fourth parameter we need to identify the field to be populated. This can be single line, single line with password or multi line.
IsTopMost:False An option to keep the message box always on top is the final Input parameter.
UserInput=> UserInput The first output variable this action produces is the input that the user populated and it’s saved in the UserInput variable.
ButtonPressed=> ButtonPressed The second output parameter is the button that the user pressed.