Skip to main content

G1ANT Language Add-On


About Language Add-on
Language Add-on is the most important as well as most useful add-on on G1ANT.robot. This add-on contains mostly structures like list, dictionary etc. We don't need to import this add-on externally, this add-on automatically imported on new script. 

Language Add-on consist of various commands and structure.

Commands - 
1) end = This command ends a command block started with the following commands: for , while , foreach, if , procedure, try
2) error = This command allows error handling using variables of error structure.

Structure - 

1)bool  =       This structure is used for variables storing the Boolean values: `true` and `false`
2)datatable =   The datatable structure stores information about array of arrays.
3)date  = The date structure stores information about the date in the following fields
4)datetime =  The datetime structure stores information about date and time in the following fields
5)html =  This structure stores values of imported HTML files
6)json = This structure stores the content of JSON
7)attachment = The attachment structure stores current information about a mail attachment, which was downloaded with the 
8)mail = This structure stores current information about a mail message, which was downloaded with the `mail.imap` command
9)window = This structure stores informations about process window
10)password = This structure stores passwords
11)path = This structure stores paths to files or directories and contains the following fields
12)float = The float structure represents a number with a decimal point separator
13)error = This structure contains information about an error that occurred while the script was executed
14)integer = The integer structure stores a number that can be written without a fractional component and ranging from -2,147,483,648 to 2,147,483,647
15)label = This structure stores names of labels, which are called by the `jump` command
16)dictionary = The dictionary structure stores a dictionary entry, which is a key-value pair separated with an array separator (❚)
17)list  = This structure stores multiple countable ordered values within a single variable
18)money = This structure represents a decimal number with up to 29 significant digits, which is important for financial calculations to avoid rounding errors
19)point = This structure stores pixel coordinates values
20)procedure = This structure stores names of procedures
21)rectangle = This structure is designed to store coordinates of pixels in the two rectangle's corners — top left and bottom right — in `x1⫽y1⫽x2⫽y2` format, where `x1⫽y1` are the coordinates of the top left corner and `x2⫽y2` are the coordinates of the bottom right corner
22)timespan = This structure stores a time interval value (duration of time or elapsed time) that is measured as a positive or negative number of days, hours, minutes, seconds and milliseconds
23)variable = This structure stores names of variables
24)xml = This structure stores the content of imported XML files as text into G1ANT.Robot using the `text.read` command
25)text = This structure stores text values
26)time = This structure stores information about time in the following fields

To understand the language add-on, one should try to run the scripts written using these variables and structures. Click this link to access the scripts. 





Comments

Popular posts from this blog

G1ANT Watson Add-On

What is Watson  ? Watson is a question-answering computer system capable of answering questions posed in natural language, developed in IBM's DeepQA project by a research team led by principal investigator David Ferrucci. Watson was named after IBM's founder and first CEO, industrialist Thomas J. Watson. What you can do with Watson on G1ANT ? We can do image classification and speech to text conversion with the help of Watson on G1ANT. In order to use Watson  follow the steps:  1) We have to create  account on IBM cloud. 2) Click on Catalog and select the Visual Recognition  and Speech to Text   3) Click on create then open the services and select the required service click on create credentials. 4) Copy the API Key and paste in the G1ANT script in order to use them.  There are two Watson commands available in G1ANT   1)  watson.classifyimage :  This command classifies a specified image. Class scores range from 0 - 1, where a hig...

G1ANT OCR Google Addon and OCR Tesseract Addon

What is OCR ? Optical character recognition or optical character reader is the electronic or mechanical conversion of images of typed, handwritten or printed text into machine-encoded text, whether from a scanned document, a photo of a document, a scene-photo or from subtitle text superimposed on an image. OCR Google Add-on This add-on helps to use OCR technique via G1ANT. robot. This add-on helps to recognize text from images/screen on google.com. This add-on comprises of various commands like  ocrgoogle.find ocrgoogle.fromscreen ocrgoogle.login To use this command one should activate his/her google developer account and generate a API key or JSON file. A credit /debit card is must to activate the account, either you choose free trail or paid subscription credit/debit card is needed. OCR  Tesseract Add-on This add-on helps to use OCR technique via G1ANT.robot also. This add-on helps to recognize text from images/screen on windows applications like notepad, internet exp...