Project

General

Profile

Scripting Commands » History » Version 166

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