Project

General

Profile

Scripting Commands » History » Version 206

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