@SYSINFO

Top  Previous  Next

Syntax:

 

@SYSINFO(<string>)

 

Description:

 

This function returns various system information dependent on the value of <string>.

The possible values are:

 

FREEMEM

Returns the amount of memory currently free, in Kb

PIXPERIN

Returns the number of pixels per inch of screen resolution

SCREENHEIGHT

Returns the height of the screen in pixels

SCREENWIDTH

Returns the width of the screen in pixels

WINVER

Returns the Windows version number

WIN32

Returns the value 1 (true) if running in a 32 bit version of Windows.

DSVER

Returns the DialogScript version number

WINBOOT

Returns the time elapsed since the last system start. [VDS5] This is returned as text formatted according to the Windows time display preferences. [VDS6] This is returned as a fractional number of days, and may be formatted for display using the @DATETIME function. Note that this value will restart at zero after the system has been running for more than 49 days.

SCREENRECT

This function returns a string containing the top, left, right (width) and bottom (height) extents of the screen display, each value being separated using the current field separator character. Since the top and left values are always zero, the same information can be obtained using two function calls: @SYSINFO(SCREENWIDTH) and @SYSINFO(SCREENHEIGHT).

THEMED

This function returns a true value if the application is running under Windows XP and theming is enabled (i.e. a manifest has been added to the executable file.) Note that theming is always enabled when a script is run from the IDE under Windows XP.

WININFO

This option returns a text string containing information such as the latest service pack installed. If no service pack has been installed this string may be null.

WINVER

If the additional parameter "B" is supplied, the string returned consists of the Windows version followed by the build number, separated by the current field separator character

DESKTOPRECT

This function returns a string containing the top, left, right (width) and bottom (height) extents of the desktop, each value being separated using the current field separator character. This will be the same as the screen (see @SYSINFO(SCREENRECT)) if the task bar is set to AutoHide. If not, the values will be reflect the amount of the screen that is usable as the desktop.

ISNT

This function returns a true (non-null) value if the host operating system is a member of the Windows NT family.

INIDE

[VDS6] This function returns a true (non-null) value if the script is running under the Visual DialogScript IDE. This can be useful in the case of functions such as accessing resources compiled into the executable that don't work correctly under the IDE.

LANGUAGE

This function returns a value which represents the currently selected language of the system that the script is running on. The values are:

$00

Neutral

$0B

Finnish

$16

Portuguese

$23

Belarussian

$01

Arabic

$0C

French

$18

Romanian

$24

Slovenian

$02

Bulgarian

$0D

Hebrew

$19

Russian

$25

Estonian

$03

Catalan

$0E

Hungarian

$1A

SerboCroat

$26

Latvian

$04

Chinese

$0F

Icelandic

$1B

Slovakian

$27

Lithuanian

$05

Czech

$10

Italian

$1C

Albanian

$29

Farsi

$06

Danish

$11

Japanese

$1D

Swedish

$2A

Vietnamese

$07

German

$12

Korean

$1E

Thai

$2D

Basque

$08

Greek

$13

Dutch

$1F

Turkish

$36

Afrikaans

$09

English

$14

Norwegian

$21

Indonesian

$38

Faeroese

$0A

Spanish

$15

Polish

$22

Ukrainian



OK:

 

Unchanged.

Example:

title System Information

%W = Windows version@tab()= @SYSINFO(WINVER)

%M = Free memory@tab()= @SYSINFO(FREEMEM)Kb

%S = Screen width@tab()= @SYSINFO(SCREENWIDTH)

%T = Screen height@tab()= @SYSINFO(SCREENHEIGHT)

%P = Pixels per inch@tab()= @SYSINFO(PIXPERIN)

info %W@CR()%M@CR()%S@CR()%T@CR()%P

 

See a more advanced example...

 

See also: