User Guide > Working with objects and properties > Types of objects > Variables and Expressions > List of internal variables


Variables of the project

Group of variables

Variable name

Type

Access

Description

General

ROOT

String

Read

The Project Disk Root folder

 

RESOURCES

String

Read

The Project resources folder

System paths

MYDOCUMENTS

String

Read

The user's personal ("My Documents") folder on their system.

Usually this is something like :

"Users\<UserName>\My Documents"

 

APPDATA

String

Read

The file system directory that serves as a common repository for application-specific data.

 

DESKTOP

String

Read

The path to the user's Desktop directory. A typical path is "Users\<UserName>\Desktop"


MYMUSIC

String

Read

My music folder. A typical path is "Users\<UserName>\My Music"


MYPICTURE

String

Read

My picture folder. A typical path is "Users\<UserName>\My Picture"


LAST_SELECTED

String

Read

The folder, that has been selected in the Select folder dialog. Used for the "Copy a folder" action  or for the ""Copy files" action.

Windows version

WINVERSION_NAME

String

Read

The text name of the operating system. For more information, see Remarks.


WINVERSION_MAJOR

Number

Read

The major version number of the operating system. For more information, see Remarks.


WINVERSION_MINOR

Number

Read

The minor version number of the operating system. For more information, see Remarks.


WINVERSION_TYPE

Number

Read

The additional information about the system. For more information, see Remarks.


WINVERSION_X64

Boolean

Read

The logical value is True if the application is launched in Windows 64-bit.

Localization

LANGUAGE_NAME

String

Read/Write

The name of the current language.

System info

ScreenWidth

Number

Read

The width in pixels of a user's screen.


ScreenHeight

Number

Read

The height in pixels of a user's screen.


SysLocaleName

String

Read

The locale name of the operating system based on RFC 4646. Generally, the pattern <language>-<REGION> is used. Here, language is a lowercase ISO 639 language code. The codes from ISO 639-1 are used when available. Otherwise, codes from ISO 639-2/T are used. REGION specifies an uppercase ISO 3166-1 country/region identifier. For example, the locale name for English (United States) is "en-US".


SysLanguageName

String

Read

The lowercase ISO 639 language code , for example:  "en" - English, "fr" - French, "de" - German, "it" - Italian, "es" - Spanish and etc.)

 

Remarks. The following table summarizes the values returned by supported versions of Windows.

Operating system

WINVERSION_NAME

WINVERSION_MAJOR

WINVERSION_MINOR

WINVERSION_TYPE

Windows 10

"WIN10"

= 10

= 0

= 1

Windows 8.1

“WIN8_1”

= 6

= 3

= 1

Windows Server 2012 R2

“WINSERVER2012SR2”

= 6

= 3

! = 1

Windows 8

“WIN8”

= 6

= 2

= 1

Windows Server 2012

“WINSERVER2012”

= 6

= 2

! = 1

Windows 7

“WIN7”

= 6

= 1

= 1

Windows Server 2008 R2

“WINSERVER2008SR2”

= 6

= 1

!= 1

Windows Server 2008

“WINSERVER2008”

= 6

= 0

!= 1

Windows Vista

“WINVISTA”

= 6

= 0

!= 1

Windows XP

“WINXP”

= 5

= 1

-

Windows Server 2003

“WINSERVER2003”

= 5

= 2

-

Windows 2000

“WIN2K”

= 5

= 0

-

 

Variables of the window object

Group of variables

Variable name

Type

Access

Description

General

“WindowName”

String

Read/Write

The name of the window.

 

“CurPageNumber”

Number

Read/Write

The index of the active page inside the window object.

 

“CurPageName”

String

Read/Write

The name of the active page inside the window object.

       

Variables of the visual object

Group of variables

Variable name

Type

Access

Description

General

“Disable”

Boolean

Read/Write

Shows when the object doesn't respond to user interaction


“Visible”

Boolean

Read/Write

Visibility of the object


“Text”

String

Read/Write

Text of the object


“CheckState”

Boolean

Read/Write

State of the checkbox or of the radio button


"CurSelIndex"

Integer

Read/Write

The index of the current selection in the list box or in the list box of a combo box.


"CurSelText"

String

Read/Write

The text of the current selection in the list box or in the list box of a combo box.


"CurSelValue"

String

Read/Write

The value of the current selection in the list box or in the list box of a combo box.


"ComboText"

String

Read/Write

The text in the edit control portion of a combo box (matters only for an editable combo box).


"CurTrackIndex"

Integer

Read/Write

The index of the current track in the media/music player object.


"CurTrackName"

String

Read/Write

The name of the current track in the media/music player object.

Mouse state

“MouseOver”

Boolean

Read

Shows when the mouse pointer is held over an object


“MouseLBtnDown”

Boolean

Read

Shows when the left mouse button is pressed over an object

Position & size

"Left"

Integer

Read/Write

The position of the left edge of the object.


"Top"

Integer

Read/Write

The position of the top edge of the object.


"Width"

Integer

Read/Write

The width of the object in pixels.


"Height"

Integer

Read/Write

The height of the object in pixels.