reference:evaluator:sysinfo

SysInfo(
     string:property
)
var

Arguments

property

Name of property to return. Available properties are:

DarkModereturns True if Opus is in dark mode
DarkModeAppsreturns True if other apps should be in dark mode
DPIreturns the DPI that Opus is currently running in (e.g. 96 DPI is 100% scaling).
LanguageReturns a string identifying the language Opus is currently using.
MouseMonitorreturns index of monitor the mouse is currently on
MousePosXreturns mouse x-coordinate
MousePosYreturns mouse y-coordinate
SystemDPIreturns the DPI that the system is currently running in (e.g. 96 DPI is 100% scaling). This will normally be the same as the DPI value, but if the system DPI has been changed and Opus has not been restarted they can be different.
TouchInputreturns True if Windows is in tablet mode
USBInstallreturns True if Opus is running from a USB export
Versionreturns the full Opus version string
VerHighreturns the major ("high") Opus version number (e.g. 13)
VerLowreturns the minor ("low") Opus version number (e.g. 6)
VerBetareturns the Opus beta release number (or 0 for stable releases)
VerBuildreturns the current build number

Return value

Value of the specified property.

Description

Allows you to query the value of certain system properties.

Example:

if (SysInfo("MouseMonitor") == 0) { ... } // see if the mouse is on monitor 0