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