Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send Keystrokes to Web Browser
Message
From
27/01/2000 09:00:21
 
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00323453
Message ID:
00323497
Views:
20
>>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
Map
View

Click here to load this message in the networking platform