ReloadSettings function
The ReloadSettings function causes the bot to reload its settings from config.ini.
Contents
Development
The ReloadSettings function was added to StealthBot in version 2.4R2.
Documentation
'// RELOADSETTINGS '// Reloads the bot's configuration settings, userlist, safelist, tagban list, and script.txt files - equivalent to '// clicking "Reload Config" under the Settings menu inside the bot. '// @param DoNotLoadFontSettings - when passed a value of 1 the bot will not '// attempt to alter the main richtextbox font settings, which causes its contents to be erased Public Sub ReloadSettings(ByVal DoNotLoadFontSettings As Byte) Call frmChat.ReloadConfig(DoNotLoadFontSettings) End Sub
Summary
This subroutine will reload the bot's settings.
Arguments
- DoNotLoadSettings - Set to 1 (Warning: True will not work) so the font settings will not be reloaded. Any other value, 0, False, or True will reload fonts. When font settings are reloaded, all previous text is set to black. This argument is required.
Syntax
ReloadSettings 0 ReloadSettings 1
Example usage
- Reload on command (requires the creation of such a command using the CreateCommand function):
Sub Event_Command(Cmd) If Cmd.IsValid And Cmd.Name = "reloadscript" Then ReloadScript End If End Sub