From WikiChip
Editing mirc/commands/scid
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
The '''/scid command''' can change the connection associated with the current script. When a command is not specified, mIRC changes the connection of the current script to the connection associated with the given Connecion ID. The rest of the code will continue to execute on that connection. When a command is specified, mIRC will execute the command on the connection specified by the Connection ID or the connections based on the switches provided. Any active connection changes are restored upon returning to the calling routine. A command can be executed on all or some of the connections depending on their types using the -a or -at<Type> switches. | The '''/scid command''' can change the connection associated with the current script. When a command is not specified, mIRC changes the connection of the current script to the connection associated with the given Connecion ID. The rest of the code will continue to execute on that connection. When a command is specified, mIRC will execute the command on the connection specified by the Connection ID or the connections based on the switches provided. Any active connection changes are restored upon returning to the calling routine. A command can be executed on all or some of the connections depending on their types using the -a or -at<Type> switches. | ||
Line 13: | Line 12: | ||
== Synopsis == | == Synopsis == | ||
− | /scid - | + | /scid <-r|Nth> |
+ | /scid <Connection ID> [command] | ||
+ | /scid -r [command] | ||
+ | /scid -a [command] | ||
+ | /scid -at<type> [command] | ||
+ | /scid -s [Nth] | ||
== Switches == | == Switches == | ||
− | * '''-r''' - Resets the connection back to what it original was | + | * '''-r''' - Resets the connection id back to what it original was (before any /scon/scid calls) |
− | * '''-s''' - Prints the current connection ID | + | * '''-s''' - Prints the current connection ID. (Or changes to the Nth connection and prints its ID.) |
* '''-a''' - Perform on all connections. | * '''-a''' - Perform on all connections. | ||
− | * '''- | + | * '''-at<type>''' - Perform on all the connections of a specific type. |
== Parameters == | == Parameters == | ||
− | * '''< | + | * '''<Nth>''' - The Nth connection. |
− | * '''<type>''' - The connection type, used with | + | * '''<type>''' - The connection type, only used with -at switchs. |
== Example == | == Example == | ||
− | A simple example of using / | + | A simple example of using /scif to send a command to all connected connections. |
<syntaxhighlight lang="mIRC">/* | <syntaxhighlight lang="mIRC">/* | ||
Line 42: | Line 46: | ||
} | } | ||
; all active connections | ; all active connections | ||
− | + | scid -at1 amsg $1- | |
− | scid -at1 amsg | ||
}</syntaxhighlight> | }</syntaxhighlight> | ||
Line 61: | Line 64: | ||
; print channels | ; print channels | ||
− | + | scon -r echo -s Network: $network Channels: %chans | |
− | scon -r echo -s | ||
; next connection | ; next connection | ||
Line 70: | Line 72: | ||
== Compatibility == | == Compatibility == | ||
− | + | Added: mIRC v6.0 | |
Line 80: | Line 82: | ||
* {{mIRC|$scon}} | * {{mIRC|$scon}} | ||
* {{mIRC|$scid}} | * {{mIRC|$scid}} | ||
− | * {{mIRC|/ | + | * {{mIRC|/scid}} |
{{mIRC command list}} | {{mIRC command list}} | ||
− | [[Category: | + | [[Category:MIRC commands]] |