os (property store)
The os
property store contains information about the operating system and the current environment.
The following properties are recognised:
-
ActiveWindow
-
clipboard
-
ComputerName
-
CPUCount
-
CursorPos
-
DesktopWindow
-
focus
-
fonts
-
ForegroundWindow
-
LastError
-
MemoryStatus
-
MonitorCount
-
UserName
-
WindowsVersion
In addition, the following substores are recognised:
-
colors
-
metrics
-
keys
-
monitor
-
registry
-
environment
The colors
substore contains system colours:
property("os.colors.ACTIVECAPTION")
rgba(0.600, 0.706, 0.820, 1.000) (#99B4D1)
property("os.colors.BTNFACE")
rgba(0.941, 0.941, 0.941, 1.000) (#F0F0F0)
The metrics
substore contains system metrics:
property("os.metrics.SM_CMONITORS")
4
property("os.metrics.SM_SWAPBUTTON")
0
The keys
substore contains current information about the keyboard state:
property("os.keys.VK_CONTROL")
−128
property("os.keys.VK_CONTROL")
0
The monitor
substore contains per-monitor information:
property("os.monitor.0")
left: 2560 top: −293 width: 1080 height: 1920 primary: false workspace.left: 2560 workspace.top: −293 workspace.right: 3640 workspace.bottom: 1627
Valid monitor indices are 0..property("os.MonitorCount")−1
.
The registry
substore gives read-only access to the system registry:
property("os.registry.HKEY_CURRENT_USER\Software\Rejbrand\Algosim\UxColor")
11959372
The environment
substore gives read-only access to environment variables:
property("os.environment.windir")
C:\Windows