>I'm using VFP 7.0
>
>In a prg/method():
>1. How would I go about determining if Internet Explorer is installed on a client's computer?
>2. How can I determine what browser windows are open on the client's screen.
>Specifically, in my prg/method() I click on a link and even though there is no target associated with the link it still opens another browser window. I need to be able to get access to that window and close it. And since it would open the client's default browser (which may not be IE) would that make a difference?
>
>TIA
I dont have the exact source code, but this is one possible solution.
Make sure the page has a unique title. Launch the URL.
FindWindow by Title and get the handle.
Send WM_CLOSE to the window using the handle.
psuedocode
LaunchURL "myURL"
HANDLE myHandle = FindowWindowByTitle("TITLE OF MY URL")
SendMessage myHandle,WM_CLOSE,0,0
Hope this helps.
Brian Seekford
Seekford Solutions, Inc.http://www.SeekfordSolutions.comInternet ActiveX Controls and .NET Class Libraries.
SMTP/S FTP POP3/S HTTP/S SNTP MIME PING WHOIS TRACEROUTE NNTP DNS MX
Base64, UUEncode, yEnc, MD5, SHA1, URL, Quoted-Printable.
Resizer and Tooltips
Email Verification and more. Check us out!