From WikiChip
Editing mirc/commands/scon

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|/scon Command}}
 
 
The '''/scon 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 Nth connection. The rest of the code will continue to execute on that connection. When a command is specified, mIRC will execute the command on the specified connection or 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 '''/scon 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 Nth connection. The rest of the code will continue to execute on that connection. When a command is specified, mIRC will execute the command on the specified connection or 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 ==
  /scon -rat<type>s [Nth] [command]
+
  /scon <-r|Nth>
 +
/scon <Nth> [command]
 +
/scon -r [command]
 +
/scon -a [command]
 +
/scon -at<type> [command]
 +
/scon -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 number or the new connection number)
+
* '''-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 ==
  
 
* '''<Nth>''' - The Nth connection.
 
* '''<Nth>''' - The Nth connection.
* '''<type>''' - The connection type, only used with the t switch.
+
* '''<type>''' - The connection type, only used with -at switchs.
  
 
== Example ==
 
== Example ==
Line 42: Line 46:
 
   }
 
   }
 
   ; all active connections
 
   ; all active connections
   scon -at1 amsg $unsafe($1-)
+
   scon -at1 amsg $1-
 
}</syntaxhighlight>
 
}</syntaxhighlight>
  
Line 60: Line 64:
  
 
     ; print channels
 
     ; print channels
     scon -r echo -s $unsafe(Network: $network Channels: %chans)
+
     scon -r echo -s Network: $network Channels: %chans
  
 
     ; next connection
 
     ; next connection
Line 68: Line 72:
  
 
== Compatibility ==
 
== Compatibility ==
{{mIRC compatibility|6.0}}
+
Added: mIRC v6.0
  
  
Line 81: Line 85:
 
{{mIRC command list}}
 
{{mIRC command list}}
  
[[Category:mIRC commands|scon command - mIRC]]
+
[[Category:MIRC commands]]

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)