Results 1 to 7 of 7

Thread: auto poster source code

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2003
    Location
    england
    Posts
    161

    auto poster source code

    heres some code i wrote.... it works for vbulettin forums with the quick post box enabled, and with a bit of tweaking, will work for any forum.

    VB Code:
    1. Sub timeout(S%)
    2. Dim Start
    3. Start = now
    4. While DateDiff("s", Start, now) <= S
    5. DoEvents
    6. Wend
    7. End Sub
    8. Private Sub CommandButton1_Click()
    9. Dim i As Integer
    10. Dim j As Integer
    11. Dim k As Integer
    12. WebBrowser1.Navigate (TextBox2.Text)
    13. j = TextBox1.Text
    14. k = TextBox3.Text
    15. For i = k To j
    16. ListBox1.AddItem (i)
    17. Next i
    18. On Error Resume Next
    19. Do Until ListBox1.ListCount = 0
    20. timeout (4)
    21. On Error Resume Next
    22. WebBrowser1.Document.all("message").Value = ListBox1.List(0)
    23. On Error Resume Next
    24. WebBrowser1.Document.all("SUBMIT").Click
    25. On Error Resume Next
    26. ListBox1.RemoveItem (0)
    27. On Error Resume Next
    28. timeout (31)
    29. On Error Resume Next
    30. Loop
    31. If ListBox1.ListCount = 0 Then
    32. MsgBox ("done")
    33. End
    34. End If
    35. End Sub
    Last edited by crptcblade; Oct 27th, 2003 at 11:12 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width