Inet control

Discussion in 'Code Snippets and Tutorials' started by Billy, Apr 28, 2007.

  1. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    whats the difference between an inet control and a http wrapper?
     
  2. Snowman

    Snowman Level IV

    Joined:
    Apr 9, 2007
    Messages:
    825
    Likes Received:
    0
    HttpWrapper uses winsock and is faster than Inet. Inet is a different ocx which can do some of the same things as winsock but is slower.
     
  3. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    ok, this is a little different, but i dont want to be spamming the board with topics. how do i get an image from the internet and have it displayed in a picture box with a http wrapper?
     
  4. ricky92

    ricky92 Administrator
    Staff Member

    Joined:
    Nov 10, 2006
    Messages:
    1,866
    Likes Received:
    67
    Use the "GET" function of the wrapper, strip the headers, put the code in a file named image.jpg, and load the image in the picturebox!!! If you want some more info, contact me on MSN!!! ;)
     
  5. the_skip

    the_skip Level IV

    Joined:
    Dec 25, 2006
    Messages:
    2,354
    Likes Received:
    1
    Location:
    Indiana
    inet is often used for trainers to get the flash
     
  6. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    ok, now im actually having trouble with the inet control, (lol, yes i know its been like 2 weeks) anyways, whenever i use it, it always only gets half of the html, and i dont know how to fix it :? my code is this
    Code (Text):
    1. strhtml = inet1.openwebpage(www.neopets.com/)
    and that gives me only a little bit of the html code
     
  7. tac123

    tac123 Level I

    Joined:
    Apr 29, 2007
    Messages:
    124
    Likes Received:
    0
    For ricky and billybob, do the wrappers you use in VB6 only download the HTML code from a page you visit, or do they get the images / flash banners when you visit as well?
     
  8. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    Im not sure why you want to use Inet.... But ok try this code instead:

    Code (Text):
    1.  
    2.  
    3. strHTML = Inet1.OpenURL("google.com")
    4. Text1.Text = strHTML
    5.  
    6.  
    for that you need a textbox (named text1, obviously 0_x) and Inet control names Inet1. That will put the source of "google.com" into the text box ;)
     
  9. ricky92

    ricky92 Administrator
    Staff Member

    Joined:
    Nov 10, 2006
    Messages:
    1,866
    Likes Received:
    67
    They only download the source of the page...

    Btw (if I remember well) the iNet.OpenURL() can't be used with neopets... :(
     
  10. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    i did that, and it only gave me half of the page still, even with google...
     
  11. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    It might be your computer because inet works for me? I think 0_x

    and

    OpenURL works for mee too .
     
  12. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    you know, i wouldnt be surprised if that were true, visual studio hates me... i cant install vb.net, i cant compile with visual c++.... so much for my rs alert :cry:
     
  13. Pankirk

    Pankirk Level III

    Joined:
    Nov 12, 2006
    Messages:
    652
    Likes Received:
    28
    Location:
    America
    errr. That sucks ;). Try doing it with HTTP wrapper. Or a wrapper of some sort. Then see if that gets you the full source. If it doesnt then its definely your computer.
     
  14. ricky92

    ricky92 Administrator
    Staff Member

    Joined:
    Nov 10, 2006
    Messages:
    1,866
    Likes Received:
    67
    you can try using "Microsoft internet control"... I know it takes longer(it downloads images) but it would look legit!!!
     
  15. tac123

    tac123 Level I

    Joined:
    Apr 29, 2007
    Messages:
    124
    Likes Received:
    0
    Man ricky. I send you one PM and then you start posting my ideas all over the boards. ;)
     
  16. ricky92

    ricky92 Administrator
    Staff Member

    Joined:
    Nov 10, 2006
    Messages:
    1,866
    Likes Received:
    67
    XD I already had that idea when I was trying to make a trainer, but I didn't know how to read the source of the page!!! Now I can do that (but I keep that a secret!!! :lol: ), but I don't wanna make trainers... they're boring!!! XD
     
  17. Billy

    Billy Level IV

    Joined:
    Feb 21, 2007
    Messages:
    1,856
    Likes Received:
    39
    i can get the wrapper working, but i heard that the inet control doesnt get signed off if i have the browser open...
     
  18. tac123

    tac123 Level I

    Joined:
    Apr 29, 2007
    Messages:
    124
    Likes Received:
    0
    I don't know why people need trainers. You can just reverse engineer the Flash files they provide for the games to submit any arbitrary score you like. I'm surprised that I haven't seen more fake scores being posted. I guess the people that are doing it are keeping their programs private.