Difference between revisions of "ObjectType:system"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 8: Line 8:
 
*[[DataType:int|int]] '''GetProcAddress['''module''','''function''']''': Retrieves the address of an exported function, usually in a DLL. (Level of understanding: High)
 
*[[DataType:int|int]] '''GetProcAddress['''module''','''function''']''': Retrieves the address of an exported function, usually in a DLL. (Level of understanding: High)
 
*[[DataType:int|int]] '''TickCount''': A timestamp given in milliseconds.  This value does "wrap" every 46 days or so.
 
*[[DataType:int|int]] '''TickCount''': A timestamp given in milliseconds.  This value does "wrap" every 46 days or so.
*[[DataType:string|string]] '''CurrentDirectory''': Current directory according to the operating system
+
*[[DataType:filepath|filepath]] '''CurrentDirectory''': Current directory according to the operating system
  
 
== Methods ==
 
== Methods ==

Revision as of 20:58, 15 September 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

See Also