$editbox » History » Revision 9
Revision 8 (Per Amundsen, 08/18/2020 09:16 PM) → Revision 9/11 (Per Amundsen, 06/19/2021 10:41 PM)
_Added in 1.9.0_ *$editbox(window|editor,[N])* *$editbox(window,[N])* Returns the text in the [[Editbox Control|Editbox]] of the specified window or the text in the current active Editor. window. _See also [[$editboxhistory]], [[/editbox]]._ *Parameters* window|editor window - The window associated with the [[Editbox Control|Editbox]] to use or the current active Editor. use. [N] - *TODO* (optional) *Properties* .selstart - Returns the position of the first selected character. .selend - - Returns the position of the last selected character. .color - Gets the current [[Editbox Control|Editbox]] text color in [[$rgb]] format. *(AdiIRC only)* .backcolor - Gets the current [[Editbox Control|Editbox]] background color in [[$rgb]] format. *(AdiIRC only)* .rgbcolor - Gets the current [[Editbox Control|Editbox]] text color in rrr,ggg,bbb format. *(AdiIRC only)* .rgbbackcolor - Gets the current [[Editbox Control|Editbox]] background color in rrr,ggg,bbb format. *(AdiIRC only)* .spellcheckword - Gets the current word at the cursor position formatted for spellchecking. *(AdiIRC only)* .currline - Returns the line where the cursor is in a multiline [[Editbox Control|Editbox]]. *(AdiIRC only)* .lines - Returns the number of lines in a multiline [[Editbox Control|Editbox]]. *(AdiIRC only)* *Example* <pre> ; Open a custom window. /window -e @Example ; Add 'Hello World' to the Editbox. /editbox @Example Hello World ; Print the content of the Editbox. //echo -ag Text is $editbox(@Example) selstart is $editbox(@Example).selstart selend is $editbox(@Example).selend </pre>