Results 1 to 2 of 2

Thread: [RESOLVED] How can i grab a value out of a textbox on a website

  1. #1

    Thread Starter
    Fanatic Member newprogram's Avatar
    Join Date
    Apr 2006
    Location
    in your basement
    Posts
    769

    Resolved [RESOLVED] How can i grab a value out of a textbox on a website

    Ok I can use this to input a value in a text box ona website
    f Code:
    1. Private Sub Command1_Click()
    2.  Dim HTMLI As HTMLInputElement
    3.      Set HTML = WebBrowser1.Document
    4.      Debug.Print HTML.documentElement.innerText
    5.          For Each HTMLI In HTML.getElementsByTagName("input")
    6.         If HTMLI.Name = "video_link" Then
    7.                 HTMLI.Value = Text1.Text
    8. End If
    9. Next
    10. End Sub

    but I need to grab the what in the textbox named "video_link" on a website and put it in text1, how would do that?
    Live life to the fullest!!

  2. #2

    Thread Starter
    Fanatic Member newprogram's Avatar
    Join Date
    Apr 2006
    Location
    in your basement
    Posts
    769

    Re: How can i grab a value out of a textbox on a website

    i found it I just changed this "HTMLI.Value = Text1.Text" to this "Text1.Text = HTMLI.Value "
    Live life to the fullest!!

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