How to auto put string into edit control and press button on web page?
-
I use CWebBrowser2 to open web page:
CWebBrowser2 m_webBrow2;
m_webBrow2.Navigate("http://www.google.com",NULL,NULL,NULL,NULL);When web page has been opend, I can put "my search" into google's search edit control by keyboard and press search button by mouse. But, how to do these by C++ code? Is CWebBrowser2 have member can do this?
-
I use CWebBrowser2 to open web page:
CWebBrowser2 m_webBrow2;
m_webBrow2.Navigate("http://www.google.com",NULL,NULL,NULL,NULL);When web page has been opend, I can put "my search" into google's search edit control by keyboard and press search button by mouse. But, how to do these by C++ code? Is CWebBrowser2 have member can do this?
hanlei0000000009 wrote:
m_webBrow2.Navigate("http://www.google.com",NULL,NULL,NULL,NULL);
Directly use a search query string. Modify navigation string to include the search term too! Click on this link and see what happens, and the same you can do with the navigate function! http://www.google.co.in/search?q=CodeProject+Nibu+Babu+Thomas[^] ;)
Nibu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com
modified on Tuesday, June 17, 2008 11:24 PM
-
hanlei0000000009 wrote:
m_webBrow2.Navigate("http://www.google.com",NULL,NULL,NULL,NULL);
Directly use a search query string. Modify navigation string to include the search term too! Click on this link and see what happens, and the same you can do with the navigate function! http://www.google.co.in/search?q=CodeProject+Nibu+Babu+Thomas[^] ;)
Nibu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com
modified on Tuesday, June 17, 2008 11:24 PM
thanks. But, google.com only a sample. If web page is an other and if after press a button web page not change to another page? So, I cannot work on all web page by this way.
-
I use CWebBrowser2 to open web page:
CWebBrowser2 m_webBrow2;
m_webBrow2.Navigate("http://www.google.com",NULL,NULL,NULL,NULL);When web page has been opend, I can put "my search" into google's search edit control by keyboard and press search button by mouse. But, how to do these by C++ code? Is CWebBrowser2 have member can do this?
good question, i'm trying this to for a while but I haven't found anything, do you?