$hotlink » History » Version 1
Per Amundsen, 12/14/2015 05:41 PM
| 1 | 1 | Per Amundsen | _Added in 1.9.7_ |
|---|---|---|---|
| 2 | |||
| 3 | *$hotlink(type)* |
||
| 4 | |||
| 5 | Returns information about a match in a [[on HOTLINK]] event. |
||
| 6 | |||
| 7 | _See also [[$hotline]], [[$hotlinepos]]._ |
||
| 8 | |||
| 9 | *Parameters* |
||
| 10 | |||
| 11 | event - Returns sclick or rclick depending on which mouse button was pressed. |
||
| 12 | line - Returns the full line matched. |
||
| 13 | word - Returns the word matched. |
||
| 14 | char - Returns the character matched. |
||
| 15 | match - Returns the matched text. |
||
| 16 | |||
| 17 | |||
| 18 | *Properties* |
||
| 19 | |||
| 20 | .pos - Returns the line/word/char/match position in the matched line. |
||
| 21 | |||
| 22 | *Example* |
||
| 23 | |||
| 24 | <pre> |
||
| 25 | on *:HOTLINK:*:*:echo -ag Matched line $hotlink(line) at $hotlink(line).pos, word $hotlink(word) at pos $hotlink(word).pos, char $hotlink(char) at $hotlink(char).pos |
||
| 26 | </pre> |