MyUsername
(Redirected from Myusername)
The myUsername property is available through the Script Support Class.
Contents
Development
Documentation
'// will contain the bot's current username at runtime. '// NOTE: This may be different than the bot's config.ini username Public myUsername As String
Summary
The myUsername property will contain the current Battle.net username the bot is going by.
Usage
Use myUsername as if it was any VBScript variable. Optionally prefix it with SSC.
.
Value
The value of myUsername is stored during log on to what Battle.net says the username is. It may be similar or different from <ocde>BotVars.Username (that changes when settings are changed, this is what the username is currently). It is an empty string when not online.
Alternative
In the new script system it may be preferred to use Channel.Self.Name
to get the same information.
Examples
Do something if your username contains a "#" in it.
If InStr(myUsername, "#") > 0 Then ' do something End If