Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetSystemInfo - method of object Pm

Description:
Obtaining the system inforation.
Syntax:
GetSystemInfo(sWhat As String, sParams As String) As Variant
Calling:
nScreenX = Pm.GetSystemInfo("screen.width", "")
Parameters:
sWhat(String) Obtained information identifier. The basic setting defining what to return.
"screen.width" - Returns the width of the display (in pixels). The sParams parameter is not used.
"screen.height" - Returns the height of the display (in pixels). The sParams parameter is not used.
"screen.clientarea.width" - Returns the width of the client area of the display (OS Windows toolbar not included) (in pixels). The sParams parameter is not used.
"screen.clientarea.height" - Returns the height of the client area of the display (OS Windows toolbar not included) (in pixels). The sParams parameter is not used.
"app.zoom" - Returns the value of magnification/minification factor of the whole application as a result of adapting to the resolution of the display compared to the original application. See the configurator "Application appearance zoom". The sParams parameter is not used.
"screensaver.active" - Returns the attribute indicating whether or not is the screensaver active (not the dispay sleep mode). The sParams parameter is not used.
"memory.free" - Returns the value of free system memory in kB (with 4 kB accuracy). It is often handy to monitor this value when tuning the application. The sParams parameter is not used.
"memory.usage" - Returns the size of used system memory in kB (with 4 kB accuracy). The computer memory usage can also be detected in the INFO system in the /System/Memory item. See also Watching running PROMOTIC application. It is often handy to monitor this value when tuning the application. The sParams parameter is not used.
"cpu.usage" - Returns the value of average CPU load in percentage. The value represents the average load of all CPU cores since the last calling of this method. It is often handy to monitor this value when tuning the application. The sParams parameter is not used.
"win.username" - Returns the name of currently logged-in OS Windows user. The sParams parameter is not used.
sParams(String) Additional parameters for each operation. The meaning is different for each operation. If the operation uses the parameter, it is pinpointed by the operation.
Note:
The method can also be called in the graphic item events for Web Panels. Only the information of the "screen" type are available for the web (the "memory" and "cpu" info is not available). The method returns the information (display parameters) on the PC where the client (Web browser) is running.
Example:
Obtaining the display resolution:
Dim nScreenX, nScreenY
nScreenX = Pm.GetSystemInfo("screen.width", "")
nScreenY = Pm.GetSystemInfo("screen.height", "")
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- GetSystemInfo
 
 
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice