Go Back   Gaming Gutter


» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post Holy fuck shit, SQL...
Today 01:04 AM
Last post by Hodizzle
Today 01:20 AM
2 Replies, 3 Views
Go to first new post GG NIGHT CREW, CHECK IN!
12-15-2008 04:59 AM
by Bunneh
Last post by Unregenerate Passion
Today 01:19 AM
3,918 Replies, 16,488 Views
Go to first new post Do you have the Adam's...
Yesterday 05:50 PM
by oneone
Last post by cookieface
Today 12:37 AM
14 Replies, 75 Views
Go to first new post Good Night Thread
01-11-2007 03:13 AM
By emit
Last post by InSane
Today 12:36 AM
964 Replies, 10,825 Views
Go to first new post Im buying these pets
12-31-2008 12:41 AM
by Kospor
Last post by Kospor
Today 12:34 AM
9 Replies, 86 Views
View Single Post

 
Old 01-21-2008, 04:07 PM   #3 (permalink)
Nub
Underground

Male Nub is offline
 
Nub's Avatar
 
Join Date: Jan 2007
Posts: 139
GPoints: 24
iTrader: 0 / 0%
Nub Is gaining popularity
Rep Power: 7
Quote:
Originally Posted by second2none View Post
Just do a Loop or something.

Private Sub Command1_Click()
Dim OnOff As Boolean
'Make On true and False Off

OnOff = True
Do While OnOff = True
strHTML = wrapper.GetWrapper("URL")
If InStr(1, strHTML, "FOUND POKEMON") Then
CATCHING CODE
ElseIf InStr(1, strHTML, "No More PokeBalls") Then
OnOff = False
End If
Loop

End Sub
Thanks :] I don't get the OnOff bit though, what does that do?

Nvm I get it, lemme try this.

I tried:

Code:
Private Sub cmdLogin_Click()
Dim strHTML As String, OnOff As Boolean

strHTML = Wrapper.PostWrapper("http://srpg.myircshells.com/login.php", "user=" & txtUser.Text & "&pass=" & txtPass.Text)

If InStr(1, strHTML, "failed") Then
lblStatus.Caption = "Bad password."
ElseIf InStr(1, strHTML, "logged") Then
lblStatus.Caption = "Logged In."
Else
lblStatus.Caption = "Unknown Error."
End If

If lblStatus.Caption = "Logged In." Then
strHTML = Wrapper.GetWrapper("http://srpg.myircshells.com/index.php", "http://srpg.myircshells.com/login.php")
End If

strHTML = Wrapper.GetWrapper("http://srpg.myircshells.com/promo.php?action=explore", "http://srpg.myircshells.com/index.php")

OnOff = True
Do While OnOff = True
strHTML = Wrapper.GetWrapper("http://srpg.myircshells.com/promo.php?action=explore")
If InStr(1, strHTML, "You found a") Then
strHTML = Wrapper.GetWrapper("http://srpg.myircshells.com/promo.php?action=catch")
ElseIf InStr(1, strHTML, "You did not find") Then
OnOff = True
End If
Loop

End Sub
and it gets stuck at 'Logged in'. I even tried doing a lblStatus.Text = "Nothing found" or "Pokemon Caught!" to check if it got that far but the label never changed from logged in.

Also, when I x'd out of the 'Run' trial thingy, I got some error about Client Site not available or something, and when I hit debug it takes me to a part of the wrapper's code about 'time'. :/
__________________
Successful Trades: 4 - Legend and Duckii and iOwnurazz and Matt://, no MM :]

Last edited by Tyler; 01-21-2008 at 07:09 PM..
 
 
Powered by vBadvanced CMPS v3.1.0

All times are GMT -7. The time now is 01:20 AM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.19385290 seconds (100.00% PHP - 0% MySQL) with 17 queries