RoboTask User's Guide
Keyword Index
Home page



IconQuick Start Guide
IconSeveral practical recommendations
IconMenus
IconActions
IconTriggering Events
IconAppendix
IconOther software

© 2004-2017 Neowise.com

Full list of system variables

Top  Previous  Next
Example of usageDescription

 

{AddressOnly(John Smith <j.smith@mydomain.com>)}Returns address only from full address
{Asc(©)}Returns ASCII code of specified character.
{BatteryLife}The number of seconds of battery life remaining.
{BatteryPower}The percentage of full battery charge remaining.
{CapsLockState}Checks CapsLock state
{CDDiskSpace(E)}Available CD free space
{CDDriveCount}CD drives count
{CDDriveLeter(0)}CD drive letter by number
{CDDriveModel(0)}CD drive model
{CDDriveVendor(0)}CD drive vendor
{CDMediaType(E)}CD media type
{Chr(169)}Returns the symbol with specified ASCII code.
{ClipBoardContent}Clipboard content as Text
{CommaSeparatedToText("item 1","item 2","item 3")}Converts commaseparated string to multiline text
{ComputerName}Computer name
{CPULoad}CPU load in percent
{CurrentWindowCaption}Returns the title (caption) of current active window
{CurrentWindowClass}Returns the class name of current active window
{CurrentWindowHandle}Returns the handle of current active window
{Date}Current date
{DateIncDays(-7)}Current date ± number of days
{DateTime}Current date & time
{DateTimeToFormat({Date},yyyy-mm-dd)}Returns formatted date and time in specified format *
{Day}Current day
{DayOfTheYear({Date})}Returns the day of the year of specified or current date
{DayOfWeek}Current day of week
{DayOfWeekNo}Current day of week number
{DefScriptDir}Default Basic script folder
{DiskLoad(c:\)}Returns the disk load in percents
{EnvironmentVar(Path)}Get environment variable
{Eol}End of line
{ExtractFileDrive(C:\Folder\File.ext)}Extracts file drive from full path
{ExtractFileExt(C:\Folder\File.ext)}Extracts file extension from full path
{ExtractFileName(C:\Folder\File.ext)}Extracts file name from full path
{ExtractFileNameNoExt(C:\Folder\File.ext)}Extracts file name without extension
{ExtractFilePath(C:\Folder\File.ext)}Extracts file path from full path
{ExtractFilePathNoDrive(C:\Folder\File.ext)}Extracts file path from root folder
{FileAttributes(C:\AUTOEXEC.BAT)}Returns attributes of file as string, like this: "AHRS"
{FileExists({TempDir}\file.tmp)}Check file existence
{FilesCount({TempDir})}Returns the amount of files in specified folder
{FileSize(c:\autoexec.bat)}File size in bytes
{FileTime(c:\autoexec.bat)}Returns the time of last update
{FolderExists({TempDir})}Checks folder existence
{FoldersCount({TempDir})}Returns the amount of folders in specified folder
{FolderSize({TempDir})}Returns the total size of files in specified folder (in bytes)
{FormatToDateTime(2014-02-19,yyyy-mm-dd)}Returns standard date and time from formatted string *
{FreeDiskSpace(c:)}Free disk space in bytes
{GetCurrentFolder}Returns full path of current folder
{Hours}Current hours
{IncDays(-1)}Current day ± number of days
{IncMonths(-1)}Current month ± number of months
{IncYears(-1)}Current year ± number of years
{IPAddress({ComputerName})}Returns IP address by computer name
{IsDriveWriter(0)}True if CD drive is writer
{IsError}Returns "True" when error occurred at previous step
{IsFileFree(c:\autoexec.bat)}Checks file for free access
{IsProcessExists(notepad.exe)}Checks existence of process in memory
{IsWindowActive(Notepad)}Check window existence
{IsWindowHidden(Notepad)}Returns "True" if window invisible
{IsWindowMaximized(Notepad)}Returns "True" if window maximized
{IsWindowMinimized(Notepad)}Returns "True" if window minimized
{IsWindowVisible(Notepad)}Returns "True" if window visible
{LastErrorCode}Error code. Parameter of error handling task.
{LastErrorDescription}Error description. Parameter of error handling task.
{LastErrorStep}Error step number. Parameter of error handling task.
{LastErrorTaskExternalName}External name of error task. Parameter of error handling task.
{LastErrorTaskID}Error task ID. Parameter of error handling task.
{LastErrorTaskName}Error task name. Parameter of error handling task.
{LogFileName}Log file name (works only in context of the task)
{LogFolder}Folder of logs
{LowerCase(Sample String)}Converts a string to lowercase.
{MemoryLoad}Memory load in percent
{Minutes}Current minutes
{MonitorCount}Number of Monitors
{MonthIncDays(-1)}Current month ± number of days
{MonthName}Current month name
{MonthNo}Current month number
{mSeconds}Current milliseconds
{NumLockState}Checks NumLock state
{OnBattery}True - if computer on battery; False - power is online
{RandomValue(1000)}Returns random integer value between 0 and parameter (default 1000)
{ScreenBottom(0)}Bottom edge of specified screen
{ScreenH(0)}Height of specified screen
{ScreenHeight(0)}Height of specified screen
{ScreenLeft(0)}Left edge of specified screen
{ScreenRight(0)}Right edge of specified screen
{ScreenTop(0)}Top edge of specified screen
{ScreenW(0)}Width of specified screen
{ScreenWidth(0)}Width of specified screen
{ScrollLockState}Checks ScrollLock state
{Seconds}Current seconds
{ShortDayOfWeek}Current day of week short name
{ShortMonthName}Current month short name
{ShortYear}Two-digits current year
{ShortYearIncDays(-1)}Two-digits current year ± number of days
{StrLength(Sample String)}Returns the length of specified string.
{SystemDir}Windows system directory
{TaskCategoryID}Category ID of current task (works only in context of the task)
{TaskExtName}External name of current task (works only in context of the task)
{TaskFileByID({TaskId})}Task filename by ID
{TaskFileName}Task file name (works only in context of the task)
{TaskFolder}Folder of tasks
{TaskID}ID of current task (works only in context of the task)
{TaskLogFileById({TaskId})}Task log filename by ID
{TaskName}Name of current task (works only in context of the task)
{TempDir}Temporary directory
{TextFile(file_name)}Contents of text file
{TextFileANSI(file_name)}Reads the text file as ANSI text and returns the text
{TextFileUNICODE(file_name)}Reads the text file as UNICODE text and returns the text
{TextFileUTF8(file_name)}Reads the text file as UTF8 text and returns the text
{TextToCommaSeparated(Line 1{EOL}Line 2)}Converts multiline text to commaseparated string
{Time}Current time
{TotalDiskSpace(c:\)}Returns the total size of specified disk (in bytes)
{UniqueFileName({TempDir}\*.tmp)}Returns unique random file name by the mask
{UpperCase(Sample String)}Converts a string to uppercase.
{UserName}User name
{UTF8Decode(Symbols: €, £, ¼, ½, ¾, Ø)}Decodes string from UTF8 format
{UTF8Encode(Symbols: €, ?, ?, ?, ?, O)}Encodes string to UTF8 format
{ValidFileName(c:\"My<Invalid:File*Name>.txt")}Returns valid file name
{VolumeLabel(c:\)}Returns the label of specified volume
{WeekOfTheYear({Date})}Returns the week of the year of specified or current date
{WinDir}Windows directory
{WindowCaption({CurrentWindowHandle})}Returns the title (caption) of specified window handle
{WindowClass({CurrentWindowHandle})}Returns the class name of specified window handle
{WindowExists(Notepad)}Check window existence
{Year}Current year
{YearIncDays(-1)}Current year ± number of days

 

 

(*) Format options for format variables:

d Displays the day as a number without a leading zero (1-31).
ddDisplays the day as a number with a leading zero (01-31).
mmDisplays the month as a number with a leading zero (01-12). If the mm specifier immediately follows an h or hh specifier, the minute rather than the month is displayed.
yyDisplays the year as a two-digit number (00-99).
yyyyDisplays the year as a four-digit number (0000-9999).
hDisplays the hour without a leading zero (0-23).
hhDisplays the hour with a leading zero (00-23).
nDisplays the minute without a leading zero (0-59).
nnDisplays the minute with a leading zero (00-59).
sDisplays the second without a leading zero (0-59).
ssDisplays the second with a leading zero (00-59).
am/pmUses the 12-hour clock for the preceding h or hh specifier, and displays 'am' for any hour before noon, and 'pm' for any hour after noon. The am/pm specifier can use lower, upper, or mixed case, and the result is displayed accordingly.
a/pUses the 12-hour clock for the preceding h or hh specifier, and displays 'a' for any hour before noon, and 'p' for any hour after noon. The a/p specifier can use lower, upper, or mixed case, and the result is displayed accordingly.