Project

General

Profile

Scripting Commands » History » Version 122

Per Amundsen, 11/26/2015 06:42 PM

1 73 Per Amundsen
{{>toc}}
2
3 1 Per Amundsen
h1. Scripting Commands
4
5 2 Per Amundsen
Parameters in [x] means they are optional.
6
Parameters in <x> means they are required.
7
Parameters with a x|y means either x or y can be used.
8
9 3 Per Amundsen
Click on a command to read more about it.
10
11 27 Per Amundsen
Commands in bold is AdiIRC only.
12
13 102 Per Amundsen
| *[[/aclear]]*
14 1 Per Amundsen
[[/action]]
15 27 Per Amundsen
*[[/advertise]]*
16 1 Per Amundsen
[[/ajinvite]]
17
[[/alias]]
18
[[/aline]]
19
[[/amark]]
20
[[/ame]]
21
[[/amsg]]
22 84 Per Amundsen
*[[/allnick]]*
23 1 Per Amundsen
[[/anick]]
24 74 Per Amundsen
[[/auser]]
25 53 Per Amundsen
[[/autojoin]]
26 27 Per Amundsen
*[[/aquit]]*
27 1 Per Amundsen
[[/away]]
28 27 Per Amundsen
*[[/back]]*
29 1 Per Amundsen
[[/background]]
30
[[/ban]]
31 27 Per Amundsen
*[[/banlist]]*
32 1 Per Amundsen
[[/bcopy]]
33
[[/beep]]
34 27 Per Amundsen
*[[/betaup]]*
35
*[[/bin2txt]]*
36 1 Per Amundsen
[[/bindip]]
37
[[/bread]]
38
[[/break]]
39
[[/breplace]]
40
[[/bset]]
41
[[/btrunc]]
42
[[/bunset]]
43 27 Per Amundsen
*[[/bw]]*
44 1 Per Amundsen
[[/bwrite]]
45
[[/channel]]
46 27 Per Amundsen
*[[/charset]]*
47 1 Per Amundsen
[[/clear]]
48
[[/clearall]]
49
[[/cline]]
50
[[/clipboard]]
51
[[/close]]
52 54 Per Amundsen
[[/color]]
53
[[/colour]]
54 57 Per Amundsen
[[/comclose]]
55 1 Per Amundsen
[[/comlist]]
56 84 Per Amundsen
 | [[/comopen]]
57
[[/comreg]]
58 74 Per Amundsen
*[[/config]]*
59 32 Per Amundsen
[[/continue]]
60 66 Per Amundsen
[[/copy]]
61 1 Per Amundsen
[[/ctcp]]
62
[[/ctcps]]
63 57 Per Amundsen
[[/ctcpreply]]
64 1 Per Amundsen
*[[/cycle]]*
65 54 Per Amundsen
[[/dcc]]
66 52 Per Amundsen
[[/dde]]
67 41 Per Amundsen
[[/ddeserver]]
68
[[/debug]]
69 32 Per Amundsen
[[/dec]]
70 27 Per Amundsen
*[[/dehalfop]]*
71
*[[/deop]]*
72 1 Per Amundsen
[[/describe]]
73 27 Per Amundsen
*[[/desop]]*
74
*[[/devoice]]*
75 1 Per Amundsen
[[/dialog]]
76
[[/did]]
77
[[/didtok]]
78
[[/disable]]
79
[[/disconnect]]
80 94 Per Amundsen
[[/dlevel]]
81 1 Per Amundsen
[[/dline]]
82
[[/dll]]
83
[[/dns]]
84 27 Per Amundsen
*[[/dock]]*
85
*[[/dockpanels]]*
86 1 Per Amundsen
[[/drawcopy]]
87
[[/drawdot]]
88
[[/drawfill]]
89
[[/drawline]]
90
[[/drawpic]]
91
[[/drawrect]]
92
[[/drawreplace]]
93
[[/drawrot]]
94
[[/drawsave]]
95
[[/drawscroll]]
96 27 Per Amundsen
[[/drawtext]]
97 96 Per Amundsen
[[/ebeeps]]
98 1 Per Amundsen
[[/echo]]
99 97 Per Amundsen
 | *[[/echox]]*
100
*[[/edit]]*
101 94 Per Amundsen
[[/editbox]]
102 84 Per Amundsen
[[/else]]
103 74 Per Amundsen
[[/elseif]]
104 88 Per Amundsen
[[/emailaddr]]
105 66 Per Amundsen
[[/enable]]
106 1 Per Amundsen
*[[/encoding]]*
107
[[/events]]
108 60 Per Amundsen
[[/exit]]
109 57 Per Amundsen
*[[/fakeraw]]*
110 1 Per Amundsen
[[/fclose]]
111 54 Per Amundsen
[[/filter]]
112 52 Per Amundsen
[[/findtext]]
113 50 Per Amundsen
[[/flash]]
114 1 Per Amundsen
[[/flist]]
115 67 Per Amundsen
[[/flushini]]
116 39 Per Amundsen
[[/fopen]]
117 37 Per Amundsen
[[/fseek]]
118 85 Per Amundsen
[[/fullname]]
119 45 Per Amundsen
*[[/fullscreen]]*
120 36 Per Amundsen
[[/fwrite]]
121 33 Per Amundsen
*[[/gcmem]]*
122 32 Per Amundsen
*[[/google]]*
123 23 Per Amundsen
[[/goto]]
124 77 Per Amundsen
[[/guser]]
125 1 Per Amundsen
[[/hadd]]
126 27 Per Amundsen
*[[/halfop]]*
127 1 Per Amundsen
[[/halt]]
128
[[/haltdef]]
129
[[/hdec]]
130
[[/hdel]]
131
[[/help]]
132
[[/hfree]]
133 48 Per Amundsen
*[[/highlight]]*
134 1 Per Amundsen
[[/hinc]]
135
[[/hload]]
136
[[/hmake]]
137
[[/hop]]
138
[[/hsave]]
139 118 Per Amundsen
[[/ialmark]]
140 89 Per Amundsen
[[/identd]]
141 1 Per Amundsen
[[/if]]
142 118 Per Amundsen
 | [[/ignore]]
143 122 Per Amundsen
[[/iline]]
144 118 Per Amundsen
[[/inc]]
145 96 Per Amundsen
[[/invite]]
146 94 Per Amundsen
[[/iuser]]
147 89 Per Amundsen
[[/join]]
148 88 Per Amundsen
[[/kick]]
149 85 Per Amundsen
[[/kill]]
150 84 Per Amundsen
*[[/lag]]*
151 78 Per Amundsen
[[/linesep]]
152 77 Per Amundsen
[[/list]]
153 74 Per Amundsen
[[/load]]
154 67 Per Amundsen
[[/loadbuf]]
155 66 Per Amundsen
*[[/lock]]*
156 1 Per Amundsen
*[[/logs]]*
157
[[/logview]]
158
[[/markall]]
159 69 Per Amundsen
[[/mdi]]
160 57 Per Amundsen
[[/me]]
161 1 Per Amundsen
[[/menubar]]
162
[[/mkdir]]
163 85 Per Amundsen
[[/mnick]]
164 52 Per Amundsen
[[/mode]]
165 50 Per Amundsen
[[/msg]]
166 49 Per Amundsen
*[[/msgbox]]*
167 65 Per Amundsen
*[[/mute]]*
168 95 Per Amundsen
*[[/nextunread]]*
169 45 Per Amundsen
[[/nick]]
170 64 Per Amundsen
[[/nickcolumn]]
171 44 Per Amundsen
[[/nicklist]]
172 1 Per Amundsen
[[/nickcolor]]
173 39 Per Amundsen
*[[/nmsg]]*
174 37 Per Amundsen
[[/noop]]
175 36 Per Amundsen
[[/notice]]
176 35 Per Amundsen
[[/notify]]
177 33 Per Amundsen
*[[/np]]*
178 32 Per Amundsen
[[/omsg]]
179 23 Per Amundsen
[[/onotice]]
180 19 Per Amundsen
[[/op]]
181 27 Per Amundsen
*[[/options]]*
182 98 Per Amundsen
[[/parseline]]
183 1 Per Amundsen
[[/part]]
184
[[/partall]]
185 122 Per Amundsen
 | *[[/paths]]*
186
[[/perform]]
187 121 Per Amundsen
*[[/pgoogle]]*
188 118 Per Amundsen
*[[/plugins]]*
189 99 Per Amundsen
*[[/priv]]*
190 96 Per Amundsen
[[/query]]
191 95 Per Amundsen
[[/queryrn]]
192 94 Per Amundsen
*[[/quickconnect]]*
193 89 Per Amundsen
*[[/quicksave]]*
194 88 Per Amundsen
[[/quit]]
195 1 Per Amundsen
[[/quote]]
196 85 Per Amundsen
[[/raw]]
197 84 Per Amundsen
*[[/rawx]]*
198
*[[/rawlog]]*
199 85 Per Amundsen
*[[/realname]]*
200 77 Per Amundsen
*[[/reconnect]]*
201 74 Per Amundsen
*[[/rejoin]]*
202 69 Per Amundsen
[[/reload]]
203 67 Per Amundsen
[[/remini]]
204 66 Per Amundsen
[[/remote]]
205 65 Per Amundsen
[[/remove]]
206 63 Per Amundsen
[[/rename]]
207 1 Per Amundsen
[[/renwin]]
208
[[/reseterror]]
209 82 Per Amundsen
[[/resetidle]]
210 27 Per Amundsen
*[[/resolve]]*
211 57 Per Amundsen
*[[/restart]]*
212 1 Per Amundsen
[[/return]]
213 54 Per Amundsen
[[/returnex]]
214 79 Per Amundsen
[[/rlevel]]
215 52 Per Amundsen
[[/rline]]
216 50 Per Amundsen
[[/rmdir]]
217 49 Per Amundsen
[[/run]]
218 80 Per Amundsen
[[/ruser]]
219 45 Per Amundsen
[[/say]]
220 51 Per Amundsen
[[/savebuf]]
221 44 Per Amundsen
[[/scid]]
222 42 Per Amundsen
[[/scon]]
223 1 Per Amundsen
*[[/scripts]]*
224 39 Per Amundsen
*[[/search]]*
225 1 Per Amundsen
[[/server]]
226 37 Per Amundsen
*[[/serverlist]]*
227 1 Per Amundsen
[[/set]]
228 122 Per Amundsen
 |^. *[[/setconfig]]*
229
[[/setlayer]]
230 120 Per Amundsen
**[[/setoption]]*
231 118 Per Amundsen
[[/showadiirc]]*
232 98 Per Amundsen
[[/showmirc]]
233 96 Per Amundsen
[[/signal]]
234 95 Per Amundsen
*[[/slap]]*
235 94 Per Amundsen
*[[/sleep]]*
236 89 Per Amundsen
[[/sline]]
237 88 Per Amundsen
[[/sockaccept]]
238 1 Per Amundsen
[[/sockclose]]
239
[[/socklist]]
240 85 Per Amundsen
[[/socklisten]]
241 84 Per Amundsen
[[/sockmark]]
242 82 Per Amundsen
[[/sockopen]]
243 80 Per Amundsen
[[/sockpause]]
244 79 Per Amundsen
[[/sockread]]
245 78 Per Amundsen
[[/sockrename]]
246 77 Per Amundsen
[[/sockwrite]]
247 75 Per Amundsen
*[[/sop]]*
248 69 Per Amundsen
[[/splay]]
249 67 Per Amundsen
*[[/statusbar]]*
250 66 Per Amundsen
[[/switchbar]]
251 65 Per Amundsen
*[[/tab]]*
252 63 Per Amundsen
*[[/themes]]*
253 1 Per Amundsen
[[/time]]
254 93 Per Amundsen
[[/timestamp]]
255 1 Per Amundsen
[[/timer]]
256 90 Per Amundsen
[[/tip]]
257
[[/tips]]
258 1 Per Amundsen
[[/titlebar]]
259 54 Per Amundsen
[[/tokenize]]
260 52 Per Amundsen
[[/toolbar]]
261 51 Per Amundsen
[[/topic]]
262 50 Per Amundsen
*[[/topicbox]]*
263 49 Per Amundsen
[[/treebar]]
264 81 Per Amundsen
[[/ulist]]
265 87 Per Amundsen
*[[/usernick]]*
266 1 Per Amundsen
*[[/txt2bin]]*
267 46 Per Amundsen
*[[/unban]]*
268 1 Per Amundsen
*[[/unignore]]*
269
[[/unload]]
270 42 Per Amundsen
*[[/unnotify]]*
271 122 Per Amundsen
 |^. [[/unset]]
272
[[/unsetall]]
273 120 Per Amundsen
*[[/update]]*
274 118 Per Amundsen
[[/var]]
275 98 Per Amundsen
*[[/vars]]*
276 96 Per Amundsen
*[[/viewlog]]*
277 95 Per Amundsen
*[[/voice]]*
278 94 Per Amundsen
[[/vol]]
279 91 Per Amundsen
*[[/wdown]]*
280 90 Per Amundsen
[[/while]]
281 89 Per Amundsen
[[/window]]
282 88 Per Amundsen
*[[/wjump]]*
283 87 Per Amundsen
*[[/wnext]]*
284 1 Per Amundsen
*[[/wpause]]*
285
*[[/wplay]]*
286 85 Per Amundsen
*[[/wprev]]*
287 84 Per Amundsen
[[/write]]
288 82 Per Amundsen
[[/writeini]]
289 81 Per Amundsen
*[[/wsearch]]*
290 80 Per Amundsen
*[[/wseekf]]*
291 79 Per Amundsen
*[[/wseekr]]*
292 78 Per Amundsen
*[[/wselect]]*
293 77 Per Amundsen
*[[/wstop]]*
294 76 Per Amundsen
*[[/wup]]*
295 70 Per Amundsen
 | 
296 16 Per Amundsen
297
h1. System information Commands
298
299 117 Per Amundsen
Output from these are set in [[Options_Dialog|Options]] -> [[Options_Sysinfo|Sysinfo]] and are merely convenient aliases.
300 16 Per Amundsen
301
/sysinfo
302
/gfxinfo
303
/cpuinfo
304 1 Per Amundsen
/meminfo
305 31 Per Amundsen
/diskinfo
306 1 Per Amundsen
/audioinfo
307
/uptime
308
/bw
309
310
h1. Missing Commands
311
312
/abook
313
/aop
314
/avoice
315
/creq
316
/dccserver
317
/dqwindow
318
/firewall
319
/flood
320
/flush
321
/font
322
/fsend
323
/fserve
324
/ghide
325
/gload
326
/gopts
327
/gplay
328
/gpoint
329
/gqreq
330
/groups
331
/gshow
332
/gsize
333
/gstop
334
/gtalk
335 119 Per Amundsen
/gunload
336 1 Per Amundsen
/ial
337
/ialclear
338 30 Per Amundsen
/links
339 1 Per Amundsen
/localinfo
340
/log
341
/pdcc
342
/play
343
/playctrl
344
/pop
345
/protect
346
/proxy
347
/pvoice
348
/qme
349
/qmsg
350
/save
351
/saveini
352
/sockudp
353
/sound
354
/speak
355
/sreq
356
/strip
357
/tnick
358
/tray
359
/updatenl
360
/url
361
/uwho
362
/vcadd
363
/vcmd
364
/vcrem
365
/winhelp
366 105 Per Amundsen
367
h1. Evaluate identifiers from Editbox
368
369
Typing a command in the Editbox with double slashes// will evaluate $identifiers in the line before running it.
370
E.g //echo -ag My nick is $me
371
372 106 Per Amundsen
You can also [[tabcomplete]] identifiers manually using $me<tab>.
373 107 Per Amundsen
374
h1. Creating a new command
375
376 112 Per Amundsen
You can create a new command by opening the menu Tools -> Edit Aliases.
377 107 Per Amundsen
378 108 Per Amundsen
The format for the command is <command> <script to execute>.
379 107 Per Amundsen
380
*Example*
381
382
<pre>
383 108 Per Amundsen
; Creates a new command '/p' which will evaluate and then execute the script '/part $chan'.
384 1 Per Amundsen
/p /part $chan
385 108 Per Amundsen
</pre>
386
387 110 Per Amundsen
You can also add a command from the script editor, the syntax there is alias <command> <script to execute>
388 108 Per Amundsen
389
*Example*
390
391
<pre>
392
; Creates a new command '/p' which will evaluate and then execute the script '/part $chan'.
393
; Same as previous example.
394
alias p /part $chan
395
</pre>
396
397 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.
398 108 Per Amundsen
399
*Example*
400
<pre>
401
; Edit Aliases
402 109 Per Amundsen
/p {
403 108 Per Amundsen
  /echo -ag I am parting $chan
404
  /part $chan
405
}
406
407
; Script editor
408
alias p {
409
  /echo -ag I am parting $chan
410
  /part $chan
411
}
412
</pre>
413
414
Almost all built-in commands can be overridden to execute your own script.
415
416
*Example*
417
418
<pre>
419
; Create your own /part command
420
alias part {
421
  /echo -ag I am parting $chan
422
  raw PART $chan
423
}
424
425 114 Per Amundsen
; Create your own /part command, but execute the built-in /part command after executing your own script.
426 108 Per Amundsen
alias part {
427
  /echo -ag I am parting $chan
428
429
  ; Execute the built-in part command
430
  !part $chan
431
}
432 107 Per Amundsen
</pre>
433 113 Per Amundsen
434
A command can also be called as a $identifier.
435
436
*Example*
437
438
<pre>
439
; Create a command.
440
alias mycommand {
441 115 Per Amundsen
  echo -ag I was called as a $iif($isid,identifier,command)
442 113 Per Amundsen
}
443
444
; Call the command as identifier.
445
//noop $mycommand
446
447 116 Per Amundsen
; Call the command as a command.
448 113 Per Amundsen
/mycommand
449
</pre>