Project

General

Profile

Scripting Commands » History » Version 164

Per Amundsen, 06/20/2017 10:43 AM

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