say i have 3 websites in my program and i want to open first website then after 10 seconds second website will be opened automatically.also after 10 seconds third web open automatically.
assume that is my code.
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <iostream>
#include <windows.h>
#include <time.h> or
#include <ctime>
usingnamespace std;
int main(){
//what should i put here to open next function automatically after 10seconds?
ShellExecute(0, 0, L"www.hrhre.com", 0, 0 , SW_SHOW );
//what should
ShellExecute(0, 0, L"www.hrhre.com", 0, 0 , SW_SHOW );
//what should
ShellExecute(0, 0, L"www.hrhre.com", 0, 0 , SW_SHOW );
return 0;}
#include <iostream>
#include <windows.h>
usingnamespace std;
int main(){
ShellExecute(0, 0, L"www.hrhre.com", 0, 0 , SW_SHOW );//this function to open the site
//is there a function to close the site.
return 0;}
Do you mean close the window? Or close the tab? Or kill the web browser process? What web browsers do you want your program to support? Please elaborate.
i don't know to use SendMessage or FindWindow.
what do you mean with " what message closes a tab in chrome"you mean "ctr+w"!!!??
please explain more,by giving example to use SendMessage or FindWindow.