Well i took Bradley's wrapper and added a Gaia auth to it so we would save us a lot of time, but I need help
so far I added this :I know that I don't know what i'm doing much, but It actually worked, I just writeCode:Public Sub GaiaL() If (Post("http://www.gaiaonline.com/auth/login", "username=" + Textbox1.Text + "&password=" + TextBox2.Text + "&token=" & Between([Get]("http://www.gaiaonline.com/auth/login"), "token"" value=""", """") & "&chap=" & Between([Get]("http://www.gaiaonline.com/auth/login"), "chap"" value=""", """"), "http://www.gaiaonline.com/").IndexOf("Logout") > -1) Then MessageBox.Show("Logged in") Else MessageBox.Show("Failed") End If End Sub Public Function Gaialogin(ByVal Gaiagetcode As String) As Stream GaiaL() End Functionin my button and it actually worked, but as you know , the textbox1.text and textbox2.text isn't a good one cause it will change depending on the programmer's habits or way of doing this, so i need a way to declare that to change the textbox1.text into the user's textbox name and maybe what the messagebox should say or a laber and also, change if the user wants to use the if statement with a textbox to give results or a label or something else, and ALSO a way to add lines to the if statement like if loggin is successful then form2.show()Code:Wrapper.Gaia()
I know that I've been asking a lot of stuff in programming , Thanks for reading my long request lol.
and sorry for making you read these useless lines
Results 1 to 4 of 4
Thread: Getting into wrappers ;P
- 27 Feb. 2012 04:25pm #1
Getting into wrappers ;P
- 27 Feb. 2012 10:32pm #2
You've got to start using variables. You should also probably write the login as a function, and pass the username and password through to the function as parameters.
- 27 Feb. 2012 11:20pm #3
- 28 Feb. 2012 12:43am #4