Project

General

Profile

Scripting Commands » History » Version 174

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