General information
Category:
Internet applications
>>Need help in a small internet application.
>>
>>I start Web Browser(IE 5) from FoxPro with the specified URL + parameters. And while still under Foxpro control I want to save current HTML. I was trying to send keystrokes to 'file menu' + 'save as' but those keystrokes would be affective only for Foxpro not for Explorer.
>>
>>How to send keystrokes into another application. Help!
>
>Better would be to use the InternetExplorer.Application object to directly control the IE browser. This could be done with direct COM automation much more easily that my sending keystroikes. the detailed docuemntation in the MSDN is IEXPLORE.CHM in the MSDN docs.
>
>The Windows Script Host's Wscript.Shell has a SendKeys method, which can be used to help here, especially in conjuction with the Wscript.Shell's AppActivate method. See my FAQ entry $598 to see where to find details on the WSH and scripting - there are good examples of AppActivate and SendKeys in the current WSH documentation in the MSDN, including a simple example using NotePad with APpActivate and SendKeys.
Thanks, I'll try it.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only