?
Solved

IE functions

Posted on 2000-03-20
5
Medium Priority
?
136 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
[X]
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
  • 3
  • 2
5 Comments
 
LVL 4

Accepted Solution

by:
Romi Kuntsman earned 100 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

771 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