Results 1 to 10 of 10

Thread: Halo2 Stats

  1. #1

    Thread Starter
    Addicted Member Psychotic's Avatar
    Join Date
    May 2004
    Posts
    164

    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?
    -Psychotic-

  2. #2
    Addicted Member kill_bill_gates's Avatar
    Join Date
    Oct 2004
    Posts
    222

    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:
    1. Dim SourceCode As String
    2. 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!! =-

  3. #3

    Thread Starter
    Addicted Member Psychotic's Avatar
    Join Date
    May 2004
    Posts
    164

    Re: Halo2 Stats

    Ok how would I go about letting the user log in through my program and not having to view the site?
    -Psychotic-

  4. #4
    Addicted Member kill_bill_gates's Avatar
    Join Date
    Oct 2004
    Posts
    222

    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:
    1. Dim Source As String, Username As String, Password As String
    2. Private Sub Command1_Click()
    3. Username= Text1.Text
    4. Password= Text2.Text
    5. Source=Inet1.OpenURL("http://www.bungie.net/stats/whatever.aspx?username=" & chr(34) & Username & chr(34) & "&password=" & chr(34) & Password & chr(34) )
    6. 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!! =-

  5. #5
    Addicted Member kill_bill_gates's Avatar
    Join Date
    Oct 2004
    Posts
    222

    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!! =-

  6. #6

    Thread Starter
    Addicted Member Psychotic's Avatar
    Join Date
    May 2004
    Posts
    164

    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?
    -Psychotic-

  7. #7
    Addicted Member kill_bill_gates's Avatar
    Join Date
    Oct 2004
    Posts
    222

    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!! =-

  8. #8

    Thread Starter
    Addicted Member Psychotic's Avatar
    Join Date
    May 2004
    Posts
    164

    Re: Halo2 Stats

    yes it is
    -Psychotic-

  9. #9
    Addicted Member kill_bill_gates's Avatar
    Join Date
    Oct 2004
    Posts
    222

    Re: Halo2 Stats

    i didn't quite get the question but i think u can do omething like:
    VB Code:
    1. Private Sub Command1_Click()
    2. 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))
    3. End Sub

    and here is the function i mentioned:
    VB Code:
    1. Private Function Between(Begining As String, Ending As String, TextToLookIn As String) As String
    2. Dim Be As String, En As String, TTLI As String
    3. Be = Begining
    4. En = Ending
    5. TTLI = TextToLookIn
    6. TTLI = Right(TTLI, Len(TTLI) - (InStr(1, TTLI, Be) + Len(Be) - 1))
    7. Between = Left(TTLI, InStr(1, TTLI, En) - 1)
    8. 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!! =-

  10. #10
    Addicted Member kill_bill_gates's Avatar
    Join Date
    Oct 2004
    Posts
    222

    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
  •  



Click Here to Expand Forum to Full Width