Question Captcha Help

Syzis

Member
Joined
Apr 23, 2011
Messages
10
Programming Experience
3-5
Hello,

Im new here but I've read some threads here and I can't get answer for what I want.

I have project that Login to a website but need to display a captcha to login.
The problem is that the captcha isn't it a static image.

It have a dynamic link ( "code.php" ) that shows an image with the captcha.
But when navigating in Webbrowser the capctha in picturebox is different.

Any solution?


One more thing.
I have some links that imported to a listbox.
I want to navigate them all within X seconds.

Lets say I want it to navigate each link 60 seconds.

Something like:


PHP:
Expand Collapse Copy
For each links in listbox1.items 
Webbrowser1.navigate(links) 
Next


It would work?
One more problem is related to timers to work it each 60 seconds.
Any ideas ?

Thanks in advance
smile.png
 
VB.NET:
Expand Collapse Copy
    Public index As Integer = 0
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Timer1.Interval = 5000
        Timer1.Start()
        With WebBrowser1
            .Navigate("http://www.google.com")
            .Refresh()
        End With
    End Sub
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        index += 1
        With WebBrowser1
            .Navigate(GetWebPage(index))
            .Refresh()
        End With
    End Sub
    Private Function GetWebPage(ByVal index As Integer) As String
        Dim res As Integer = Math.DivRem(index, 2, res)
        Select Case res
            Case 0
                Return "http://www.google.com"
            Case 1
                Return "http://www.vbdotnetforums.com"
            Case Else
                'not really needed
                Return "http://www.yahoo.com"
        End Select
    End Function

This is assuming you are usig the webbrowser control and i set my interval to 5 seconds rather than 60 for test purposes.
 
Thanks. This works perfect.
The only problem now is to get the captcha. I can't get it work in anyway. I only get a blank image with the captcha numbers =(
 
Back
Top