Good evening all.
I found this (example) code which should access Wikipedia in Internet Explorer), put some data in a box and press the search button. All works well until it tries to press the "Go" button. I suspect this may be old code and the button is no longer called "Go" but "searchButton".
Anyway, two problems; if I leave it at "Go", I get an error: Run-time error '424', Object required. I thought, ah, I can cope with this, and edited it to "searchButton". This stops the error message but doesn't input the search term, it goes to the Search page as if I have cleared the search term (Document Object Model) ... so that's the second problem.
Note: it requires references to Microsoft HTML Object Library and Microsoft Internet Controls.
I would be grateful if someone could help me make this example work so that I can then adapt it to do other things. Alternatively, if you can provide code that does the same thing but in a different way, that would make me very happy too. Or, even better, a solution that isn't dependent on IE at all, but can use the default browser ... but I guess that could be asking a lot.
Thanks in advance, TMS
![]()
Please Login or Register to view this content.
There are several functions to support this worked example:
![]()
Please Login or Register to view this content.
Bookmarks