Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

IE functions

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

839 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