Difference between revisions of "ObjectType:system"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 22: Line 22:
 
===Create a HUD element displaying memory information===
 
===Create a HUD element displaying memory information===
 
HUD -add Memory 1,1 MemoryUsage:${System.MemFree}/${System.MemTotal} MB
 
HUD -add Memory 1,1 MemoryUsage:${System.MemFree}/${System.MemTotal} MB
 +
 +
 +
== Operates On ==
 +
''none''
  
 
== See Also ==
 
== See Also ==

Revision as of 22:20, 15 December 2005

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.
  • filepath 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


Operates On

none

See Also