Results 1 to 7 of 7

Thread: auto poster source code

  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.

  2. #2
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    well

    try putting

    [VBCode] at the start of your code

    and

    [/VBCode] at the end - it will make your syntax get highlighted.


    *Edit - Changed what Si suggested*
    Last edited by vbNeo; Oct 27th, 2003 at 10:57 AM.
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: well



    what vbNeo meant was:

    try putting [VBCode] at the start of your code and [/VBCode] at the end - it will make your syntax get highlighted.


    (neo - put [b][/b] inside tags you want to display as text, I used [VBCo[b][/b]de] )

  4. #4
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    Do'H

    Do'H

    Thanks Si! Nice tip =).
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  5. #5
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    i think vb3 removes "dead" tags D:

  6. #6
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    What was the actual thread about again?

  7. #7
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Originally posted by Madboy
    What was the actual thread about again?
    Read the first post


    Has someone helped you? Then you can Rate their helpful post.

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