@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:
|
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: