Difference between revisions of "ObjectType:system"
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
== Examples == | == Examples == | ||
+ | ===Display system type=== | ||
+ | echo ${System} | ||
+ | ;Output | ||
+ | Microsoft Windows XP | ||
+ | ===Create a HUD element displaying memory information=== | ||
+ | HUD -add Memory 1,1 MemoryUsage:${System.MemFree}/${System.MemTotal} MB | ||
== See Also == | == See Also == |
Revision as of 19:58, 26 August 2005
Contents
Description
Members
- string OS: Operating system identifier (e.g. Microsoft Windows XP)
- int MemFree: Amount of free physical system RAM, in megabytes
- int MemTotal: Total amount of physical system RAM, in megabytes
- string OSBuild: Operating system build identifier (e.g. 2600.xpsp_sp2_rtm040803-2158)
- int GetProcAddress[module,function]: Retrieves the address of an exported function, usually in a DLL. (Level of understanding: High)
- int TickCount: A timestamp given in milliseconds. This value does "wrap" every 46 days or so.
- string CurrentDirectory: Current directory according to the operating system
Methods
Returns
Same as OS
Examples
Display system type
echo ${System}
- Output
Microsoft Windows XP
Create a HUD element displaying memory information
HUD -add Memory 1,1 MemoryUsage:${System.MemFree}/${System.MemTotal} MB