Project

General

Profile

Actions

Scripting Commands » History » Revision 125

« Previous | Revision 125/211 (diff) | Next »
Per Amundsen, 12/11/2015 12:57 PM


Scripting Commands

Parameters in [x] means they are optional.
Parameters in <x> means they are required.
Parameters with a x|y means either x or y can be used.

Click on a command to read more about it.

Commands in bold is AdiIRC only.

/abook
/aclear
/action
/advertise
/ajinvite
/alias
/aline
/amark
/ame
/amsg
/allnick
/anick
/auser
/autojoin
/aquit
/away
/back
/background
/ban
/banlist
/bcopy
/beep
/betaup
/bin2txt
/bindip
/bread
/break
/breplace
/bset
/btrunc
/bunset
/bw
/bwrite
/channel
/charset
/clear
/clearall
/cline
/clipboard
/close
/color
/colour
/comclose
/comlist
/comopen
/comreg
/config
/continue
/copy
/ctcp
/ctcps
/ctcpreply
/cycle
/dcc
/dde
/ddeserver
/debug
/dec
/dehalfop
/deop
/describe
/desop
/devoice
/dialog
/did
/didtok
/disable
/disconnect
/dlevel
/dline
/dll
/dns
/dock
/dockpanels
/drawcopy
/drawdot
/drawfill
/drawline
/drawpic
/drawrect
/drawreplace
/drawrot
/drawsave
/drawscroll
/drawtext
/ebeeps
/echo
/echox
/edit
/editbox
/else
/elseif
/emailaddr
/enable
/encoding
/events
/exit
/fakeraw
/fclose
/filter
/findtext
/flash
/flist
/flushini
/font
/fopen
/fseek
/fullname
/fullscreen
/fwrite
/gcmem
/google
/goto
/guser
/hadd
/halfop
/halt
/haltdef
/hdec
/hdel
/help
/hfree
/highlight
/hinc
/hload
/hmake
/hop
/hsave
/ialmark
/identd
/if
/ignore
/iline
/inc
/invite
/iuser
/join
/kick
/kill
/lag
/linesep
/list
/load
/loadbuf
/lock
/logs
/logview
/markall
/mdi
/me
/menubar
/mkdir
/mnick
/mode
/msg
/msgbox
/mute
/nextunread
/nick
/nickcolumn
/nicklist
/nickcolor
/nmsg
/noop
/notice
/notify
/np
/omsg
/onotice
/op
/options
/parseline
/part
/partall
/paths
/perform
/pgoogle
/plugins
/priv
/query
/queryrn
/quickconnect
/quicksave
/quit
/quote
/raw
/rawx
/rawlog
/realname
/reconnect
/rejoin
/reload
/remini
/remote
/remove
/rename
/renwin
/reseterror
/resetidle
/resolve
/restart
/return
/returnex
/rlevel
/rline
/rmdir
/run
/ruser
/say
/savebuf
/scid
/scon
/scripts
/search
/server
/serverlist
/set
/setconfig
/setlayer
/setoption
/showadiirc
/showmirc
/signal
/slap
/sleep
/sline
/sockaccept
/sockclose
/socklist
/socklisten
/sockmark
/sockopen
/sockpause
/sockread
/sockrename
/sockwrite
/sop
/splay
/statusbar
/switchbar
/tab
/themes
/time
/timestamp
/timer
/tip
/tips
/titlebar
/tokenize
/toolbar
/topic
/topicbox
/treebar
/ulist
/usernick
/txt2bin
/unban
/unignore
/unload
/unnotify
/unset
/unsetall
/update
/uwho
/var
/vars
/viewlog
/voice
/vol
/wdown
/while
/window
/wjump
/wnext
/wpause
/wplay
/wprev
/write
/writeini
/wsearch
/wseekf
/wseekr
/wselect
/wstop
/wup

System information Commands

Output from these are set in Options -> Sysinfo and are merely convenient aliases.

/sysinfo
/gfxinfo
/cpuinfo
/meminfo
/diskinfo
/audioinfo
/uptime
/bw

Missing Commands

/aop
/avoice
/creq
/dccserver
/dqwindow
/firewall
/flood
/flush
/fsend
/fserve
/ghide
/gload
/gopts
/gplay
/gpoint
/gqreq
/groups
/gshow
/gsize
/gstop
/gtalk
/gunload
/ial
/ialclear
/links
/localinfo
/log
/pdcc
/play
/playctrl
/pop
/protect
/proxy
/pvoice
/qme
/qmsg
/save
/saveini
/sockudp
/sound
/speak
/sreq
/strip
/tnick
/tray
/updatenl
/url
/vcadd
/vcmd
/vcrem
/winhelp

Evaluate identifiers from Editbox

Typing a command in the Editbox with double slashes// will evaluate $identifiers in the line before running it.
E.g //echo -ag My nick is $me

You can also tabcomplete identifiers manually using $me<tab>.

Creating a new command

You can create a new command by opening the menu Tools -> Edit Aliases.

The format for the command is <command> <script to execute>.

Example

; Creates a new command '/p' which will evaluate and then execute the script '/part $chan'.
/p /part $chan

You can also add a command from the script editor, the syntax there is alias <command> <script to execute>

Example

; Creates a new command '/p' which will evaluate and then execute the script '/part $chan'.
; Same as previous example.
alias p /part $chan

If you want to use scripts with multiple lines, you can enclose them with {} brackets in both Edit Aliases and Script Editor.

Example

; Edit Aliases
/p {
  /echo -ag I am parting $chan
  /part $chan
}

; Script editor
alias p {
  /echo -ag I am parting $chan
  /part $chan
}

Almost all built-in commands can be overridden to execute your own script.

Example

; Create your own /part command
alias part {
  /echo -ag I am parting $chan
  raw PART $chan
}

; Create your own /part command, but execute the built-in /part command after executing your own script.
alias part {
  /echo -ag I am parting $chan

  ; Execute the built-in part command
  !part $chan
}

A command can also be called as a $identifier.

Example

; Create a command.
alias mycommand {
  echo -ag I was called as a $iif($isid,identifier,command)
}

; Call the command as identifier.
//noop $mycommand

; Call the command as a command.
/mycommand

Updated by Per Amundsen about 9 years ago · 125 revisions

Also available in: PDF HTML TXT