|
-
Feb 15th, 2009, 09:47 AM
#1
Thread Starter
New Member
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?
-
Feb 15th, 2009, 09:48 AM
#2
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.
-
Feb 15th, 2009, 10:16 AM
#3
Thread Starter
New Member
Re: webbrowser getting random value
Yes, Its the addition question.
So you won't help me just because of that?
-
Feb 15th, 2009, 11:51 AM
#4
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!
-
Feb 16th, 2009, 02:12 AM
#5
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|