Project

General

Profile

Scripting Commands » History » Version 173

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