Difference between revisions of "MyChannel"

From StealthBot Wiki Backup
Jump to: navigation, search
(Created page with 'The myChannel property is available through the Script Support Class. ==Development== <!-- unknown- does someone know? --> ==Documentation== '// will contain the bot's…')
 
m (1 revision imported)
 
(No difference)

Latest revision as of 08:20, 1 December 2017

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