EnglishРусский  
The project is closed! You can look at a new scripting language. It is available on GitHub.
Also, try our open source cross-platform automation software.

Ads

Installer and installation software
Commercial and Freeware installers.

Strings

Strings are define with a pair of double quotation marks in the language. If two stings come in a row, they will be combined into one string. By default, constant strings cannot be specified in the Unicode encoding. Gentee has Unicode strings ( ustr ) and you can use the UTF-8 encoding in constant strings for later conversion into Unicode. Simple string variables are defined with the str type specified.

"It is a simple string
consisting of two lines."

There is a special character '\' that allows you to perform various operations or substitutions. You can see the list of commands with the special character below.

\\     The command character output.

"c:\\temp\\readme.txt"

\"     A single quotation mark.

"This is \"Super Team\"!"

\n     Line feed, code 0x0A.
\r     Carriage return, code 0x0D.
\t     Horizontal tabulation, code 0x09.
\l     End-Of-Line - combination \r\n. It might be useful for output to a text file.
\0XX     Combination of command character and zero followed by a number of character in hexadecimal notation makes any character with code from 0 to 255 put in a string.
\#Remove the preceding carriage returns or spaces and tab characters. Only either carriage returns or spaces and tab characters are removed depending on what precedes the special character. \ 0xd 0xaIf a string just ends with the special character, the carriage return characters that follow will be deleted. It is convenient to split a too long string this way.

"Line 1\r\nLine 2\l Line \033 \
Line 3 too"

\*...*\     Comments. You can insert any comments into the string.
\$macro$     In-line insertion of preprocessor macro. The last dollar sign '$' is optional if this sign is followed neither by letter nor by digit.

"Name: \$NAME Company: \$COMPANY \*Users name and company*\"'

\( expression )     Outputting a result of the expression. In parentheses there might be an expression of any type, where string conversion occurs.
\< filename >     Content of the specified file is inserted. File name in the angle brackets must be specified as a macro string, i.e. ignoring the command character.

"5 + 10 = \( 5 + 10 ) Variable = \( var )\l \<c:\temp\my.txt>"

\[idname]If you have a long string and want to disable the special character in some part of it, specify any combination of any characters in square brackets. You do not even have to specify any additional character. To enable the special character later, just specify the same combination in square brackets.

"\[] \k\l\m [] \$NAME$ \[.S] \o\p\r [.S] \$COMPANY"

Note, there is also a macro string. Like the string, a macro string is enclosed in quotation marks; moreover, they are preceded by a dollar sign '$'. Unlike the string, the macro string does not use a command character, but it replaces macros which appear in a string. This type of a string is very appropriate for pointing file paths.

define {
 mypath = $"c:\myfolder\subfolder"
 myname = "application"
 myext = "exe"
}
...
s = $"$mypath\$myname$123.$myext"
s1 = "\$mypath\\\$myname$123.\$myext"
// s = s1 = c:\myfolder\subfolder\application123.exe