My program, written in VB6, needs to find and highlight the location of some text on a webpage which is in a webbrowser component in my program.
I have been using the {ctrl + F} (i.e. ' SendKeys "^f" ') find function. This works in isolation - but only when I tab the focus to the command button and press [Enter] (i.e. the alt + shortcut doesn't work, nor does clicking on the button with mouse). However, when I add in the code for subsequent steps in the program, this find function doesn't work at all. I have tried packaging the part that does work as a separate .exe and .dll but neither work.
I have 2 questions:
1) Does anyone know of any other way to search a webpage (not the HTML source code, the page as it appears in the browser), other than the in-built windows find/replace function?
2) If it is necessary to use the Windows in-built help function, is there any way to access this directly from my VB code, perhaps through an API call, rather than through {ctrl + F} or [Edit]-[Find]? Any sample code which shows this?
Thanks,
DeGeneral
I have been using the {ctrl + F} (i.e. ' SendKeys "^f" ') find function. This works in isolation - but only when I tab the focus to the command button and press [Enter] (i.e. the alt + shortcut doesn't work, nor does clicking on the button with mouse). However, when I add in the code for subsequent steps in the program, this find function doesn't work at all. I have tried packaging the part that does work as a separate .exe and .dll but neither work.
I have 2 questions:
1) Does anyone know of any other way to search a webpage (not the HTML source code, the page as it appears in the browser), other than the in-built windows find/replace function?
2) If it is necessary to use the Windows in-built help function, is there any way to access this directly from my VB code, perhaps through an API call, rather than through {ctrl + F} or [Edit]-[Find]? Any sample code which shows this?
Thanks,
DeGeneral