From WikiChip
Editing mirc/custom windows
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 142: | Line 142: | ||
You can retrieve a line of text from a custom window using the $line identifier: | You can retrieve a line of text from a custom window using the $line identifier: | ||
− | <syntaxhighlight lang="mirc">$line(@windowName, N, | + | <syntaxhighlight lang="mirc">$line(@windowName, N, M)</syntaxhighlight> |
− | $lines returns the Nth line of text from a window. If N = 0, $lines returns the total number of lines in the window. If | + | $lines returns the Nth line of text from a window. If N = 0, $lines returns the total number of lines in the window. If M = 1, the side-listbox will be used instead of the chatbox (default is 0). |
You can also search the window for a line wild-matching a specific sequence. | You can also search the window for a line wild-matching a specific sequence. | ||
− | <syntaxhighlight lang="mirc">$fline(@windowName, wildtext, N, | + | <syntaxhighlight lang="mirc">$fline(@windowName, wildtext, N, M)</syntaxhighlight> |
− | This will return the Nth line wild-matching a specific wildtext sequence. If | + | This will return the Nth line wild-matching a specific wildtext sequence. If M = 1, the side-listbox will be used instead of the chatbox (default is 0). |
If a listbox is used, you can use the $sline identifier to retrieve the Nth selected text. | If a listbox is used, you can use the $sline identifier to retrieve the Nth selected text. |