Project

General

Profile

Scripting Commands » History » Version 207

Per Amundsen, 01/09/2023 11:41 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 207 Per Amundsen
/bigfloat
382 1 Per Amundsen
/dccserver
383 197 Per Amundsen
/donotdisturb
384 1 Per Amundsen
/dqwindow
385 185 Per Amundsen
/finger
386 1 Per Amundsen
/flood
387
/flush
388
/fserve
389
/ghide
390
/gload
391 185 Per Amundsen
/gmove
392 1 Per Amundsen
/gopts
393
/gplay
394
/gpoint
395
/gqreq
396
/gshow
397
/gsize
398 119 Per Amundsen
/gstop
399 1 Per Amundsen
/gtalk
400
/gunload
401 30 Per Amundsen
/ialclear
402 1 Per Amundsen
/links
403
/localinfo
404
/pdcc
405
/pop
406
/pvoice
407
/qme
408 185 Per Amundsen
/qmsg
409 1 Per Amundsen
/registration
410
/save
411
/sound
412
/speak
413
/strip
414
/tnick
415
/tray
416
/vcadd
417
/vcmd
418
/vcrem
419 185 Per Amundsen
/vmsg
420
/vnotice
421 1 Per Amundsen
/winhelp
422 185 Per Amundsen
/wallchops
423
/wallvoices
424 1 Per Amundsen
425 150 Per Amundsen
h2. Command prefixes
426
427
/! prefix will execute the internal command, even if there is a alias with the same name.
428
429
Example:
430
431
<pre>
432
; Override the /me command,
433
alias me {
434
  ; use the /! prefix to call the internal command.
435
  /!me $1-
436
}
437
</pre>
438
439
/. prefix can be used to silence the output from many command.
440
441
Example:
442
443
<pre>
444 155 Per Amundsen
/.msg #channel This message will be hidden from your client, but still sent to the server.
445 150 Per Amundsen
</pre>
446
447
Both prefix's can be used at the same time.
448
449
Example:
450
451
<pre>
452 155 Per Amundsen
/!.msg #channel This message will be hidden from your client, but still sent to the server.
453 150 Per Amundsen
</pre>
454
455 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)
456 186 Per Amundsen
457
Example:
458
459
<pre>
460
; Put a double spaced text inside the variable '%s'.
461
//var %s test $chr(32) $chr(32) test
462
463
; Call the /msg command using the /!& prefix to delay the evaluation of '%s'.
464
/!&msg # %s
465 201 Paul Janson
466
; limited support for text preceding the %var as the final token, preceding text MUST NOT contain the '%' char
467
//var %a a $chr(32) b | !&echo -a %a | !&echo -a test1 %a | !&echo -a %test2 %a
468 186 Per Amundsen
</pre>
469
470 150 Per Amundsen
h2. Evaluate identifiers from Editbox
471 105 Per Amundsen
472 156 Per Amundsen
Typing a command in the Editbox with double slashes// will evaluate [[Scripting Identifiers|$identifiers]] in the line before running it.
473 105 Per Amundsen
E.g //echo -ag My nick is $me
474
475 156 Per Amundsen
You can also [[tabcomplete]] [[Scripting Identifiers|$identifiers]] manually using $me<tab>.
476 107 Per Amundsen
477 151 Per Amundsen
h2. Creating a new command
478 107 Per Amundsen
479 112 Per Amundsen
You can create a new command by opening the menu Tools -> Edit Aliases.
480 107 Per Amundsen
481 108 Per Amundsen
The format for the command is <command> <script to execute>.
482 107 Per Amundsen
483
*Example*
484
485
<pre>
486 108 Per Amundsen
; Creates a new command '/p' which will evaluate and then execute the script '/part $chan'.
487 1 Per Amundsen
/p /part $chan
488 108 Per Amundsen
</pre>
489
490 110 Per Amundsen
You can also add a command from the script editor, the syntax there is alias <command> <script to execute>
491 108 Per Amundsen
492
*Example*
493
494
<pre>
495
; Creates a new command '/p' which will evaluate and then execute the script '/part $chan'.
496
; Same as previous example.
497
alias p /part $chan
498
</pre>
499
500 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.
501 108 Per Amundsen
502
*Example*
503
<pre>
504
; Edit Aliases
505 109 Per Amundsen
/p {
506 108 Per Amundsen
  /echo -ag I am parting $chan
507
  /part $chan
508
}
509
510
; Script editor
511
alias p {
512
  /echo -ag I am parting $chan
513
  /part $chan
514
}
515
</pre>
516
517
Almost all built-in commands can be overridden to execute your own script.
518
519
*Example*
520
521
<pre>
522
; Create your own /part command
523
alias part {
524
  /echo -ag I am parting $chan
525
  raw PART $chan
526
}
527
528 114 Per Amundsen
; Create your own /part command, but execute the built-in /part command after executing your own script.
529 108 Per Amundsen
alias part {
530
  /echo -ag I am parting $chan
531
532
  ; Execute the built-in part command
533
  !part $chan
534
}
535 107 Per Amundsen
</pre>
536 113 Per Amundsen
537
A command can also be called as a $identifier.
538
539
*Example*
540
541
<pre>
542
; Create a command.
543
alias mycommand {
544 115 Per Amundsen
  echo -ag I was called as a $iif($isid,identifier,command)
545 113 Per Amundsen
}
546
547
; Call the command as identifier.
548
//noop $mycommand
549
550 116 Per Amundsen
; Call the command as a command.
551 113 Per Amundsen
/mycommand
552
</pre>