$editbox » History » Version 8
Per Amundsen, 08/18/2020 09:16 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$editbox(window,[N])* |
||
4 | |||
5 | 6 | Per Amundsen | Returns the text in the [[Editbox Control|Editbox]] of the specified window. |
6 | 1 | Per Amundsen | |
7 | 8 | Per Amundsen | _See also [[$editboxhistory]], [[/editbox]]._ |
8 | |||
9 | 1 | Per Amundsen | *Parameters* |
10 | |||
11 | 6 | Per Amundsen | window - The window associated with the [[Editbox Control|Editbox]] to use. |
12 | 7 | Per Amundsen | [N] - *TODO* (optional) |
13 | 1 | Per Amundsen | |
14 | *Properties* |
||
15 | |||
16 | .selstart - Returns the position of the first selected character. |
||
17 | .selend - - Returns the position of the last selected character. |
||
18 | 7 | Per Amundsen | .color - Gets the current [[Editbox Control|Editbox]] text color in [[$rgb]] format. *(AdiIRC only)* |
19 | .backcolor - Gets the current [[Editbox Control|Editbox]] background color in [[$rgb]] format. *(AdiIRC only)* |
||
20 | .rgbcolor - Gets the current [[Editbox Control|Editbox]] text color in rrr,ggg,bbb format. *(AdiIRC only)* |
||
21 | .rgbbackcolor - Gets the current [[Editbox Control|Editbox]] background color in rrr,ggg,bbb format. *(AdiIRC only)* |
||
22 | .spellcheckword - Gets the current word at the cursor position formatted for spellchecking. *(AdiIRC only)* |
||
23 | .currline - Returns the line where the cursor is in a multiline [[Editbox Control|Editbox]]. *(AdiIRC only)* |
||
24 | .lines - Returns the number of lines in a multiline [[Editbox Control|Editbox]]. *(AdiIRC only)* |
||
25 | 1 | Per Amundsen | |
26 | *Example* |
||
27 | |||
28 | <pre> |
||
29 | ; Open a custom window. |
||
30 | /window -e @Example |
||
31 | |||
32 | ; Add 'Hello World' to the Editbox. |
||
33 | /editbox @Example Hello World |
||
34 | |||
35 | ; Print the content of the Editbox. |
||
36 | //echo -ag Text is $editbox(@Example) selstart is $editbox(@Example).selstart selend is $editbox(@Example).selend |
||
37 | </pre> |