[Help] READING a website

Posts 114 of 14 · Page 1 of 1
[Help] READING a website
Like to start basic, I want to make a thing like Nexon Account generator, Or something, that reads the stuff on the web, You can fill it in on your forums, and it's there, Pretty much an account Generator.

Any help? Thanks
What do you mean by reads?
Ask Iamazn he made a pretty successful account generator
1. This isnt basic, making a spambot is basic
2. The reality is no ones going to spend 30 minutes making a TUT just for you
So after that you still wanna make an account generator?
It won't take 30 mins more like 5 if they can actually type -.-
To make a shitty nexon account generator use sendkeys.send and webbrowser.focus.


To make a good one learn webbrowser documenting.
There you go:

Code:
WebBrowser1.Document.All.Item("firstname").SetAttribute("value", txtFirstname.Text)
Quote Originally Posted by Erinador View Post
There you go:

Code:
WebBrowser1.Document.All.Item("firstname").SetAttribute("value", txtFirstname.Text)
That won't always work


The right way....
Code:
WebBrowser1.Document.GetElementById("ID").GetAttribute("value")
Code:
WebBrowser1.Document.GetElementByName("Name").GetAttribute("value")
Click with Invoke

Code:
WebBrowser1.Document.GetElementById("ID").InvokeMember("click") :


You need to know the elementID , you can get this by right clicking and viewing source, I use Chome, which has a view element feature.
Quote Originally Posted by NextGen1 View Post
That won't always work


The right way....
Code:
WebBrowser1.Document.GetElementById("ID").GetAttribute("value")
Code:
WebBrowser1.Document.GetElementByName("Name").GetAttribute("value")
Click with Invoke

Code:
WebBrowser1.Document.GetElementById("ID").InvokeMember("click") :


You need to know the elementID , you can get this by right clicking and viewing source, I use Chome, which has a view element feature.
Give me 1 situation where it wont work and I'll agree ..

AND

This only gets the value of ID and doesn't set it ...
Code:
WebBrowser1.Document.GetElementById("ID").GetAttribute("value")
The right way:
Code:
WebBrowser1.Document.GetElementById("ID").SetAttribute("value", variable)
Quote Originally Posted by Spookerzz View Post
It won't take 30 mins more like 5 if they can actually type -.-
If hes gonna understand what hes doing and not just C&P it will take 25-30 min for a decent TUT
Quote Originally Posted by NextGen1 View Post
That won't always work


The right way....
Code:
WebBrowser1.Document.GetElementById("ID").GetAttribute("value")
Code:
WebBrowser1.Document.GetElementByName("Name").GetAttribute("value")
Click with Invoke

Code:
WebBrowser1.Document.GetElementById("ID").InvokeMember("click") :


You need to know the elementID , you can get this by right clicking and viewing source, I use Chome, which has a view element feature.
haha lol or you can just use firebug it's the best and it's a firefox addon and just use webrequest it's easier
Quote Originally Posted by CodeHPro View Post
haha lol or you can just use firebug it's the best and it's a firefox addon and just use webrequest it's easier
lol hahahahahahaha ...... what..?


This is the Visual Basic Coding Section, What good is a firefox addon...

(other then in use of retrieving the elementID which can be accomplished by viewing the source)

Firebug is similar to Google Chomes Development tools

and has no baring in the OP's request

so lol haha or you cannot quote me , laugh ane be soooo wrong....
Give me 1 situation where it wont work and I'll agree ..
Anywhere "firstname" doesn't exist as a ElementID or Name
Your assuming that to be true , which is not always the case,

In nexon it would be "tbID" (for login user name)

I wasn't referring to the code part, just the "ID" part , I was letting the OP know it won't be as easy to copy and paste, You will need to get the element ID using Chrome's inspect element , View source or getelementbyid which comes in handy when you need to invoke a submit that uses java and doesn't have a ID or name, (it spits back a number in debug)

This is how You use the code (as well)

Code:
WebBrowser.Document.GetElementById("tbID").InnerText = texbox1.text
all 3 methods work as long as you know the ID

And in some case GetElementByID works best,(if you do not know the ID) like on a certain major corps website in which by signing up you needed to fill in email address and submit to sign up and receive a coupon , ( I create a generator using catch alls) The ID was not displayed, Using GetelementbyID and a breakpoint I was able to learn the ID of the java button was 13.

Not that any of this matters. Fact is, Learn all aspects of Web Documenting (Like Lolland said)

Each has it's pro's and cons...

That's my point.
You might also use -

Webbrowser1.document.getelementbyid("id").innertex t = Textbox1.text

Damn you nextgen =/ you already posted this >_<
Quote Originally Posted by Blubb1337 View Post
You might also use -

Webbrowser1.document.getelementbyid("id").innertex t = Textbox1.text

Damn you nextgen =/ you already posted this >_<
Sorry,

It is my preferred method
Posts 114 of 14 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?