Results 1 to 2 of 2

Thread: (kind of complicated)

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2000
    Location
    Faraway from Osama bin Laden <--- Loser
    Posts
    42
    Can I search a webpage through my browser? For example, I want my program to login into a webpage and return into a text file the amount of new messages I have. (I basically need it to post into my text file a specific line of information from the html) I really don't want to go into sockets right now. Is there an easy way to do this? Please help

  2. #2
    Guest
    Read the WebBrowser and then search through each word using this code.

    Code:
    Private Sub Command1_Click()
        
        Dim vArray As Variant
        Dim iArray As Integer
        Dim sArray As String
        Dim MyString As String
    
        MyString = WebBrowser1.Document.documentElement.innerHTML
    
        vArray = Split(MyString, " ")
    
        For iArray = 0 to UBound(vArray)
            sArray = vArray(iArray)
            If sArray = "404" Then Msgbox "Document not found": Exit For
        Next iArray
    
    End Sub
    Don't know if this'll work, but it should.

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