Project

General

Profile

Scripts

/load

Added in 1.9.0

/load -a <filename>
/load -bcmnpqs <filename>
/load -rsuv <filename>

The /load command can be used to load any type of existing file including: aliases, popups, remote, users, and variables. Using /load on an already loaded file will update its contents while maintaining its order among other files.
Note that unlike the /reload command, /load will trigger the on LOAD and on START events.

See also /reload, /unload, on LOAD, on UNLOAD, on START.

Switches

-a - loads an aliases file.
-b - Loads a nicklist buttons file. (AdiIRC only)
-ps - TODO
-pc - TODO
-pq - TODO
-pn - TODO
-pm - TODO
-ru - Loads a user list file.
-rv - Loads a variables file.
-rsN - Loads a remote scripts file, if N is specified, load into the Nth position in the script list.

Parameters

<filename> - Filename to load.

/reload

Added in 1.9.0

/reload -a <filename>
/reload -bcmnpqs <filename>
/reload -rsuv <filename>

The /reload command can be used to reload any type of existing file including: aliases, popups, remote, users, and variables. Using /reload on an already loaded file will update its contents while maintaining its order among other files. Note that unlike the /load command, /reload will not trigger the on LOAD and on START events.

See also /load, /unload, on LOAD, on UNLOAD, on START.

Switches

-a - loads an aliases file.
-b - Loads a nicklist buttons file. (AdiIRC only)
-ps - TODO
-pc - TODO
-pq - TODO
-pn - TODO
-pm - TODO
-ru - Loads a user list file.
-rv - Loads a variables file.
-rsN -Loads a remote scripts file, if N is specified, load into the Nth position in the script list.

Parameters

<filename> - Filename to (re)load.

/unload

Added in 1.9.0

/unload <-anrs> <filename>

Unloads the specified alias or remote script file.

See also /load, /reload, on LOAD, on UNLOAD, on START.

Switches

-a - Unload a alias file.
-n - Prevents the script from having the on UNLOAD event triggered.
-rs - Unload a remote script.

Parameters

<filename> - File to unload.

/alias

Added in 1.9.0

/alias [-l] [filename] <aliasname> <command>

Add/remove/replace any single or multi line (AdiIRC only) alias.

Switches

-l - Adds a local alias only available from current script.

Parameters

[filename] - An optional alias filename to update, if no filename is specified it will use the first match or the first loaded alias file.
<aliasname> - Name of the alias to add/remove/replace.
<command> - The command(s) to be executed by the aliasname.

Example

; This will replace the first matching alias with the new command.
/alias /hello /me says hello

; To remove an existing alias:
/alias /hello

; If you want to add/remove/replace a alias in an existing file
/alias hello.txt /alias /me says hello

$script

Added in 1.9.0

$script

Returns the filename for the current running script.


$script(N|filename)

Returns the filename for the Nth loaded script file. If you specify a filename, it returns $null if the file is not loaded.

Parameters

N|filename - The filename to check, if N = 0 number of filenames, otherwise the Nth filename.

Properties

.ignore - Returns $true if the loaded script is ignored in the Script Editor, otherwise $false. (AdiIRC only)

Example

; Print number of filename.
//echo -ag $script(0)

; Print the first filename.
//echo -ag $script(1)

; Check if 'example.ini' is loaded.
//echo -ag $script(example.ini)

$scriptdir

Added in 1.9.0

$scriptdir

Returns the directory of the currently executing script.

Can be used inside text.

Example

; Print the script directory.
//echo -ag current scriptdir is $scriptdir

; Print the script directory inside text.
//echo -ag $scriptdir\somefile.ini

$scriptline

Added in 1.9.0

$scriptline

Returns line number in current script.

Example

; Create a alias
alias Example {
  echo -ag Line number for this line is $scriptline
}

; Call the alias
/example

$alias

Added in 1.9.4

$alias(N/filename)

Returns the filename for the Nth loaded alias file or if you specify a filename, it returns $null if the file is not loaded.

Parameters

N/filename - Nth alias or alias filename.

Example

; Print number of alias files.
//echo -ag $alias(0)

; Print first alias file.
//echo -ag $alias(1)

; Check if aliases.ini is loaded.
//echo -ag aliases.ini is $iif($alias(aliases.ini),loaded, not loaded)

Also available in: PDF HTML TXT