Matchtarget » History » Version 10
Per Amundsen, 11/14/2015 02:11 AM
1 | 5 | Per Amundsen | {{>toc}} |
---|---|---|---|
2 | |||
3 | 1 | Per Amundsen | h1. Matchtarget |
4 | |||
5 | A <matchtarget> is a text pattern that AdiIRC will use to compare with a target window during a [[Scripting_Events|scripting event]]. |
||
6 | |||
7 | 7 | Per Amundsen | Different events have different valid window locations. |
8 | |||
9 | 6 | Per Amundsen | <notextile>= - Defines dcc chat window location.</notextile> |
10 | 3 | Per Amundsen | <notextile>@ - Defines custom window location.</notextile> |
11 | 4 | Per Amundsen | <notextile>? - Defines query location.</notextile> |
12 | <notextile># - Defines channel location.</notextile> |
||
13 | 8 | Per Amundsen | <notextile>* - Defines any window location.</notextile> |
14 | 4 | Per Amundsen | <notextile>%var - A [[Scripting_Variables|variable]] containing a window or a list of window is also acceptable.</notextile> |
15 | 9 | Per Amundsen | |
16 | *Example* |
||
17 | |||
18 | <pre> |
||
19 | 10 | Per Amundsen | ; Subscribe to the TEXT event and if #channel matches the target channel, print a text. |
20 | 9 | Per Amundsen | on *:TEXT:*:#channel:echo -ag #channel matched. |
21 | |||
22 | ; Set a target variable. |
||
23 | set %target #channel |
||
24 | |||
25 | 10 | Per Amundsen | ; Subscribe to the TEXT event and if #channel matches the target channel, print a text. |
26 | 9 | Per Amundsen | on *:TEXT:*:%target:echo -ag #channel matched. |
27 | </pre> |