Project

General

Profile

Actions

Scripting Sysinfo » History » Revision 1

Revision 1/4 | Next »
Per Amundsen, 02/26/2017 06:39 PM


System Information

/bw

{{include(/bw}}

/np

{{include(/np}}

Others

/sysinfo
/gfxinfo
/cpuinfo
/meminfo
/diskinfo
/audioinfo
/uptime

$appbits

Added in 1.9.2

$appbits

Returns 32 on 32 bit AdiIRC and 64 bit on 64 bit AdiIRC. (Regardless of windows bits, see $osbits for that)

Deprecated see $bits

$audio

Added in 1.8.10

$audio

Returns the name first audio card detected by AdiIRC. (may not be your default audio card)

$audio(N)

Returns the name of the Nth audio card detected by AdIIRC.

If N is 0, it will return the count of how many audio cards was detected.

Parameters

Parameter Description
N The Nth audio card.

$battery

Added in 2.3

$battery

Returns $true if running on battery, otherwise returns $false.

See also $batteryp.

$batteryp

Added in 2.3

$batteryp

If running on battery, returns percentage left, otherwise 100.

See also $battery.

$bwdown

Added in 1.5

$bwdown

Returns current download bandwidth speed in human readable format on selected network adapter.

$bwdownb

Added in 1.5

$bwdownb

Returns current download bandwidth speed in bytes on selected network adapter.

$bwname

Added in 1.5

$bwname

Return network adapter name of the network adapter to monitor bandwidth, if no network adapter is defined, returns $null.

This can be chosen in Options -> Sysinfo -> Network Adapter.

$bwrec

Added in 1.9.2

$bwrec

Returns numbers of bytes received in human readable format on selected network adapter.

$bwrecb

Added in 1.9.3

$bwrecb

Returns numbers of bytes received in byte format on selected network adapter.

$bwsent

Added in 1.9.2

$bwsent

Returns numbers of bytes sent in human readable format on selected network adapter.

$bwsentb

Added in 1.9.3

$bwsentb

Returns numbers of bytes sent in byte format on selected network adapter.

$bwspeed

Added in 1.5

$bwspeed

Returns the connection (LAN) speed on selected network adapter.

$bwup

Added in 1.5

$bwup

Returns current upload bandwidth speed in human readable format on selected network adapter.

$bwupb

Added in 1.5

$bwupb

Returns current upload bandwidth speed in bytes on selected network adapter.

$cpucache

Added in 1.5

$cpucache

Returns cpu cache in bytes for 1 core.

$cpucount

Added in 1.5

$cpucount

Returns numbers of cpu's and cores.

$cpuident

Added in 1.5

$cpuident

Returns cpu identifier.

$cpuload

Added in 1.8.10

$cpuload

Returns current CPU load in percentage.

Can take a while to return a value/freeze on first use.

Properties

.cores - Returns the combined load of all CPU cores.


Added in 3.4

$cpuload(N)

Returns the current CPU load in percentage for the Nth core.

Parameters

Parameter Description
N If N = 0 returns number of cores, otherwise the load for the Nth cpu core.

Example

//echo -ag the current load for the 3rd core is $cpuload(3)

$cpumhz

Added in 1.5

$cpumhz

Returns cpu frequency in megahertz.

$cpuname

Added in 1.5

$cpuname

Returns cpu name.

$cpuvendor

Added in 1.8.10

$cpuvendor

Returns cpu vendor identifier.

$diskfree

Added in 1.5

$diskfree

Returns total free disk space from all drives in human readable format.

$disktotal

Added in 1.5

$disktotal

Returns total disk space from all drives in human readable format.

$dotnet

Added in 1.9.2

$dotnet

Returns the .NET (dotnet) version AdiIRC is currently running on.

$gfx

Added in 1.6

$gfx

Returns the name of the first graphics card found.

Might not be the default graphics card.


$gfx(N)

Returns the name of the Nth graphics card found.

Parameters

Parameter Description
N If N = 0, number of graphics cards, otherwise the Nth graphics card.

Example

; Print number of graphics cards.
//echo -ag $gfx(0)

; Print the name of the first graphics cards.
//echo -ag $gfx(1)

$gfxram

Added in 1.6

$gfxram

Returns the amount of vram in megabytes from the first graphics card found.

Might not be the default graphics card and might not return more than 4096.


gfxram(N)

Returns the amount of vram in megabytes from the Nth graphics card found.

Parameters

Parameter Description
N If N = 0, number of graphics cards, otherwise the Nth graphics card.

Example

; Print number of graphics cards.
//echo -ag $gfxram(0)

; Print vram of the first graphics cards.
//echo -ag $gfxram(1)

$lag

Added in 1.9.0

$lag

Returns connection lag to current active IRC server in milliseconds.

$memfree

Added in 1.6

$memfree

Returns free ram in megabytes format.

$memfreep

Added in 1.6

$memfreep

Returns free ram in percentage format.

$memtotal

Added in 1.6

$memtotal

Returns total amount of installed ram in megabytes format.

$motherboard

Added in 1.9.0

$motherboard

Returns the motherboard manufacturer and version name.

$os

Added in 1.9.0

$os

Returns the version number of the operating system.

The reply can be XP, 2003, 2003R2, Vista, 2008, 7, 2008R2, 8, 2012, 8.1, 2012R2, 2016, 10 0r 11.

Properties

Property Description
.major Returns the os major version. (May returns wrong value in windows 11+)
.minor Returns the os minor version.
.build Returns the os build number.
.platform Returns the os platform.
.type Returns the os type.
.spmajor Returns the os service pack major version.
.spminor Returns the os service pack minor version.
.suite Returns the os suite.

$osbits

Added in 1.9.7

$osbits

Returns "32" on 32 bit windows, and "64" on 64 bit version of windows.

$osbuild

Added in 1.8.10

$osbuild

Returns the windows build number.

$osedition

Added in 1.8.10

$osedition

Returns the windows edition.

$osidle

Added in 1.9.7

$osidle

Returns number of seconds since last keystroke or mouse movement.

Example

/timer 1 5 echo -ag Computer has been idle for $osidle seconds

$osinstalldate

Added in 1.9.1

$osinstalldate

Returns the date windows was installed in unix timestamp format.

$osmajor

Added in 1.8.10

$osmajor

Returns the major windows version number.

https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832%28v=vs.85%29.aspx

$osminor

Added in 1.8.10

$osminor

Returns the minor windows version number.

https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832%28v=vs.85%29.aspx

$osname

Added in 1.8.10

$osname

Returns the name of the windows version. (Windows 7, Windows 8 etc)

$osservicepack

Added in 1.8.10

$osservicepack

Returns the windows service pack version.

$osversion

Added in 1.5

$osversion

Returns the version number of the operating system.

$screen

Added in 1.8.2

$screen

Returns the name of the first screen found.


$screen(N)

Returns the name of the Nth screen found.

Parameters

Parameter Description
N If N = 0, the number of screens found, otherwise the Nth screen.

Example

; Print number of screens.
//echo -ag $screen(0)

; Print the name of the first screen found.
//echo -ag $screen(1)

$screenb

Added in 1.8.2

$screenb

Returns the bit depth of the first screen found.


$screenb(N)

Returns the bit depth of the Nth screen found.

Parameters

Parameter Description
N If N = 0, the number of screens found, otherwise the Nth screen.

Example

; Print number of screens.
//echo -ag $screenb(0)

; Print the bith depth of the first screen found.
//echo -ag $screenb(1)

$screenh

Added in 1.8.2

$screenh

Returns the height of the first screen found.


$screenh(N)

Returns the height of the Nth screen found.

Parameters

Parameter Description
N If N = 0, the number of screens found, otherwise the Nth screen.

Example

; Print number of screens.
//echo -ag $screenh(0)

; Print the height of the first screen found.
//echo -ag $screenh(1)

$screenhz

Added in 2.3

$screenhz

Returns the refresh rate of the first screen found.


$screenhz(N)

Returns the refresh rate of the Nth screen found.

Parameters

Parameter Description
N If N = 0, the number of screens found, otherwise the Nth screen.

Example

; Print number of screens.
//echo -ag $screenhz(0)

; Print the refresh rate of the first screen found.
//echo -ag $screenhz(1)

$screenshot

Added in 1.9.6

$screenshot(filename, [options], [x, y, w, h], N)

Takes and saves a screenshot of the desktop or current active window to filename.

Parameters

Parameter Description
filename Filname to save to.
[options] Screenshot options. (optional)
[x, y, w, h] The position and size of a rectangle to save. (use with the 'z' parameter)
N Compression quality (0-100)

Options

Option Description
a Take screenshot of active window.
b Save as bmp image.
e Save as Emf image.
g Save as gif image.
i Save as icon image.
j Save as jpeg image.
p Save as png image.
r Select an area of the screen to save. (Use CTRL + S to save when done)
t Save as tiff image.
w Save as wmf image.
x Save as exif image.
z Select and save a rectangle [x, y, w, h] of the screen.

Example

; Takes a screenshot of current active window and saves it as a png image, then opens the image.
//run $qt($screenshot(screenshot.png, pa))

; Show a transparent form where you can draw a rectangle and save it as a png image, then opens the image.
//run $qt($screenshot(screenshot.png, pr))

$screenw

Added in 1.8.2

$screenw

Returns the width of the first screen found.


$screenw(N)

Returns the width of the Nth screen found.

Parameters

Parameter Description
N If N = 0, the number of screens found, otherwise the Nth screen.

Example

; Print number of screens.
//echo -ag $screenw(0)

; Print the width of the first screen found.
//echo -ag $screenw(1)

$uphours

Added in 1.6

$uphours

Hours since computer was last (re)started.

$upmins

Added in 1.6

$upmins

Minutes since computer was last (re)started.

$uptime

Added in 1.9.6

$uptime

Returns connection time in seconds for the associated server connection.


Added in 1.9.2

$uptime(mirc|AdiIRC|server|system[, N])

Returns uptime in milliseconds for the specified item.

Parameters

Parameter Description
mirc|AdiIRC|server|system Item to retrieve uptime for.
N Optional, if N = 1 returns same format as $duration, if N = 2 returns same format as $duration but without seconds, and if N = 3 returns seconds instead of milliseconds.

Example

; Current connection uptime.
//echo -ag Server has been connected $uptime seconds

; AdiIRC uptime.
//echo -ag AdiIRC has been connected $uptime(AdiIRC, 1)

Updated by Per Amundsen almost 8 years ago · 1 revisions

Also available in: PDF HTML TXT