Solved

IE functions

Posted on 2000-03-20
5
130 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

21 Experts available now in Live!

Get 1:1 Help Now