From WikiChip
Difference between revisions of "mirc/commands/action"
< mirc‎ | commands

Line 51: Line 51:
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
 
<!-- Commands -->
 
<!-- Commands -->
<div style="background-color: rgba(0,0,0,.06); padding: 7px;">
+
<div style="background-color: rgba(255,255,255,.36); padding: 7px;">
 
<table cellspacing="0" cellpadding="7px;" style="display: block;">
 
<table cellspacing="0" cellpadding="7px;" style="display: block;">
  
<tr style="background-color: rgba(255,255,255,.47)">
+
<tr>
 
<td style="padding-right: 10px; vertical-align: top;">
 
<td style="padding-right: 10px; vertical-align: top;">
 
<span style="display: block; font-weight: bold;">A</span>
 
<span style="display: block; font-weight: bold;">A</span>
Line 100: Line 100:
 
</tr>
 
</tr>
  
<tr style="background-color: rgba(255,255,255,.57)">
+
<tr>
 
<td style="vertical-align: top;"><span style="display: block; font-weight: bold;">O</span>
 
<td style="vertical-align: top;"><span style="display: block; font-weight: bold;">O</span>
 
[[/onotice command - mIRC|/onotice]], [[/omsg command - mIRC|/omsg]]
 
[[/onotice command - mIRC|/onotice]], [[/omsg command - mIRC|/omsg]]

Revision as of 18:51, 26 June 2014

The action command is used to send an action message to the active window. Since it does not take a target parameter, that command is the kind of command that is mostly used manually, it cannot be used within events that are triggered by anything other than the user directly from a given channel. For example: it can be used within the on input or hotlink events but not within the on text. To be able to generate an action message from any event to any window, consider using the /describe command instead.


An action message is simply a regular PRIVMSG that follows a client-dependent format - usually different to that of a normal message. The raw format for an action message is:

//raw PRIVMSG $active $+(:, $chr(1), ACTION) [message] $+ $chr(1)

Where [message] is the actual message to be displayed.

Synopsis

/action <message>

Switches

Parameters

  • <message> - The message to be sent to the channel.

Example

;Send an action message to the active window
/action brings the cookie jar

Compatibility

Added: mIRC v2.1a

Added On: 28/02/1995


Note: Individual switches were not taken into consideration.

See also

mIRC Commands Reference List:

A /abook, /action, /add, /ajinvite, /alias, /aline, /ame, /amsg, /anick, /aop, /auser, /auto, /autojoin, /avoice, /away

B /background, /ban, /bcopy, /beep, /bindip, /bread, /break, /breplace, /best, /btrunc, /bunset, /bwrite

C /channel, /clear, /clearall, /clearial, /cline, /clipboard, /close, /closechats, /closedccs, /closefserves, /closemsg, /cnick, /color, /colour, /comclose, /comlist, /commands, /comopen, /comreg, /continue, /copy, /creq, /ctcp, /ctcpreply, /ctcps

D /dcc, /dccserver, /dde, /ddeserver, /debug, /dec, /describe, /dialog, /did, /didtok, /disable, /disconnect, /dlevel, /dline, /dll, /dns, /dqwindow, /drawcopy, /drawdot, /drawfill, /drawline, /drawpic, /drawrect, /drawreplace, /drawrot, /drawsave, /drawscroll, /drawtext

E /ebeeps, /echo, /editbox, /else, /elseif, /emailaddr, /enable, /events, /exit

F /fclose, /filter, /findtext, /finger, /firewall, /flash, /flist, /flood, /flush, /flushini, /fnord, /font, /fopen, /fseek, /fsend, /fserve, /fullname, /fwrite

G /ghide, /gload, /gmove, /gopts, /goto, /gplay, /gpoint, /gqreq, /groups, /gshow, /gsize, /gstop, /gtalk, /gunload, /guser

H /hadd, /halt, /haltdef, /hdec, /hdel, /help, /hfree, /hinc, /hload, /hmake, /hotlink, /hop, /hsave

I /ial, /ialclear, /ialmark, /identd, /if, /ignore, /iline, /inc, /iuser

L /leave, /linesep, /links, /list, /load, /loadbuf, /localinfo, /log, /logview

M /maxdepth, /mdi, /me, /menubar, /mkdir, /mnick, /mode, /msg

N /noop, /notify

O

/onotice, /omsg

P /part, /partall, /pdcc, /perform, /play, /playctrl, /pop, /protect, /proxy, /pvoice

Q /qme, /qmsg, /query, /queryrn, /quit, /quote

R

/raw, /registration, /reload, /remini, /remote, /remove, /rename, /renwin, /reseterror, /resetidle, /return, /returnex, /rlevel, /rline, /rmdir, /run, /ruser

S /save, /savebuf, /saveini, /say, /scid, /scon, /server, /set, /setlayer, /showmirc, /signal, /sline, /sockaccept, /sockclose, /socklist, /socklisten, /sockmark, /sockopen, /sockpause, /sockread, /sockrename, /sockudp, /sockwrite, /sound, /speak, /splay, /sreq, /strip, /switchbar

T /timer, /timestamp, /tip, /tips, /titlebar, /tnick, /tokenize, /toolbar, /tray, /treebar

U

/ulist, /unload, /unset, /unsetall, /updatenl, /url, /username, /uwho

V /var, /vcadd, /vcmd, /vcrem, /vol

W /wavplay, /while, /window, /winhelp, /write, /writeini

X

/xyzzy