The myUsername property is available through the Script Support Class.
'// 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
The myUsername property will contain the current Battle.net username the bot is going by.
Use myUsername as if it was any VBScript variable. Optionally prefix it with
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</code> (that changes when settings are changed, this is what the username is currently). It is an empty string when not online.
Do something if your username contains a "#" in it.
If InStr(myUsername, "#") > 0 Then ' do something End If