Scripting Commands » History » Version 205
Per Amundsen, 04/10/2022 01:04 PM
1 | 162 | Mr. BS | {{css |
---|---|---|---|
2 | body { |
||
3 | counter-reset: count; |
||
4 | } |
||
5 | .tcount { |
||
6 | counter-reset: adi; |
||
7 | } |
||
8 | .tcount a { |
||
9 | counter-increment: count; |
||
10 | } |
||
11 | .tcount strong { |
||
12 | counter-increment: adi; |
||
13 | } |
||
14 | .acounter::before { |
||
15 | content: "Total: " counter(count) " commands, " counter(adi) " are AdiIRC exclusive. "; |
||
16 | } |
||
17 | }} |
||
18 | |||
19 | 73 | Per Amundsen | {{>toc}} |
20 | 1 | Per Amundsen | |
21 | h1. Scripting Commands |
||
22 | 2 | Per Amundsen | |
23 | Parameters in [x] means they are optional. |
||
24 | Parameters in <x> means they are required. |
||
25 | Parameters with a x|y means either x or y can be used. |
||
26 | 3 | Per Amundsen | |
27 | Click on a command to read more about it. |
||
28 | 154 | Per Amundsen | |
29 | 27 | Per Amundsen | _Commands in bold is AdiIRC only._ |
30 | 1 | Per Amundsen | |
31 | 162 | Mr. BS | table(tcount). |
32 | |[[/abook]] |
||
33 | 123 | Per Amundsen | *[[/aclear]]* |
34 | 1 | Per Amundsen | [[/action]] |
35 | 27 | Per Amundsen | *[[/advertise]]* |
36 | 1 | Per Amundsen | [[/ajinvite]] |
37 | [[/alias]] |
||
38 | [[/aline]] |
||
39 | 203 | Per Amundsen | *[[/amark]]* |
40 | 1 | Per Amundsen | [[/ame]] |
41 | [[/amsg]] |
||
42 | 84 | Per Amundsen | *[[/allnick]]* |
43 | 1 | Per Amundsen | [[/anick]] |
44 | 172 | Per Amundsen | [[/aop]] |
45 | 74 | Per Amundsen | [[/auser]] |
46 | 136 | Per Amundsen | *[[/autoconnect]]* |
47 | 53 | Per Amundsen | [[/autojoin]] |
48 | 172 | Per Amundsen | [[/avoice]] |
49 | 27 | Per Amundsen | *[[/aquit]]* |
50 | 1 | Per Amundsen | [[/away]] |
51 | 27 | Per Amundsen | *[[/back]]* |
52 | 1 | Per Amundsen | [[/background]] |
53 | [[/ban]] |
||
54 | 27 | Per Amundsen | *[[/banlist]]* |
55 | 1 | Per Amundsen | [[/bcopy]] |
56 | [[/beep]] |
||
57 | 27 | Per Amundsen | *[[/betaup]]* |
58 | *[[/bin2txt]]* |
||
59 | 1 | Per Amundsen | [[/bindip]] |
60 | [[/bread]] |
||
61 | [[/break]] |
||
62 | [[/breplace]] |
||
63 | [[/bset]] |
||
64 | [[/btrunc]] |
||
65 | [[/bunset]] |
||
66 | 27 | Per Amundsen | *[[/bw]]* |
67 | 1 | Per Amundsen | [[/bwrite]] |
68 | [[/channel]] |
||
69 | 147 | Per Amundsen | *[[/channels]]* |
70 | 27 | Per Amundsen | *[[/charset]]* |
71 | 1 | Per Amundsen | [[/clear]] |
72 | [[/clearall]] |
||
73 | [[/cline]] |
||
74 | [[/clipboard]] |
||
75 | 141 | Per Amundsen | [[/close]] |
76 | 204 | Per Amundsen | [[/closemsg]] |
77 | 205 | Per Amundsen | | [[/cnick]] |
78 | [[/color]] |
||
79 | 1 | Per Amundsen | [[/colour]] |
80 | 172 | Per Amundsen | [[/comclose]] |
81 | 145 | Per Amundsen | [[/comlist]] |
82 | 123 | Per Amundsen | [[/comopen]] |
83 | 84 | Per Amundsen | [[/comreg]] |
84 | 74 | Per Amundsen | *[[/config]]* |
85 | 32 | Per Amundsen | [[/continue]] |
86 | 66 | Per Amundsen | [[/copy]] |
87 | 188 | Per Amundsen | [[/creq]] |
88 | 1 | Per Amundsen | [[/ctcp]] |
89 | [[/ctcps]] |
||
90 | 57 | Per Amundsen | [[/ctcpreply]] |
91 | 158 | Per Amundsen | *[[/cycleall]]* |
92 | 54 | Per Amundsen | [[/dcc]] |
93 | 52 | Per Amundsen | [[/dde]] |
94 | 41 | Per Amundsen | [[/ddeserver]] |
95 | [[/debug]] |
||
96 | 32 | Per Amundsen | [[/dec]] |
97 | 27 | Per Amundsen | *[[/dehalfop]]* |
98 | *[[/deop]]* |
||
99 | 1 | Per Amundsen | [[/describe]] |
100 | 27 | Per Amundsen | *[[/desop]]* |
101 | *[[/devoice]]* |
||
102 | 1 | Per Amundsen | [[/dialog]] |
103 | [[/did]] |
||
104 | [[/didtok]] |
||
105 | [[/disable]] |
||
106 | [[/disconnect]] |
||
107 | 94 | Per Amundsen | [[/dlevel]] |
108 | 1 | Per Amundsen | [[/dline]] |
109 | [[/dll]] |
||
110 | [[/dns]] |
||
111 | 205 | Per Amundsen | *[[/dock]]* |
112 | 27 | Per Amundsen | *[[/dockpanels]]* |
113 | 128 | Per Amundsen | *[[/download]]* |
114 | 1 | Per Amundsen | [[/drawcopy]] |
115 | [[/drawdot]] |
||
116 | [[/drawfill]] |
||
117 | [[/drawline]] |
||
118 | [[/drawpic]] |
||
119 | [[/drawrect]] |
||
120 | [[/drawreplace]] |
||
121 | [[/drawrot]] |
||
122 | 205 | Per Amundsen | | [[/drawsave]] |
123 | [[/drawscroll]] |
||
124 | 204 | Per Amundsen | [[/drawsize]] |
125 | 188 | Per Amundsen | [[/drawtext]] |
126 | 136 | Per Amundsen | [[/ebeeps]] |
127 | 172 | Per Amundsen | [[/echo]] |
128 | 145 | Per Amundsen | *[[/echomonitor]]* |
129 | 123 | Per Amundsen | *[[/echox]]* |
130 | 97 | Per Amundsen | *[[/edit]]* |
131 | 94 | Per Amundsen | [[/editbox]] |
132 | 84 | Per Amundsen | [[/else]] |
133 | 74 | Per Amundsen | [[/elseif]] |
134 | 88 | Per Amundsen | [[/emailaddr]] |
135 | 66 | Per Amundsen | [[/enable]] |
136 | 1 | Per Amundsen | *[[/encoding]]* |
137 | [[/events]] |
||
138 | [[/exit]] |
||
139 | 60 | Per Amundsen | *[[/fakeraw]]* |
140 | 57 | Per Amundsen | [[/fclose]] |
141 | 144 | Per Amundsen | *[[/fget]]* |
142 | 54 | Per Amundsen | [[/filter]] |
143 | 52 | Per Amundsen | [[/findtext]] |
144 | 160 | Per Amundsen | [[/firewall]] |
145 | 50 | Per Amundsen | [[/flash]] |
146 | 1 | Per Amundsen | [[/flist]] |
147 | [[/flushini]] |
||
148 | 67 | Per Amundsen | [[/font]] |
149 | 124 | Per Amundsen | [[/fopen]] |
150 | 39 | Per Amundsen | [[/fseek]] |
151 | 144 | Per Amundsen | [[/fsend]] |
152 | 85 | Per Amundsen | [[/fullname]] |
153 | 45 | Per Amundsen | *[[/fullscreen]]* |
154 | 174 | Per Amundsen | [[/fupdate]] |
155 | 36 | Per Amundsen | [[/fwrite]] |
156 | 33 | Per Amundsen | *[[/gcmem]]* |
157 | 167 | Per Amundsen | *[[/globalkeys]]* |
158 | 32 | Per Amundsen | *[[/google]]* |
159 | 23 | Per Amundsen | [[/goto]] |
160 | 143 | Per Amundsen | [[/groups]] |
161 | 77 | Per Amundsen | [[/guser]] |
162 | 1 | Per Amundsen | [[/hadd]] |
163 | 27 | Per Amundsen | *[[/halfop]]* |
164 | 1 | Per Amundsen | [[/halt]] |
165 | [[/haltdef]] |
||
166 | [[/hdec]] |
||
167 | 205 | Per Amundsen | | [[/hdel]] |
168 | [[/help]] |
||
169 | 204 | Per Amundsen | [[/hfree]] |
170 | 188 | Per Amundsen | *[[/highlight]]* |
171 | 174 | Per Amundsen | [[/hinc]] |
172 | 1 | Per Amundsen | [[/hload]] |
173 | 172 | Per Amundsen | [[/hmake]] |
174 | 167 | Per Amundsen | [[/hop]] |
175 | 160 | Per Amundsen | [[/hotlink]] |
176 | 196 | Per Amundsen | *[[/hrename]]* |
177 | 157 | Per Amundsen | [[/hsave]] |
178 | 183 | Per Amundsen | [[/ial]] |
179 | 184 | Per Amundsen | [[/ialfill]] |
180 | 145 | Per Amundsen | [[/ialmark]] |
181 | 1 | Per Amundsen | [[/identd]] |
182 | 128 | Per Amundsen | *[[/icon]]* |
183 | 140 | Per Amundsen | [[/if]] |
184 | 124 | Per Amundsen | [[/ignore]] |
185 | 123 | Per Amundsen | [[/iline]] |
186 | 122 | Per Amundsen | [[/inc]] |
187 | 141 | Per Amundsen | *[[/inick]]* |
188 | 175 | Per Amundsen | *[[/inlineimage]]* |
189 | 96 | Per Amundsen | [[/invite]] |
190 | 94 | Per Amundsen | [[/iuser]] |
191 | 89 | Per Amundsen | [[/join]] |
192 | 168 | Per Amundsen | *[[/kblayout]]* |
193 | 88 | Per Amundsen | [[/kick]] |
194 | 85 | Per Amundsen | [[/kill]] |
195 | 84 | Per Amundsen | *[[/lag]]* |
196 | 126 | Per Amundsen | [[/leave]] |
197 | 149 | Per Amundsen | *[[/linemarker]]* |
198 | 78 | Per Amundsen | [[/linesep]] |
199 | 77 | Per Amundsen | [[/list]] |
200 | 74 | Per Amundsen | [[/load]] |
201 | 67 | Per Amundsen | [[/loadbuf]] |
202 | 66 | Per Amundsen | *[[/lock]]* |
203 | 130 | Per Amundsen | [[/log]] |
204 | 1 | Per Amundsen | *[[/logs]]* |
205 | [[/logview]] |
||
206 | [[/markall]] |
||
207 | 69 | Per Amundsen | [[/mdi]] |
208 | 1 | Per Amundsen | [[/me]] |
209 | [[/menubar]] |
||
210 | [[/mkdir]] |
||
211 | [[/mnick]] |
||
212 | 205 | Per Amundsen | | [[/mode]] |
213 | [[/msg]] |
||
214 | 204 | Per Amundsen | *[[/msgbox]]* |
215 | 189 | Per Amundsen | *[[/mute]]* |
216 | 188 | Per Amundsen | *[[/nextunread]]* |
217 | 184 | Per Amundsen | [[/nick]] |
218 | 183 | Per Amundsen | *[[/nickcolumn]]* |
219 | 182 | Per Amundsen | *[[/nicklist]]* |
220 | 174 | Per Amundsen | *[[/nmsg]]* |
221 | 171 | Per Amundsen | [[/noop]] |
222 | 172 | Per Amundsen | [[/notice]] |
223 | 168 | Per Amundsen | [[/notify]] |
224 | 167 | Per Amundsen | *[[/np]]* |
225 | 160 | Per Amundsen | *[[/oline]]* |
226 | 149 | Per Amundsen | [[/omsg]] |
227 | 145 | Per Amundsen | [[/onotice]] |
228 | 132 | Per Amundsen | [[/op]] |
229 | 130 | Per Amundsen | *[[/options]]* |
230 | 128 | Per Amundsen | [[/parseline]] |
231 | 126 | Per Amundsen | [[/part]] |
232 | 125 | Per Amundsen | [[/partall]] |
233 | 123 | Per Amundsen | *[[/paths]]* |
234 | 169 | Per Amundsen | *[[/pause]]* |
235 | 122 | Per Amundsen | [[/perform]] |
236 | 121 | Per Amundsen | *[[/pgoogle]]* |
237 | 118 | Per Amundsen | *[[/plugins]]* |
238 | 176 | Per Amundsen | [[/play]] |
239 | 191 | Per Amundsen | [[/playctrl]] |
240 | 99 | Per Amundsen | *[[/priv]]* |
241 | 193 | Per Amundsen | [[/protect]] |
242 | 137 | Per Amundsen | [[/proxy]] |
243 | 96 | Per Amundsen | [[/query]] |
244 | 95 | Per Amundsen | [[/queryrn]] |
245 | 94 | Per Amundsen | *[[/quickconnect]]* |
246 | 89 | Per Amundsen | *[[/quicksave]]* |
247 | 88 | Per Amundsen | [[/quit]] |
248 | 1 | Per Amundsen | [[/quote]] |
249 | 85 | Per Amundsen | [[/raw]] |
250 | 84 | Per Amundsen | *[[/rawx]]* |
251 | 1 | Per Amundsen | *[[/rawlog]]* |
252 | 85 | Per Amundsen | *[[/realname]]* |
253 | 77 | Per Amundsen | *[[/reconnect]]* |
254 | 173 | Per Amundsen | *[[/refreshsong]]* |
255 | 1 | Per Amundsen | *[[/rejoin]]* |
256 | [[/reload]] |
||
257 | 205 | Per Amundsen | |^. [[/remini]] |
258 | [[/remote]] |
||
259 | 204 | Per Amundsen | [[/remove]] |
260 | 193 | Per Amundsen | [[/rename]] |
261 | 191 | Per Amundsen | [[/renwin]] |
262 | 189 | Per Amundsen | [[/reseterror]] |
263 | 188 | Per Amundsen | [[/resetidle]] |
264 | 184 | Per Amundsen | *[[/resolve]]* |
265 | 183 | Per Amundsen | *[[/restart]]* |
266 | 176 | Per Amundsen | [[/return]] |
267 | 175 | Per Amundsen | [[/returnex]] |
268 | 174 | Per Amundsen | [[/rlevel]] |
269 | 173 | Per Amundsen | [[/rline]] |
270 | 171 | Per Amundsen | [[/rmdir]] |
271 | 172 | Per Amundsen | [[/run]] |
272 | 169 | Per Amundsen | [[/ruser]] |
273 | 168 | Per Amundsen | [[/say]] |
274 | 167 | Per Amundsen | [[/savebuf]] |
275 | 160 | Per Amundsen | [[/saveini]] |
276 | 149 | Per Amundsen | [[/scid]] |
277 | 145 | Per Amundsen | [[/scon]] |
278 | 132 | Per Amundsen | *[[/scripts]]* |
279 | 164 | Per Amundsen | *[[/scrolltext]]* |
280 | 130 | Per Amundsen | *[[/search]]* |
281 | 179 | Per Amundsen | *[[/sendkeys]]* |
282 | 128 | Per Amundsen | [[/server]] |
283 | 126 | Per Amundsen | *[[/serverlist]]* |
284 | 124 | Per Amundsen | [[/set]] |
285 | 123 | Per Amundsen | *[[/setconfig]]* |
286 | 122 | Per Amundsen | [[/setlayer]] |
287 | 123 | Per Amundsen | *[[/setoption]]* |
288 | *[[/showadiirc]]* |
||
289 | 148 | Per Amundsen | *[[/showmenu]]* |
290 | 98 | Per Amundsen | [[/showmirc]] |
291 | 1 | Per Amundsen | [[/signal]] |
292 | 95 | Per Amundsen | *[[/slap]]* |
293 | 94 | Per Amundsen | *[[/sleep]]* |
294 | 1 | Per Amundsen | [[/sline]] |
295 | 88 | Per Amundsen | [[/sockaccept]] |
296 | 1 | Per Amundsen | [[/sockclose]] |
297 | [[/socklist]] |
||
298 | [[/socklisten]] |
||
299 | [[/sockmark]] |
||
300 | 84 | Per Amundsen | [[/sockopen]] |
301 | 1 | Per Amundsen | [[/sockpause]] |
302 | 205 | Per Amundsen | |^. [[/sockread]] |
303 | [[/sockrename]] |
||
304 | 204 | Per Amundsen | [[/sockudp]] |
305 | 193 | Per Amundsen | [[/sockwrite]] |
306 | 191 | Per Amundsen | *[[/sop]]* |
307 | 189 | Per Amundsen | [[/splay]] |
308 | 188 | Per Amundsen | [[/sreq]] |
309 | *[[/statusbar]]* |
||
310 | 184 | Per Amundsen | [[/switchbar]] |
311 | 183 | Per Amundsen | *[[/tab]]* |
312 | 179 | Per Amundsen | *[[/themes]]* |
313 | 202 | Per Amundsen | *[[/time]]* |
314 | 175 | Per Amundsen | [[/timestamp]] |
315 | 174 | Per Amundsen | [[/timer]] |
316 | 173 | Per Amundsen | [[/tip]] |
317 | 171 | Per Amundsen | [[/tips]] |
318 | 172 | Per Amundsen | [[/titlebar]] |
319 | 169 | Per Amundsen | [[/tokenize]] |
320 | 168 | Per Amundsen | [[/toolbar]] |
321 | 167 | Per Amundsen | [[/topic]] |
322 | 164 | Per Amundsen | *[[/topicbox]]* |
323 | 160 | Per Amundsen | [[/treebar]] |
324 | 149 | Per Amundsen | [[/ulist]] |
325 | 148 | Per Amundsen | *[[/usernick]]* |
326 | 145 | Per Amundsen | *[[/txt2bin]]* |
327 | 128 | Per Amundsen | *[[/unban]]* |
328 | 127 | Per Amundsen | *[[/unignore]]* |
329 | 126 | Per Amundsen | [[/unload]] |
330 | 124 | Per Amundsen | *[[/unnotify]]* |
331 | 123 | Per Amundsen | [[/unset]] |
332 | 122 | Per Amundsen | [[/unsetall]] |
333 | *[[/update]]* |
||
334 | 1 | Per Amundsen | [[/updatenl]] |
335 | 129 | Per Amundsen | [[/url]] |
336 | 118 | Per Amundsen | [[/uwho]] |
337 | 1 | Per Amundsen | [[/var]] |
338 | 96 | Per Amundsen | *[[/vars]]* |
339 | 95 | Per Amundsen | *[[/viewlog]]* |
340 | 199 | Per Amundsen | [[/vmsg]] |
341 | [[/vnotice]] |
||
342 | 91 | Per Amundsen | *[[/voice]]* |
343 | 1 | Per Amundsen | [[/vol]] |
344 | *[[/wdown]]* |
||
345 | 89 | Per Amundsen | [[/while]] |
346 | 1 | Per Amundsen | [[/window]] |
347 | 205 | Per Amundsen | |^. *[[/wjump]]* |
348 | *[[/wnext]]* |
||
349 | 204 | Per Amundsen | *[[/wpause]]* |
350 | 198 | Per Amundsen | *[[/wplay]]* |
351 | 200 | Per Amundsen | *[[/wprev]]* |
352 | 193 | Per Amundsen | [[/write]] |
353 | 191 | Per Amundsen | [[/writeini]] |
354 | 189 | Per Amundsen | *[[/wsearch]]* |
355 | 79 | Per Amundsen | *[[/wseekf]]* |
356 | 188 | Per Amundsen | *[[/wseekr]]* |
357 | 184 | Per Amundsen | *[[/wselect]]* |
358 | 183 | Per Amundsen | *[[/wstop]]* |
359 | 180 | Per Amundsen | *[[/wup]]* |
360 | 176 | Per Amundsen | *[[/zip]]* |
361 | 162 | Mr. BS | | |
362 | |||
363 | %(acounter) % |
||
364 | 1 | Per Amundsen | |
365 | 150 | Per Amundsen | h2. System information Commands |
366 | 16 | Per Amundsen | |
367 | 1 | Per Amundsen | Output from these are set in [[Options_Dialog|Options]] -> [[Sysinfo Options|Sysinfo]] and are merely convenient aliases. |
368 | 31 | Per Amundsen | |
369 | 1 | Per Amundsen | /sysinfo |
370 | /gfxinfo |
||
371 | /cpuinfo |
||
372 | /meminfo |
||
373 | /diskinfo |
||
374 | /audioinfo |
||
375 | 150 | Per Amundsen | /uptime |
376 | 1 | Per Amundsen | /bw |
377 | 138 | Per Amundsen | |
378 | 1 | Per Amundsen | h2. Missing Commands |
379 | |||
380 | /dccserver |
||
381 | 197 | Per Amundsen | /donotdisturb |
382 | 1 | Per Amundsen | /dqwindow |
383 | 185 | Per Amundsen | /finger |
384 | 1 | Per Amundsen | /flood |
385 | /flush |
||
386 | /fserve |
||
387 | /ghide |
||
388 | /gload |
||
389 | 185 | Per Amundsen | /gmove |
390 | 1 | Per Amundsen | /gopts |
391 | /gplay |
||
392 | /gpoint |
||
393 | /gqreq |
||
394 | /gshow |
||
395 | /gsize |
||
396 | 119 | Per Amundsen | /gstop |
397 | 1 | Per Amundsen | /gtalk |
398 | /gunload |
||
399 | 30 | Per Amundsen | /ialclear |
400 | 1 | Per Amundsen | /links |
401 | /localinfo |
||
402 | /pdcc |
||
403 | /pop |
||
404 | /pvoice |
||
405 | /qme |
||
406 | 185 | Per Amundsen | /qmsg |
407 | 1 | Per Amundsen | /registration |
408 | /save |
||
409 | /sound |
||
410 | /speak |
||
411 | /strip |
||
412 | /tnick |
||
413 | /tray |
||
414 | /vcadd |
||
415 | /vcmd |
||
416 | /vcrem |
||
417 | 185 | Per Amundsen | /vmsg |
418 | /vnotice |
||
419 | 1 | Per Amundsen | /winhelp |
420 | 185 | Per Amundsen | /wallchops |
421 | /wallvoices |
||
422 | 1 | Per Amundsen | |
423 | 150 | Per Amundsen | h2. Command prefixes |
424 | |||
425 | /! prefix will execute the internal command, even if there is a alias with the same name. |
||
426 | |||
427 | Example: |
||
428 | |||
429 | <pre> |
||
430 | ; Override the /me command, |
||
431 | alias me { |
||
432 | ; use the /! prefix to call the internal command. |
||
433 | /!me $1- |
||
434 | } |
||
435 | </pre> |
||
436 | |||
437 | /. prefix can be used to silence the output from many command. |
||
438 | |||
439 | Example: |
||
440 | |||
441 | <pre> |
||
442 | 155 | Per Amundsen | /.msg #channel This message will be hidden from your client, but still sent to the server. |
443 | 150 | Per Amundsen | </pre> |
444 | |||
445 | Both prefix's can be used at the same time. |
||
446 | |||
447 | Example: |
||
448 | |||
449 | <pre> |
||
450 | 155 | Per Amundsen | /!.msg #channel This message will be hidden from your client, but still sent to the server. |
451 | 150 | Per Amundsen | </pre> |
452 | |||
453 | 187 | Per Amundsen | /!& prefix allows delaying evaluation of the last parameter if the parameter is a %variable, this allows using consecutive spaces in commands such as [[/me]] and [[/msg]]. (AdiIRC only) |
454 | 186 | Per Amundsen | |
455 | Example: |
||
456 | |||
457 | <pre> |
||
458 | ; Put a double spaced text inside the variable '%s'. |
||
459 | //var %s test $chr(32) $chr(32) test |
||
460 | |||
461 | ; Call the /msg command using the /!& prefix to delay the evaluation of '%s'. |
||
462 | /!&msg # %s |
||
463 | 201 | Paul Janson | |
464 | ; limited support for text preceding the %var as the final token, preceding text MUST NOT contain the '%' char |
||
465 | //var %a a $chr(32) b | !&echo -a %a | !&echo -a test1 %a | !&echo -a %test2 %a |
||
466 | 186 | Per Amundsen | </pre> |
467 | |||
468 | 150 | Per Amundsen | h2. Evaluate identifiers from Editbox |
469 | 105 | Per Amundsen | |
470 | 156 | Per Amundsen | Typing a command in the Editbox with double slashes// will evaluate [[Scripting Identifiers|$identifiers]] in the line before running it. |
471 | 105 | Per Amundsen | E.g //echo -ag My nick is $me |
472 | |||
473 | 156 | Per Amundsen | You can also [[tabcomplete]] [[Scripting Identifiers|$identifiers]] manually using $me<tab>. |
474 | 107 | Per Amundsen | |
475 | 151 | Per Amundsen | h2. Creating a new command |
476 | 107 | Per Amundsen | |
477 | 112 | Per Amundsen | You can create a new command by opening the menu Tools -> Edit Aliases. |
478 | 107 | Per Amundsen | |
479 | 108 | Per Amundsen | The format for the command is <command> <script to execute>. |
480 | 107 | Per Amundsen | |
481 | *Example* |
||
482 | |||
483 | <pre> |
||
484 | 108 | Per Amundsen | ; Creates a new command '/p' which will evaluate and then execute the script '/part $chan'. |
485 | 1 | Per Amundsen | /p /part $chan |
486 | 108 | Per Amundsen | </pre> |
487 | |||
488 | 110 | Per Amundsen | You can also add a command from the script editor, the syntax there is alias <command> <script to execute> |
489 | 108 | Per Amundsen | |
490 | *Example* |
||
491 | |||
492 | <pre> |
||
493 | ; Creates a new command '/p' which will evaluate and then execute the script '/part $chan'. |
||
494 | ; Same as previous example. |
||
495 | alias p /part $chan |
||
496 | </pre> |
||
497 | |||
498 | 111 | Per Amundsen | If you want to use scripts with multiple lines, you can enclose them with {} brackets in both Edit Aliases and Script Editor. |
499 | 108 | Per Amundsen | |
500 | *Example* |
||
501 | <pre> |
||
502 | ; Edit Aliases |
||
503 | 109 | Per Amundsen | /p { |
504 | 108 | Per Amundsen | /echo -ag I am parting $chan |
505 | /part $chan |
||
506 | } |
||
507 | |||
508 | ; Script editor |
||
509 | alias p { |
||
510 | /echo -ag I am parting $chan |
||
511 | /part $chan |
||
512 | } |
||
513 | </pre> |
||
514 | |||
515 | Almost all built-in commands can be overridden to execute your own script. |
||
516 | |||
517 | *Example* |
||
518 | |||
519 | <pre> |
||
520 | ; Create your own /part command |
||
521 | alias part { |
||
522 | /echo -ag I am parting $chan |
||
523 | raw PART $chan |
||
524 | } |
||
525 | |||
526 | 114 | Per Amundsen | ; Create your own /part command, but execute the built-in /part command after executing your own script. |
527 | 108 | Per Amundsen | alias part { |
528 | /echo -ag I am parting $chan |
||
529 | |||
530 | ; Execute the built-in part command |
||
531 | !part $chan |
||
532 | } |
||
533 | 107 | Per Amundsen | </pre> |
534 | 113 | Per Amundsen | |
535 | A command can also be called as a $identifier. |
||
536 | |||
537 | *Example* |
||
538 | |||
539 | <pre> |
||
540 | ; Create a command. |
||
541 | alias mycommand { |
||
542 | 115 | Per Amundsen | echo -ag I was called as a $iif($isid,identifier,command) |
543 | 113 | Per Amundsen | } |
544 | |||
545 | ; Call the command as identifier. |
||
546 | //noop $mycommand |
||
547 | |||
548 | 116 | Per Amundsen | ; Call the command as a command. |
549 | 113 | Per Amundsen | /mycommand |
550 | </pre> |