Project

General

Profile

Scripting Commands » History » Version 183

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