Difference between revisions of "$script"
From Scriptwiki
m |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | Returns the | + | Returns the full file path of the currently executing remote script. |
$script | $script | ||
Line 6: | Line 6: | ||
[[echo]] -ag We're running from script file $script | [[echo]] -ag We're running from script file $script | ||
} | } | ||
+ | This may return something like: | ||
+ | We're running from script file C:\Users\Dana\AppData\Roaming\mIRC\scripts\remote.ini | ||
+ | |||
+ | == Example 2 - List all loaded script files == | ||
+ | //var %x = 1 | while ($script(%x)) { echo -ag [[$v1]] | inc %x } | ||
+ | |||
+ | A script that you can run from the editbox to list all your loaded remote files. | ||
== See Also == | == See Also == | ||
− | * [[$scriptline]] Returns the current script line. | + | * [[$scriptline]] - Returns the current script line. |
+ | * [[$scriptdir]] - Returns the directory the current script is saved. | ||
+ | |||
+ | [[Category:Remote Identifiers]] |
Latest revision as of 18:04, 7 February 2015
Returns the full file path of the currently executing remote script.
$script
Example
alias hello { echo -ag We're running from script file $script }
This may return something like:
We're running from script file C:\Users\Dana\AppData\Roaming\mIRC\scripts\remote.ini
Example 2 - List all loaded script files
//var %x = 1 | while ($script(%x)) { echo -ag $v1 | inc %x }
A script that you can run from the editbox to list all your loaded remote files.
See Also
- $scriptline - Returns the current script line.
- $scriptdir - Returns the directory the current script is saved.