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:
00805782
Views:
29
>>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.

My problem is that I don't launch the browser myself, it's a link in a web document. The link gives me no clue as to the title or url that it's going to launch. I just observe that it launches a new browser session. As far as I am concerned the url that it launches is random.
Bill Morris
Previous
Reply
Map
View

Click here to load this message in the networking platform