Results 1 to 5 of 5

Thread: webbrowser getting random value

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2009
    Posts
    10

    webbrowser getting random value

    Okay, so im making a register program for a website
    HTML Code:
    http://sy1.no-ip.biz/register.php
    So far i've managed to make this code:

    HTML Code:
    Public Class Form1
        Dim generator As New Random
        Dim randomValue As Integer
        Dim i As Integer = 0
        Dim a As Double = Val("@")
        Dim com As Double = Val(".com")
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            WebBrowser1.Document.All("name").Focus()
            randomValue = generator.Next(99999, 999999)
            SendKeys.Send(randomValue)
            Timer1.Start()
        End Sub
    
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            If i = 0 Then
                WebBrowser1.Document.All("pass").Focus()
                randomValue = generator.Next(99999, 999999)
                SendKeys.Send(randomValue)
                i = 1
            ElseIf i = 1 Then
                WebBrowser1.Document.All("vpass").Focus()
                SendKeys.Send(randomValue)
                i = 2
            ElseIf i = 2 Then
                WebBrowser1.Document.All("email").Focus()
                randomValue = generator.Next(99999, 999999)
                SendKeys.Send(randomValue)
                SendKeys.Send("@")
                SendKeys.Send(randomValue)
                SendKeys.Send(".com")
                i = 3
            ElseIf i = 3 Then
                WebBrowser1.Document.All("dob").Focus()
                randomValue = generator.Next(1970, 2000)
                SendKeys.Send(randomValue)
                SendKeys.Send("-")
                randomValue = generator.Next(10, 12)
                SendKeys.Send(randomValue)
                SendKeys.Send("-")
                randomValue = generator.Next(10, 27)
                SendKeys.Send(randomValue)
                i = 4
            End If
        End Sub
    End Class
    But now i need to make a random value as the same on the webpage, Is that even possible when i don't have the script, but only the webpage?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: webbrowser getting random value

    What part of the web page needs a random value? Is it that 'addition' question in there?

    If yes, then that's been designed to not allow automated requests such as the one you're doing.

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2009
    Posts
    10

    Re: webbrowser getting random value

    Yes, Its the addition question.
    So you won't help me just because of that?

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: webbrowser getting random value

    When you get the HTML of the page back, you'll need to parse it and look for the 'question', parse that, get the two numbers out, add them, and then enter that as the value for the textbox. That's as far as I'll go and besides, if you read their rules

    No glitching, hacking or in anyway abusing our game to benefit yourself.
    Respect their wants!

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2009
    Posts
    10

    Re: webbrowser getting random value

    Im not hacking, just because im using there register as a example.

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