Project

General

Profile

Scripting Commands » History » Version 138

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