MyChannel

From StealthBot Wiki Backup
(Redirected from Mychannel)
Jump to: navigation, search

The myChannel property is available through the Script Support Class.

Development

Documentation

'// will contain the bot's current channel at runtime.
Public myChannel As String

Summary

The myChannel property will contain the current Battle.net channel name for the bot.

Usage

Use myChannel as if it was any VBScript variable. Optionally prefix it with SSC..

Value

The value of myChannel is stored anytime the bot's current channel changes. It is an empty string when not in a channel.

Alternative

In the new script system it may be preferred to use Channel.Name to get the same information.

Examples

Do something if you are in the void.

If myChannel = "The Void" Then
    ' do something
End If

See also