|
-
Feb 19th, 2005, 03:14 PM
#1
Thread Starter
Addicted Member
Halo2 Stats
I want to make a program that can log into bungie.net and displays your stats and what not. Would it be possible to sign into a .net site and get information from it? How would I go about start it?
-
Feb 19th, 2005, 04:14 PM
#2
Addicted Member
Re: Halo2 Stats
i think that if u know where to look specifically then you can use MSINET.OCX to look through source code.
u can say something like
VB Code:
Dim SourceCode As String
SourceCode=Inet1.OpenURL("http://www.bungie.net")
Note: You need to select "Microsoft Internet Transfer Control" from the components tab.
"Quis custodiet ipsos custodes?"
Juvenal
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
-=Joey Jordison R0CKS!! =-
-
Feb 19th, 2005, 04:22 PM
#3
Thread Starter
Addicted Member
Re: Halo2 Stats
Ok how would I go about letting the user log in through my program and not having to view the site?
-
Feb 19th, 2005, 04:29 PM
#4
Addicted Member
Re: Halo2 Stats
well i think u can say(if u know where to login exactly- didn't look carefully and i couldn't find where to login) :
VB Code:
Dim Source As String, Username As String, Password As String
Private Sub Command1_Click()
Username= Text1.Text
Password= Text2.Text
Source=Inet1.OpenURL("http://www.bungie.net/stats/whatever.aspx?username=" & chr(34) & Username & chr(34) & "&password=" & chr(34) & Password & chr(34) )
End Sub
then u'll have the source code in the string variable called Source.Then u can use Mid and Instr functions to find specific info.
i'm not quite sure if it works, but it worths giving a try.
"Quis custodiet ipsos custodes?"
Juvenal
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
-=Joey Jordison R0CKS!! =-
-
Feb 19th, 2005, 04:32 PM
#5
Addicted Member
Re: Halo2 Stats
oh, and OpenURL doesn't display the page itself it just opens the source code.
And if u need help finding the specific part, i've got a function that reads the given part between two string values, i can send it here.
"Quis custodiet ipsos custodes?"
Juvenal
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
-=Joey Jordison R0CKS!! =-
-
Feb 19th, 2005, 04:49 PM
#6
Thread Starter
Addicted Member
Re: Halo2 Stats
kewl thanks, it seems to have logged me in. I do have another issue tho lol. to get to the stats the user needs to click a button on the site...how could i do that here? if I opened that other page with the inet1 would it stay logged in?
-
Feb 19th, 2005, 04:52 PM
#7
Addicted Member
Re: Halo2 Stats
is it that ".NET" sign in button?
"Quis custodiet ipsos custodes?"
Juvenal
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
-=Joey Jordison R0CKS!! =-
-
Feb 19th, 2005, 04:57 PM
#8
Thread Starter
Addicted Member
-
Feb 19th, 2005, 05:11 PM
#9
Addicted Member
Re: Halo2 Stats
i didn't quite get the question but i think u can do omething like:
VB Code:
Private Sub Command1_Click()
Text1.Text = Inet1.OpenURL("http://login.passport.net/uilogin.srf?id=42917&login=" & Chr(34) & Text2.Text & Chr(34) & "&passwd=" & Chr(34) & Text2.Text & Chr(34))
End Sub
and here is the function i mentioned:
VB Code:
Private Function Between(Begining As String, Ending As String, TextToLookIn As String) As String
Dim Be As String, En As String, TTLI As String
Be = Begining
En = Ending
TTLI = TextToLookIn
TTLI = Right(TTLI, Len(TTLI) - (InStr(1, TTLI, Be) + Len(Be) - 1))
Between = Left(TTLI, InStr(1, TTLI, En) - 1)
End Function
when u use the first code above, it redirects u to Halo page automatically so u dont need to stay connected.
"Quis custodiet ipsos custodes?"
Juvenal
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
-=Joey Jordison R0CKS!! =-
-
Feb 19th, 2005, 05:14 PM
#10
Addicted Member
Re: Halo2 Stats
if u need any further help please mail me, i've gotta go to bed now it's GMT+2 here which makes 00.14
my mail: [email protected]
"Quis custodiet ipsos custodes?"
Juvenal
Mete the Hun wanted to live in peace with the Chinese. So he gave the Chinese Emperor his favorite horse, best swords in his armory, and lots of other cool stuff. But then the Chinese Emperor asked for one thing. A useless land through the north. It was a small, useless, unproductive, uninhabited piece of land. But Mete the Hun's answer was certain:
I gave you horses, weapons and much more which belonged to me. But the lands are not mine, it's my nation's and I'm ready to fight, kill and die for just an inch my country
-=Joey Jordison R0CKS!! =-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|