Thread: Reading a Webpage

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    18

    Reading a Webpage

    Hey guys. I'm trying to write a program for an online game I play (Turn based). Anyway, the point is that I need a program that can visit the specific pages of the game and read the source code of the page. After that I can work out how to manipulate the source to do what I need, but for now, I'm just wondering if C has an equivelant to VB6's SendKeys, and how it'd be used. Thanks in advance

    EDIT: I'm just looking for an FAQ page or a tutorial of some sort

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    C has no standard way to read sockets. Take a gander at Beej's guide (your local search engine) for a tutorial on socket programming.


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Nov 2005
    Posts
    18

  4. #4
    Registered User
    Join Date
    Nov 2005
    Posts
    18
    If I can't access a specific page using telnet, can I access it using sockets?

    Perhaps if I asked how this could be done for a Microsoft Word Document it would give me a clearer answer.

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,665
    Or even something as novel as reading all the intro threads of this forum (which is now the networking forum thanks to yours truly).

  6. #6
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    >> If I can't access a specific page using telnet

    Why can you not do this?

    >> I'm just wondering if C has an equivelant to VB6's SendKeys

    A quick glance at the VB6's SendKeys documentation makes me think of the API function SendInput(..)

  7. #7
    Registered User
    Join Date
    Nov 2005
    Posts
    18
    Sorry to sound like an idiot, but that site's very hard to understand. I can see it as being useful for checking up on things you've already learnt, but I can't make head or tail of what it's talking about. A google search on SendInput gives me a couple of foreign sites, but nothing I can use.

    Perhaps a minor example, if it's not too much to ask? Say, something that Alt-Tabbed and then typed a letter (So that I'd know how to use single and multiple input types).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 02-02-2009, 07:27 AM
  2. Replies: 2
    Last Post: 01-28-2008, 03:07 AM
  3. Replies: 15
    Last Post: 11-27-2007, 08:47 PM
  4. Reading text from webpage
    By brietje698 in forum C++ Programming
    Replies: 11
    Last Post: 10-10-2007, 02:57 PM
  5. Downloading a webpage onto the disk?
    By Edin in forum Windows Programming
    Replies: 3
    Last Post: 11-23-2004, 01:37 AM