Difference between revisions of "BotClose function"

From StealthBot Wiki
Jump to: navigation, search
(Created page with 'The BotClose() <code>SSC</code> subroutine disconnects and closes the bot. ==Development== The BotClose function was added to StealthBot in vers…')
 
m (See also)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
The [[BotClose]]() <code>[[Script Support Class|SSC]]</code> subroutine disconnects and closes the bot.
+
The [[BotClose]]() [[Script Support Class]] [[subroutine]] closes the bot.
  
 
==Development==
 
==Development==
Line 16: Line 16:
 
This subroutine will disconnect the bot and close the program.
 
This subroutine will disconnect the bot and close the program.
  
===Syntax==
+
===Syntax===
 
  BotClose
 
  BotClose
  
===Examples===
+
===Example usage===
 
<ul>
 
<ul>
 
<li>Quit when someone says "Die!".</li>
 
<li>Quit when someone says "Die!".</li>
Line 26: Line 26:
  
 
==See also==
 
==See also==
 +
* [[Disconnect function]]
 +
* [[Connect function]]
 +
* [[IsOnline function]]
 
* [[Script Support Class]]
 
* [[Script Support Class]]
 
* [[Script functions]]
 
* [[Script functions]]
* [[Scripting system]]
+
* [[Script system]]

Latest revision as of 07:52, 21 November 2009

The BotClose() Script Support Class subroutine closes the bot.

Development

The BotClose function was added to StealthBot in version 2.6, as suggested by Imhotep.

Documentation

'// BOTCLOSE
'// Shuts down StealthBot
Public Sub BotClose()
    
    'Call frmChat.Form_Unload(0)
    Unload frmChat
    
End Sub

Summary

This subroutine will disconnect the bot and close the program.

Syntax

BotClose

Example usage

  • Quit when someone says "Die!".
  • If Message = "Die!" Then BotClose
    

See also