From WikiChip
Difference between revisions of "mirc/identifiers/$sdir"
(→Synopsis) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
<pre>$sdir(dir, title, button) | <pre>$sdir(dir, title, button) | ||
− | |||
$sdir="title" <dir> | $sdir="title" <dir> | ||
− | The quotes are optional if title doesn't contain spaces | + | ;This is the old format still supported by mIRC |
+ | ;The quotes are optional if title doesn't contain spaces | ||
</pre> | </pre> | ||
− | == | + | == Parameters == |
− | * '''dir''' - The directory you want to open | + | * '''dir''' - The directory you want to open |
* '''title''' - The optional title | * '''title''' - The optional title | ||
* '''button''' - The optional text of the 'open' button on the dialog | * '''button''' - The optional text of the 'open' button on the dialog | ||
+ | |||
+ | '''Note''': Prior version of mirc (before 7.x'ish) were using a different dialog selection which was allowing the usage of a {{mirc|wildcard}} to fill in the 'folder' field in the dialog, but mIRC is not longer using that dialog, and therefore it's now no longer possible to pass a {{mirc|wildcard}} as the 'dir' parameter here. | ||
== Properties == | == Properties == | ||
Line 19: | Line 21: | ||
== Example == | == Example == | ||
− | <source lang="mIRC">//echo -a $sdir($mircdir,"choose a | + | <source lang="mIRC">//echo -a $sdir($mircdir,"choose a folder!,Ok!)</source> |
== Compatibility == | == Compatibility == |
Latest revision as of 15:19, 20 October 2018
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$sdir displays the select folder dialog and returns the selected folder
Synopsis[edit]
$sdir(dir, title, button) $sdir="title" <dir> ;This is the old format still supported by mIRC ;The quotes are optional if title doesn't contain spaces
Parameters[edit]
- dir - The directory you want to open
- title - The optional title
- button - The optional text of the 'open' button on the dialog
Note: Prior version of mirc (before 7.x'ish) were using a different dialog selection which was allowing the usage of a wildcard to fill in the 'folder' field in the dialog, but mIRC is not longer using that dialog, and therefore it's now no longer possible to pass a wildcard as the 'dir' parameter here.
Properties[edit]
None
Example[edit]
//echo -a $sdir($mircdir,"choose a folder!,Ok!)
Compatibility[edit]
Added: mIRC v5.81
Added on: 09 Nov 2000
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.