Project

General

Profile

Scripting Commands » History » Version 125

Per Amundsen, 12/11/2015 12:57 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 123 Per Amundsen
| [[/abook]]
14
*[[/aclear]]*
15 1 Per Amundsen
[[/action]]
16 27 Per Amundsen
*[[/advertise]]*
17 1 Per Amundsen
[[/ajinvite]]
18
[[/alias]]
19
[[/aline]]
20
[[/amark]]
21
[[/ame]]
22
[[/amsg]]
23 84 Per Amundsen
*[[/allnick]]*
24 1 Per Amundsen
[[/anick]]
25 74 Per Amundsen
[[/auser]]
26 53 Per Amundsen
[[/autojoin]]
27 27 Per Amundsen
*[[/aquit]]*
28 1 Per Amundsen
[[/away]]
29 27 Per Amundsen
*[[/back]]*
30 1 Per Amundsen
[[/background]]
31
[[/ban]]
32 27 Per Amundsen
*[[/banlist]]*
33 1 Per Amundsen
[[/bcopy]]
34
[[/beep]]
35 27 Per Amundsen
*[[/betaup]]*
36
*[[/bin2txt]]*
37 1 Per Amundsen
[[/bindip]]
38
[[/bread]]
39
[[/break]]
40
[[/breplace]]
41
[[/bset]]
42
[[/btrunc]]
43
[[/bunset]]
44 27 Per Amundsen
*[[/bw]]*
45 1 Per Amundsen
[[/bwrite]]
46
[[/channel]]
47 27 Per Amundsen
*[[/charset]]*
48 1 Per Amundsen
[[/clear]]
49
[[/clearall]]
50
[[/cline]]
51
[[/clipboard]]
52
[[/close]]
53 54 Per Amundsen
[[/color]]
54 1 Per Amundsen
[[/colour]]
55 57 Per Amundsen
[[/comclose]]
56 123 Per Amundsen
 | [[/comlist]]
57
[[/comopen]]
58 84 Per Amundsen
[[/comreg]]
59 74 Per Amundsen
*[[/config]]*
60 32 Per Amundsen
[[/continue]]
61 66 Per Amundsen
[[/copy]]
62 1 Per Amundsen
[[/ctcp]]
63
[[/ctcps]]
64 57 Per Amundsen
[[/ctcpreply]]
65 1 Per Amundsen
*[[/cycle]]*
66 54 Per Amundsen
[[/dcc]]
67 52 Per Amundsen
[[/dde]]
68 41 Per Amundsen
[[/ddeserver]]
69
[[/debug]]
70 32 Per Amundsen
[[/dec]]
71 27 Per Amundsen
*[[/dehalfop]]*
72
*[[/deop]]*
73 1 Per Amundsen
[[/describe]]
74 27 Per Amundsen
*[[/desop]]*
75
*[[/devoice]]*
76 1 Per Amundsen
[[/dialog]]
77
[[/did]]
78
[[/didtok]]
79
[[/disable]]
80
[[/disconnect]]
81 94 Per Amundsen
[[/dlevel]]
82 1 Per Amundsen
[[/dline]]
83
[[/dll]]
84
[[/dns]]
85 27 Per Amundsen
*[[/dock]]*
86
*[[/dockpanels]]*
87 1 Per Amundsen
[[/drawcopy]]
88
[[/drawdot]]
89
[[/drawfill]]
90
[[/drawline]]
91
[[/drawpic]]
92
[[/drawrect]]
93
[[/drawreplace]]
94
[[/drawrot]]
95
[[/drawsave]]
96
[[/drawscroll]]
97 27 Per Amundsen
[[/drawtext]]
98 96 Per Amundsen
[[/ebeeps]]
99 123 Per Amundsen
 | [[/echo]]
100
*[[/echox]]*
101 97 Per Amundsen
*[[/edit]]*
102 94 Per Amundsen
[[/editbox]]
103 84 Per Amundsen
[[/else]]
104 74 Per Amundsen
[[/elseif]]
105 88 Per Amundsen
[[/emailaddr]]
106 66 Per Amundsen
[[/enable]]
107 1 Per Amundsen
*[[/encoding]]*
108
[[/events]]
109 60 Per Amundsen
[[/exit]]
110 57 Per Amundsen
*[[/fakeraw]]*
111 1 Per Amundsen
[[/fclose]]
112 54 Per Amundsen
[[/filter]]
113 52 Per Amundsen
[[/findtext]]
114 50 Per Amundsen
[[/flash]]
115 1 Per Amundsen
[[/flist]]
116 67 Per Amundsen
[[/flushini]]
117 124 Per Amundsen
[[/font]]
118 39 Per Amundsen
[[/fopen]]
119 37 Per Amundsen
[[/fseek]]
120 85 Per Amundsen
[[/fullname]]
121 45 Per Amundsen
*[[/fullscreen]]*
122 36 Per Amundsen
[[/fwrite]]
123 33 Per Amundsen
*[[/gcmem]]*
124 32 Per Amundsen
*[[/google]]*
125 23 Per Amundsen
[[/goto]]
126 77 Per Amundsen
[[/guser]]
127 1 Per Amundsen
[[/hadd]]
128 27 Per Amundsen
*[[/halfop]]*
129 1 Per Amundsen
[[/halt]]
130
[[/haltdef]]
131
[[/hdec]]
132
[[/hdel]]
133
[[/help]]
134
[[/hfree]]
135 48 Per Amundsen
*[[/highlight]]*
136 1 Per Amundsen
[[/hinc]]
137
[[/hload]]
138
[[/hmake]]
139
[[/hop]]
140
[[/hsave]]
141
[[/ialmark]]
142 124 Per Amundsen
 | [[/identd]]
143
[[/if]]
144 123 Per Amundsen
[[/ignore]]
145 122 Per Amundsen
[[/iline]]
146 118 Per Amundsen
[[/inc]]
147 96 Per Amundsen
[[/invite]]
148 94 Per Amundsen
[[/iuser]]
149 89 Per Amundsen
[[/join]]
150 88 Per Amundsen
[[/kick]]
151 85 Per Amundsen
[[/kill]]
152 84 Per Amundsen
*[[/lag]]*
153 78 Per Amundsen
[[/linesep]]
154 77 Per Amundsen
[[/list]]
155 74 Per Amundsen
[[/load]]
156 67 Per Amundsen
[[/loadbuf]]
157 66 Per Amundsen
*[[/lock]]*
158 1 Per Amundsen
*[[/logs]]*
159
[[/logview]]
160
[[/markall]]
161 69 Per Amundsen
[[/mdi]]
162 57 Per Amundsen
[[/me]]
163 1 Per Amundsen
[[/menubar]]
164
[[/mkdir]]
165 85 Per Amundsen
[[/mnick]]
166 52 Per Amundsen
[[/mode]]
167 50 Per Amundsen
[[/msg]]
168 49 Per Amundsen
*[[/msgbox]]*
169 65 Per Amundsen
*[[/mute]]*
170 95 Per Amundsen
*[[/nextunread]]*
171 45 Per Amundsen
[[/nick]]
172 64 Per Amundsen
[[/nickcolumn]]
173 44 Per Amundsen
[[/nicklist]]
174 1 Per Amundsen
[[/nickcolor]]
175 39 Per Amundsen
*[[/nmsg]]*
176 37 Per Amundsen
[[/noop]]
177 36 Per Amundsen
[[/notice]]
178 1 Per Amundsen
[[/notify]]
179 33 Per Amundsen
*[[/np]]*
180 32 Per Amundsen
[[/omsg]]
181 23 Per Amundsen
[[/onotice]]
182 19 Per Amundsen
[[/op]]
183 27 Per Amundsen
*[[/options]]*
184 98 Per Amundsen
[[/parseline]]
185 125 Per Amundsen
 | [[/part]]
186
[[/partall]]
187 123 Per Amundsen
*[[/paths]]*
188 122 Per Amundsen
[[/perform]]
189 121 Per Amundsen
*[[/pgoogle]]*
190 118 Per Amundsen
*[[/plugins]]*
191 99 Per Amundsen
*[[/priv]]*
192 96 Per Amundsen
[[/query]]
193 95 Per Amundsen
[[/queryrn]]
194 94 Per Amundsen
*[[/quickconnect]]*
195 89 Per Amundsen
*[[/quicksave]]*
196 88 Per Amundsen
[[/quit]]
197 1 Per Amundsen
[[/quote]]
198 85 Per Amundsen
[[/raw]]
199 84 Per Amundsen
*[[/rawx]]*
200
*[[/rawlog]]*
201 85 Per Amundsen
*[[/realname]]*
202 77 Per Amundsen
*[[/reconnect]]*
203 74 Per Amundsen
*[[/rejoin]]*
204 69 Per Amundsen
[[/reload]]
205 67 Per Amundsen
[[/remini]]
206 66 Per Amundsen
[[/remote]]
207 65 Per Amundsen
[[/remove]]
208 63 Per Amundsen
[[/rename]]
209 1 Per Amundsen
[[/renwin]]
210
[[/reseterror]]
211 82 Per Amundsen
[[/resetidle]]
212 27 Per Amundsen
*[[/resolve]]*
213 57 Per Amundsen
*[[/restart]]*
214 1 Per Amundsen
[[/return]]
215 54 Per Amundsen
[[/returnex]]
216 79 Per Amundsen
[[/rlevel]]
217 52 Per Amundsen
[[/rline]]
218 50 Per Amundsen
[[/rmdir]]
219 1 Per Amundsen
[[/run]]
220
[[/ruser]]
221 45 Per Amundsen
[[/say]]
222 51 Per Amundsen
[[/savebuf]]
223 44 Per Amundsen
[[/scid]]
224 42 Per Amundsen
[[/scon]]
225 1 Per Amundsen
*[[/scripts]]*
226 39 Per Amundsen
*[[/search]]*
227 1 Per Amundsen
[[/server]]
228 124 Per Amundsen
 |^. *[[/serverlist]]*
229
[[/set]]
230 123 Per Amundsen
*[[/setconfig]]*
231 122 Per Amundsen
[[/setlayer]]
232 123 Per Amundsen
*[[/setoption]]*
233
*[[/showadiirc]]*
234 98 Per Amundsen
[[/showmirc]]
235 96 Per Amundsen
[[/signal]]
236 95 Per Amundsen
*[[/slap]]*
237 94 Per Amundsen
*[[/sleep]]*
238 89 Per Amundsen
[[/sline]]
239 88 Per Amundsen
[[/sockaccept]]
240 1 Per Amundsen
[[/sockclose]]
241
[[/socklist]]
242 85 Per Amundsen
[[/socklisten]]
243 84 Per Amundsen
[[/sockmark]]
244 82 Per Amundsen
[[/sockopen]]
245 80 Per Amundsen
[[/sockpause]]
246 79 Per Amundsen
[[/sockread]]
247 78 Per Amundsen
[[/sockrename]]
248 77 Per Amundsen
[[/sockwrite]]
249 75 Per Amundsen
*[[/sop]]*
250 69 Per Amundsen
[[/splay]]
251 67 Per Amundsen
*[[/statusbar]]*
252 66 Per Amundsen
[[/switchbar]]
253 65 Per Amundsen
*[[/tab]]*
254 63 Per Amundsen
*[[/themes]]*
255 1 Per Amundsen
[[/time]]
256 93 Per Amundsen
[[/timestamp]]
257 1 Per Amundsen
[[/timer]]
258
[[/tip]]
259 90 Per Amundsen
[[/tips]]
260 1 Per Amundsen
[[/titlebar]]
261
[[/tokenize]]
262 54 Per Amundsen
[[/toolbar]]
263 52 Per Amundsen
[[/topic]]
264 51 Per Amundsen
*[[/topicbox]]*
265 50 Per Amundsen
[[/treebar]]
266 1 Per Amundsen
[[/ulist]]
267 81 Per Amundsen
*[[/usernick]]*
268 87 Per Amundsen
*[[/txt2bin]]*
269 1 Per Amundsen
*[[/unban]]*
270 46 Per Amundsen
*[[/unignore]]*
271 124 Per Amundsen
 |^. [[/unload]]
272
*[[/unnotify]]*
273 123 Per Amundsen
[[/unset]]
274 122 Per Amundsen
[[/unsetall]]
275
*[[/update]]*
276 123 Per Amundsen
[[/uwho]]
277 118 Per Amundsen
[[/var]]
278 98 Per Amundsen
*[[/vars]]*
279 96 Per Amundsen
*[[/viewlog]]*
280 95 Per Amundsen
*[[/voice]]*
281 94 Per Amundsen
[[/vol]]
282 91 Per Amundsen
*[[/wdown]]*
283 90 Per Amundsen
[[/while]]
284 89 Per Amundsen
[[/window]]
285 88 Per Amundsen
*[[/wjump]]*
286 87 Per Amundsen
*[[/wnext]]*
287 1 Per Amundsen
*[[/wpause]]*
288
*[[/wplay]]*
289 85 Per Amundsen
*[[/wprev]]*
290 84 Per Amundsen
[[/write]]
291 82 Per Amundsen
[[/writeini]]
292 81 Per Amundsen
*[[/wsearch]]*
293 80 Per Amundsen
*[[/wseekf]]*
294 79 Per Amundsen
*[[/wseekr]]*
295 78 Per Amundsen
*[[/wselect]]*
296 77 Per Amundsen
*[[/wstop]]*
297 76 Per Amundsen
*[[/wup]]*
298 16 Per Amundsen
 | 
299
300
h1. System information Commands
301 117 Per Amundsen
302 16 Per Amundsen
Output from these are set in [[Options_Dialog|Options]] -> [[Options_Sysinfo|Sysinfo]] and are merely convenient aliases.
303
304
/sysinfo
305
/gfxinfo
306 1 Per Amundsen
/cpuinfo
307 31 Per Amundsen
/meminfo
308 1 Per Amundsen
/diskinfo
309
/audioinfo
310
/uptime
311
/bw
312
313
h1. Missing Commands
314
315
/aop
316
/avoice
317
/creq
318
/dccserver
319
/dqwindow
320
/firewall
321
/flood
322
/flush
323
/fsend
324
/fserve
325
/ghide
326
/gload
327
/gopts
328
/gplay
329
/gpoint
330
/gqreq
331
/groups
332
/gshow
333
/gsize
334
/gstop
335
/gtalk
336 119 Per Amundsen
/gunload
337 1 Per Amundsen
/ial
338
/ialclear
339 30 Per Amundsen
/links
340 1 Per Amundsen
/localinfo
341
/log
342
/pdcc
343
/play
344
/playctrl
345
/pop
346
/protect
347
/proxy
348
/pvoice
349
/qme
350
/qmsg
351
/save
352
/saveini
353
/sockudp
354
/sound
355
/speak
356
/sreq
357
/strip
358
/tnick
359
/tray
360
/updatenl
361
/url
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>