Enetering Text to Website text box

Hi,

I am trying to think up or find some code to be able to go to any website and locate a box where text can be entered, enter it, and then click the button to enter the text.

I also need to be able to cycle through browser tabs. So this is the code that I have for navigating to google. Please take a look if you don't mind at the commented area and see if you can help. I really appreciate it.

Best,

Brad


void main()
{

system("start /max /wait http://www.google.com");
system("start /max /wait http://www.google.com");
system("start /max /wait http://www.google.com");

// Here is where I need code to enter text into the search box
// Then I need to click the button so that it gets the search.
// Then I need to make it go to the next tab and make another search.
// When I am done with the third search, I need to go back to the
// First page and do it again.

cout << " Presse enter to end the session.";

cin.get();

}
1.
locate a box


So not a specific website...

because that would be VERY hard to do.
2.
1
2
3
system("start /max /wait http://www.google.com");
system("start /max /wait http://www.google.com");
system("start /max /wait http://www.google.com");

3.
Also "system()" anything is generally not good practice...
4.
void main()
main() must return and int.
and last, but not least 5.
please use codetags...
Last edited on
Topic archived. No new replies allowed.