From WikiChip
Difference between revisions of "mirc/commands/msg"
m (→Switches: /msg and /query use the same code.) |
|||
(15 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{mirc title|/msg Command}} | ||
The '''/msg command''' sends a message to a specific channel or person. Many networks support multi-target messages - mIRC will not display the message in all the targets like it would with individual messages. | The '''/msg command''' sends a message to a specific channel or person. Many networks support multi-target messages - mIRC will not display the message in all the targets like it would with individual messages. | ||
Line 5: | Line 6: | ||
== Switches == | == Switches == | ||
− | + | * '''-s''' - activate/show the window | |
+ | * '''-x''' - maximize the window | ||
+ | * '''-n''' - minimize the window | ||
+ | * '''-d''' - open new window as desktop | ||
== Parameters == | == Parameters == | ||
− | * '''<nickname/channel>''' - The target channel or person for the message | + | * '''<nickname/channel>''' - The target channel or person for the message, use the form "=<nickname>" to reference a dcc window, =$nick is accepted. |
* '''<message>''' - The message to be sent | * '''<message>''' - The message to be sent | ||
− | |||
− | |||
== Example == | == Example == | ||
Line 32: | Line 34: | ||
=== Example 3 === | === Example 3 === | ||
− | Using the equals sign to send 'SomeUser' a message via DCC/FSERVE Chat | + | Using the equals sign to send ''SomeUser'' a message via DCC/FSERVE Chat |
<source lang="mIRC">//msg =SomeUser Hey there, this is going to your open DCC/FSERVE Chat window, instead!</source> | <source lang="mIRC">//msg =SomeUser Hey there, this is going to your open DCC/FSERVE Chat window, instead!</source> | ||
== Compatibility == | == Compatibility == | ||
− | + | {{mIRC compatibility|2.1a}} | |
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
* [[List of commands - mIRC|List of commands]] | * [[List of commands - mIRC|List of commands]] | ||
* [[List of identifiers - mIRC|List of identifiers]] | * [[List of identifiers - mIRC|List of identifiers]] | ||
− | * | + | * {{mIRC|/ame}} |
− | * | + | * {{mIRC|/amsg}} |
− | * | + | * {{mIRC|/describe}} |
− | * | + | * {{mIRC|/me}} |
− | * | + | * {{mIRC|/qme}} |
− | * | + | * {{mIRC|/qmsg}} |
− | * | + | * {{mIRC|/say}} |
+ | {{mIRC command list}} | ||
− | [[Category:mIRC commands]] | + | [[Category:mIRC commands|msg command - mIRC]] |
Latest revision as of 02:59, 5 August 2021
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The /msg command sends a message to a specific channel or person. Many networks support multi-target messages - mIRC will not display the message in all the targets like it would with individual messages.
Contents
Synopsis[edit]
/msg <nickname/channel> <message>
Switches[edit]
- -s - activate/show the window
- -x - maximize the window
- -n - minimize the window
- -d - open new window as desktop
Parameters[edit]
- <nickname/channel> - The target channel or person for the message, use the form "=<nickname>" to reference a dcc window, =$nick is accepted.
- <message> - The message to be sent
Example[edit]
Example 1[edit]
on *:text:!moo:#:{ ; Message the channel moos back msg $chan moos back }
Example 2[edit]
/* Example 2 */ on ^*:open:?:{ if ($away) { msg $nick I am currently away ( $+ $awaymsg $+ ), please leave me a memo: /ms send $me <memo> } halt }
Example 3[edit]
Using the equals sign to send SomeUser a message via DCC/FSERVE Chat
//msg =SomeUser Hey there, this is going to your open DCC/FSERVE Chat window, instead!
Compatibility[edit]
Added: mIRC v2.1a
Added on: 28 Feb 1995
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also[edit]
mIRC commands list