Refreshing in C++

This is a discussion on Refreshing in C++ within the C++ Programming forums, part of the General Programming Boards category; Hey there, I am new to C++ and have found a project that I'd like to tackle. I want to ...

  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    22

    Refreshing in C++

    Hey there,

    I am new to C++ and have found a project that I'd like to tackle. I want to make a script that automatically refreshes a page constantly and as fast as possible. I only know how to do console C++ so I'm not sure if this is possible. When I say page, I mean a webpage. Any ideas?

    Thanks,
    CougarElite

  2. #2
    fuh
    fuh is offline
    Attack hamster fuh's Avatar
    Join Date
    Dec 2002
    Posts
    176
    I'm not really sure but I think you'd have to obtain a handle to your browser and send it a refresh message. You'll probably have to get an open source browser written in C++ and modify the code. It's not something to do when you're pretty new to C++. But I'm not that experienced, so one of the better coders may have to answer your question.
    Stupid things pop singers say

    "I get to go to lots of overseas places, like Canada."
    - Britney Spears

    "I love what you've done with the place!"
    -Jessica Simpson upon meeting the Secretary of Interior during tour of the White House

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    Well, you could also obtain the IWebBrowser interface of a running IE instance and ask it to refresh.

    Believe me, you don't want to go there.

    C++ has programs, anyway, not scripts. It's the wrong tool for what you want.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    C++ beginner
    Join Date
    Jun 2004
    Posts
    66
    Why not just send the page a bunch of packets..? If you really want to kill the page.. you could probably come up with a more creative idea...
    Oh my goodness.

  5. #5
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    So, what possible legitimate use could this have?

  6. #6
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Sounds more like a stats booster, not a DOS thing.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  7. #7
    fuh
    fuh is offline
    Attack hamster fuh's Avatar
    Join Date
    Dec 2002
    Posts
    176
    Quote Originally Posted by Govtcheez
    So, what possible legitimate use could this have?
    You have to know when they cancel work because of snow!
    Stupid things pop singers say

    "I get to go to lots of overseas places, like Canada."
    - Britney Spears

    "I love what you've done with the place!"
    -Jessica Simpson upon meeting the Secretary of Interior during tour of the White House

  8. #8
    Banned
    Join Date
    Oct 2004
    Posts
    250
    You could just stimulate a key press (F5) using keybd_event().

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Gamma rays - need refreshing for exam
    By Akkernight in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-03-2009, 02:36 PM
  2. refreshing line?
    By alexnb185 in forum C Programming
    Replies: 11
    Last Post: 08-17-2007, 02:52 PM
  3. Refreshing Window
    By mdoland in forum Windows Programming
    Replies: 2
    Last Post: 11-09-2005, 10:56 AM
  4. Refreshing a Text file in GUI application?
    By solomonHk in forum C Programming
    Replies: 2
    Last Post: 01-04-2005, 02:02 PM
  5. refreshing windows...
    By chiqui in forum Windows Programming
    Replies: 3
    Last Post: 06-01-2002, 10:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21