Difference between revisions of "Event LoggedOn"
(→Example) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 08:20, 1 December 2017
The Event_LoggedOn scripting event occurs after the bot has completed logging on, after telling Battle.net to join its home channel. The bot should not receive the Event_ChannelJoin() events until after this one, though. This event will also fire after a script reload.
Contents
History
The Event_LoggedOn() event was added in StealthBot version 2.4.
Syntax
Sub Event_LoggedOn(Username, Product) ' ... End Sub
Arguments
- Username is a string containing the bot's username. This is not affected by naming conventions.
- Product is the reversed four-character product code for the game the bot is currently using.
Example
Sub Event_LoggedOn(Username, Product) AddChat vbGreen, StringFormat("You are logged on using {0} under the name {1}.", Product, Username) End Sub