Solved

IE functions

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 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