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.

Quick Help

1.1k views · started by Skrillex ·
#1
Quick Help
Error 1 'GetStringBetween' is not declared. It may be inaccessible due to its protection level. C:\Users\****\Documents\Visual Studio 2010\Projects\G*****\Form1.vb 16 15
Error 2 'GetStringBetween' is not declared. It may be inaccessible due to its protection level. C:\Users\****\Documents\Visual Studio 2010\Projects\***\Form1.vb 17 17


Using Bradleys wrappers, I am on 2010 Vb.net. Wtf is the problem?
Here is code for login.
Dim strHTML As String
Dim sid As String
Dim Token As String
Dim poststring As String

strHTML = Wrapper.Get("http://www.gaiaonline.com/auth/login/", "http://www.gaiaonline.com/")
strHTML = Replace(strHTML, Chr(34), "'")
sid = GetStringBetween(strHTML, "<input type='hidden' name='sid' value='", "' />")
Token = GetStringBetween(strHTML, "<input type='hidden' name='token' value='", "' />")
poststring = "username=" & TextBox1.Text & "&password=" & TextBox2.Text & "&token=" & token & "&sid=" & sid & "&redirect=http%3A%2F%2Fwww.gaiaonline.com%2F"
strHTML = Wrapper.Post("http://www.gaiaonline.com/auth/login/", poststring, "http://www.gaiaonline.com/auth/login/")
If (InStr(1, strHTML, "?login_success=")) Then
MessageBox.Show("LOGGED IN!")
Else
MessageBox.Show("FAIL")
End If
#2
Moved to programming section.
#3
I got errors too when I used his VB wrapper recently , VB8.
I need a gaia auth for vb and bradleys desn't work :P
#4
It just looks like you haven't declared a GetStringBetween method.
#5
Artificial wrote:
It just looks like you haven't declared a GetStringBetween method.

so i would do. Dim GetStringBetween As String? Cause if thats it. I alreayd did and still gave error.
#6
Haha it's a function, that parses a string looking for a start index, and then locating the end index and getting that substring. Good luck.