MyChannel

From StealthBot Wiki
Revision as of 08:05, 28 November 2009 by Ribose (talk | contribs) (Created page with 'The myChannel property is available through the Script Support Class. ==Development== <!-- unknown- does someone know? --> ==Documentation== '// will contain the bot's…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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