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