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.

Getting into wrappers ;P

1.1k views · started by Jah ·
#1
Getting into wrappers ;P
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 :
    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 Function[/get][/get]


I know that I don't know what i'm doing much, but It actually worked, I just write
 Wrapper.Gaia()

in 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()

I know that I've been asking a lot of stuff in programming :P, Thanks for reading my long request lol.
and sorry for making you read these useless lines :P
#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.
#3
Artificial wrote:
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.


I do not know how to do that though, I just went all n00Bshit on the Idea an thought I should try :)
So basically I will have to learn about functions, variables and parameters ?
Cause it sounds like what I wanted ^^ .
You are Cool arti, thanks.
#4
Just understood functions.