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:
{{mirc title|/scid Command}}
+
{{mirc title|/scid Command}}{{mIRC menu}}
 
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 13:
  
 
== Synopsis ==
 
== Synopsis ==
  /scid -rats<type> [Connection ID] [command]
+
  /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 or the new 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.
* '''-t<type>''' - Perform on all the connections of a specific type, can only be used with -a.
+
* '''-at<type>''' - Perform on all the connections of a specific type.
  
 
== Parameters ==
 
== Parameters ==
  
* '''<ID>''' - The connection ID.
+
* '''<Nth>''' - The Nth connection.
* '''<type>''' - The connection type, used with the -t switch.
+
* '''<type>''' - The connection type, only used with -at switchs.
  
 
== Example ==
 
== Example ==
Line 42: Line 47:
 
   }
 
   }
 
   ; all active connections
 
   ; all active connections
  ; if you don't use $unsafe, $1- is evaluated twice, watch out!
+
   scid -at1 amsg $1-
   scid -at1 amsg $unsafe($1-)
 
 
}</syntaxhighlight>
 
}</syntaxhighlight>
  
Line 61: Line 65:
  
 
     ; print channels
 
     ; print channels
    ; again, safer to use $unsafe
+
     scon -r echo -s Network: $network Channels: %chans
     scon -r echo -s $unsafe(Network: $network Channels: %chans)
 
  
 
     ; next connection
 
     ; next connection
Line 80: Line 83:
 
* {{mIRC|$scon}}
 
* {{mIRC|$scon}}
 
* {{mIRC|$scid}}
 
* {{mIRC|$scid}}
* {{mIRC|/scon}}
+
* {{mIRC|/scid}}
 
{{mIRC command list}}
 
{{mIRC command list}}
  
 
[[Category:mIRC commands|scid command - mIRC]]
 
[[Category:mIRC commands|scid command - mIRC]]

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)