Project

General

Profile

Scripting Commands » History » Version 165

Per Amundsen, 06/28/2017 11:10 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 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 165 Per Amundsen
*[[/zip]]*
340 162 Mr. BS
 |
341
342
%(acounter) %
343 1 Per Amundsen
344 150 Per Amundsen
h2. System information Commands
345 117 Per Amundsen
346 142 Per Amundsen
Output from these are set in [[Options_Dialog|Options]] -> [[Sysinfo Options|Sysinfo]] and are merely convenient aliases.
347 16 Per Amundsen
348
/sysinfo
349 1 Per Amundsen
/gfxinfo
350 31 Per Amundsen
/cpuinfo
351 1 Per Amundsen
/meminfo
352
/diskinfo
353
/audioinfo
354
/uptime
355
/bw
356
357 150 Per Amundsen
h2. Missing Commands
358 1 Per Amundsen
359 138 Per Amundsen
/aop
360 1 Per Amundsen
/avoice
361
/creq
362
/dccserver
363
/dqwindow
364
/flood
365
/flush
366
/fserve
367
/ghide
368
/gload
369
/gopts
370
/gplay
371
/gpoint
372
/gqreq
373
/gshow
374
/gsize
375
/gstop
376
/gtalk
377 119 Per Amundsen
/gunload
378 1 Per Amundsen
/ial
379
/ialclear
380 30 Per Amundsen
/links
381 1 Per Amundsen
/localinfo
382
/pdcc
383
/play
384
/playctrl
385
/pop
386
/protect
387
/pvoice
388
/qme
389
/qmsg
390
/save
391
/sound
392
/speak
393
/sreq
394
/strip
395
/tnick
396
/tray
397
/vcadd
398
/vcmd
399
/vcrem
400
/winhelp
401
402 150 Per Amundsen
h2. Command prefixes
403
404
/! prefix will execute the internal command, even if there is a alias with the same name.
405
406
Example:
407
408
<pre>
409
; Override the /me command,
410
alias me {
411
  ; use the /! prefix to call the internal command.
412
  /!me $1-
413
}
414
</pre>
415
416
/. prefix can be used to silence the output from many command.
417
418
Example:
419
420
<pre>
421 155 Per Amundsen
/.msg #channel This message will be hidden from your client, but still sent to the server.
422 150 Per Amundsen
</pre>
423
424
Both prefix's can be used at the same time.
425
426
Example:
427
428
<pre>
429 155 Per Amundsen
/!.msg #channel This message will be hidden from your client, but still sent to the server.
430 150 Per Amundsen
</pre>
431
432
h2. Evaluate identifiers from Editbox
433 105 Per Amundsen
434 156 Per Amundsen
Typing a command in the Editbox with double slashes// will evaluate [[Scripting Identifiers|$identifiers]] in the line before running it.
435 105 Per Amundsen
E.g //echo -ag My nick is $me
436
437 156 Per Amundsen
You can also [[tabcomplete]] [[Scripting Identifiers|$identifiers]] manually using $me<tab>.
438 107 Per Amundsen
439 151 Per Amundsen
h2. Creating a new command
440 107 Per Amundsen
441 112 Per Amundsen
You can create a new command by opening the menu Tools -> Edit Aliases.
442 107 Per Amundsen
443 108 Per Amundsen
The format for the command is <command> <script to execute>.
444 107 Per Amundsen
445
*Example*
446
447
<pre>
448 108 Per Amundsen
; Creates a new command '/p' which will evaluate and then execute the script '/part $chan'.
449 1 Per Amundsen
/p /part $chan
450 108 Per Amundsen
</pre>
451
452 110 Per Amundsen
You can also add a command from the script editor, the syntax there is alias <command> <script to execute>
453 108 Per Amundsen
454
*Example*
455
456
<pre>
457
; Creates a new command '/p' which will evaluate and then execute the script '/part $chan'.
458
; Same as previous example.
459
alias p /part $chan
460
</pre>
461
462 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.
463 108 Per Amundsen
464
*Example*
465
<pre>
466
; Edit Aliases
467 109 Per Amundsen
/p {
468 108 Per Amundsen
  /echo -ag I am parting $chan
469
  /part $chan
470
}
471
472
; Script editor
473
alias p {
474
  /echo -ag I am parting $chan
475
  /part $chan
476
}
477
</pre>
478
479
Almost all built-in commands can be overridden to execute your own script.
480
481
*Example*
482
483
<pre>
484
; Create your own /part command
485
alias part {
486
  /echo -ag I am parting $chan
487
  raw PART $chan
488
}
489
490 114 Per Amundsen
; Create your own /part command, but execute the built-in /part command after executing your own script.
491 108 Per Amundsen
alias part {
492
  /echo -ag I am parting $chan
493
494
  ; Execute the built-in part command
495
  !part $chan
496
}
497 107 Per Amundsen
</pre>
498 113 Per Amundsen
499
A command can also be called as a $identifier.
500
501
*Example*
502
503
<pre>
504
; Create a command.
505
alias mycommand {
506 115 Per Amundsen
  echo -ag I was called as a $iif($isid,identifier,command)
507 113 Per Amundsen
}
508
509
; Call the command as identifier.
510
//noop $mycommand
511
512 116 Per Amundsen
; Call the command as a command.
513 113 Per Amundsen
/mycommand
514
</pre>