From WikiChip
$editbox Identifier - mIRC
< mirc‎ | identifiers

The $editbox identifier is used to get the contents of editboxes in any mIRC window that contains an editbox.


Synopsis[edit]

$editbox(window[,N])[.property]

Parameters[edit]

window The target window to get the editbox contents from
N Retrieves the data from the second editbox in a window (Note: Can only be the value of 1)

Properties[edit]

selstart Returns the character location in the string of the start of a highlight selection
selend Returns the character location where the highlighted text ends

Example[edit]

Echo the contents of the status window:

//echo -a $editbox(Status Window)

Echo the start and end locations of selected text in the status window editbox:

//echo -a Selection start: $editbox(Status Window).selstart --- Selection end: $editbox(Status Window).selend

Note: If no highlighted selection exists, both selstart and selend will return the location of the cursor in the text.

Compatibility[edit]

Added: mIRC v6.2
Added on: 28 Jul 2006
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]

[Expand]
v · d · e mIRC identifier list