Project

General

Profile

Scripting Commands » History » Version 167

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