Project

General

Profile

Scripting Commands » History » Version 204

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