Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is IE installed? What's Open?
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00805770
Message ID:
00805781
Views:
22
>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.com
Internet 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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform