How do I post a comment on youtube through a webbrowser in visual basic 6?

Discussion in 'Programming General' started by lukestas, May 10, 2009.

How do I post a comment on youtube through a webbrowser in visual basic 6?
  1. Unread #1 - May 10, 2009 at 9:50 AM
  2. lukestas
    Joined:
    Aug 22, 2008
    Posts:
    846
    Referrals:
    0
    Sythe Gold:
    0

    lukestas Apprentice
    Banned

    How do I post a comment on youtube through a webbrowser in visual basic 6?

    Hello, I need to post a comment on youtube through a webbrowser control on visual basic 6.
    The current code I am using does not work.
    Can someone help me out with this please? it's really confusing. I don't see why it doesn't work.

    Current Code:
    Code:
    Private Sub Command2_Click()
    WebBrowser1.Navigate List1.Text
    WebBrowser1.Document.All ("comment").Value = Text4.Text
    WebBrowser1.Document.All ("add_comment_button").Click
     
  3. Unread #2 - Sep 17, 2009 at 2:39 AM
  4. ipivb
    Joined:
    Sep 17, 2009
    Posts:
    9
    Referrals:
    0
    Sythe Gold:
    0

    ipivb Newcomer

    How do I post a comment on youtube through a webbrowser in visual basic 6?

    hey this is what i wrote up for you works 100%
    Code:
     For Each HTMLele As HtmlElement In WebBrowser1.Document.All
                If HTMLele.Name = "comment" Then
                     HTMLele.SetAttribute("value", "YOUR COMMENT")
                   WebBrowser1.Document.All("add_comment_button").InvokeMember("click")
                  End If
            Next
    
     
< what worng with my script (c) | How do i make a program that would click colors >

Users viewing this thread
1 guest


 
 
Adblock breaks this site