Well i made a basic chat client to connect to battle.net servers. Recently their has been heaps of updates so my bot has been discontinued. But here is the function its pretty basic.

VB Code:
  1. Public Function SendData(Text As String)
  2. Form1.txtsend.Text = Form1.txtsend.Text + 1
  3. 'Basicaly, just adds one digit to the Flood Counter Txt
  4. 'Then sends the actual text through Clean Slate...
  5.  
  6. 'But if the FloodC is >= 1, then it'll wait until it
  7. 'drops back down to 0, before it proceeds to send
  8. 'more data.
  9. If Form1.txtsend.Text >= "1" Then
  10.    Do Until Form1.txtsend.Text = "0"
  11.        DoEvents
  12.    Loop
  13. End If
  14. DoEvents
  15. End Function