Solved

IE functions

Posted on 2000-03-20
5
131 Views
Last Modified: 2011-09-20
This Q is about two functions I need with IE:

1. How to open page in a new window always? (ShellExecute opens the page in an existing window, if any).

2.How to get whether a URL is open in IE?
0
Comment
Question by:duke_n
  • 3
  • 2
5 Comments
 
LVL 4

Accepted Solution

by:
Romi Kuntsman earned 25 total points
ID: 2830802
Hi, here's the answers to your questions:

1. To open a page in a new window every time, run "C:\IEPath\IEXPLORE.EXE page-address". It's usually "C:\Program Files\Internet Explorer\IEXPLORE.EXE page-address", where page-address is ofcourse whatever URL you want to open in a new window.
I don't really know how to use ShellExecute, but it's basicly adding the "IEXPLORE.EXE" (including path) before the URL, and executing.
* This method is a bit slow, because a new intance of IE is opened, but it will do the job, and also if IE crashes, one window doesn't drag the others!

2. A URL is always open in IE! That can be an empty page ("about:blank"), an error message (that's also a page!), or a normal URL address.
0
 
LVL 1

Author Comment

by:duke_n
ID: 2832663
No, I mean, how to know if MY URL is open in IE?
0
 
LVL 1

Author Comment

by:duke_n
ID: 2832756
About the first one: I tried it and it really works!!!
The problem with my way was that I executed the actual URL, instead of passing it as a parameter and executing iexplore.exe(BTW: path is not obligatory).
0
 
LVL 4

Expert Comment

by:Romi Kuntsman
ID: 2837819
I thought that the path is obligatory, because it doesn't appear in the environment variables. BTW, ".exe" isn't obligatory either - Just run "IEXPLORE url".

Sorry, but I still don't know how to know whather YOUR url is open in IE. What do you need it for anyway?
0
 
LVL 1

Author Comment

by:duke_n
ID: 2838339
To automate some processes.
Well, it isn't THAT important.

Anyway, I'll probably write this function "by hand".

Thank for your answer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now