A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

[Vb8] How to make a Simple Gaia Auth

1.4k views · started by Datsik ·
#1
[Vb8] How to make a Simple Gaia Auth
Well I'm rebuilding my towns client and I'd figure to share my auth code,


What you Need:

2 text boxes.
1 button
1 web browser


Once you got a web browser, (Visible or non)
Goto Properties and set url to: Http://www.gaiaonline.com/auth/login


Double click the Button and input the following code:

    web.Document.GetElementById("username").SetAttribute("value", Textbox1.Text)
WebBrowser1.Document.GetElementById("password").SetAttribute("value", Textbox2.Text)
WebBrowser1.Document.GetElementById("memberloginForm").InvokeMember("submit")
If Textbox1.Text = "" Then MsgBox("You must enter an ID.", MsgBoxStyle.Information, "Error!")
If Textbox2.Text = "" Then MsgBox("You must enter a password.", MsgBoxStyle.Information, "Error!")


UPDATED "Web" is actually Webbrowser1

Debug and test (:


Please rep if used
#2
Error 1 'Document' is not a member of 'Web'. C:\Users\crystal\AppData\Local\Temporary Projects\WindowsApplication1\Form1.vb 9 9 WindowsApplication1

Error 2 'Document' is not a member of 'Web'. C:\Users\crystal\AppData\Local\Temporary Projects\WindowsApplication1\Form1.vb 10 9 WindowsApplication1

Error 3 'Document' is not a member of 'Web'. C:\Users\crystal\AppData\Local\Temporary Projects\WindowsApplication1\Form1.vb 11 9 WindowsApplication1


Any help :EmoteFace:
#3
linzblue wrote:
Error 1 'Document' is not a member of 'Web'. C:\Users\crystal\AppData\Local\Temporary Projects\WindowsApplication1\Form1.vb 9 9 WindowsApplication1

Error 2 'Document' is not a member of 'Web'. C:\Users\crystal\AppData\Local\Temporary Projects\WindowsApplication1\Form1.vb 10 9 WindowsApplication1

Error 3 'Document' is not a member of 'Web'. C:\Users\crystal\AppData\Local\Temporary Projects\WindowsApplication1\Form1.vb 11 9 WindowsApplication1


Any help :EmoteFace:





My bad i forgot to change web's name to default "Webbrowser1"
#4
Haha its all good :)