...

View Full Version : How can I refresh the default browser page?



CodeBeast
10-26-2011, 01:23 PM
Hello - I made a simply code:



#include <fstream>
#include <iostream>
#include <conio.h>
#include <windows.h>

using namespace std;

int main (){
char ch;
char buffer[256];

MessageBox(NULL,"WELCOME \n press ok to continue","WELCOME",MB_OK);

ifstream urls ("urls.txt");
while (! urls.eof() ){
urls.getline (buffer,100);
{
ShellExecute(NULL, "open", buffer,
NULL, NULL, SW_SHOWNORMAL);
}
}
cout<<"\n\n\n\n\n\n\nURLs Loaded successfully!\n";
cout<<"-------------------------\n\n\n";
getch();
return 0;
}

Ok this is loading a bunch of pages,wich are saved in a file called "urls.txt"

My question is - If there is just 1 page loaded,how can I refresh it every 5 seconds?

Any help is high appreciated!
I'm just going crazy with this :D



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum