Project

General

Profile

Scripting Commands » History » Version 202

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