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