Solved

Goto a web site

Posted on 2000-04-26
2
198 Views
Last Modified: 2010-04-02
I want to setup a timer. At the exact time, I will open IE or Netscape and goto a web site. After a period, I need close IE or Netscape. It's under Win98 or Unix system.
0
Comment
Question by:JHuang
[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
2 Comments
 
LVL 6

Accepted Solution

by:
DrDelphi earned 5 total points
ID: 2755442
I have no idea how you do it under UNIX, but in windows, you could do:

Open:
ShellExecute(hWnd,"open","http://www.someurl.com",NULL,NULL,SW_SHOWNORMAL);

Close:

Send a WM_CLOSE message to the return of FindWindow("IEFRAME",NULL);
(this is IE, I don't know Netscape's class name).

Good luck!!

BTW, I have a Delphi component that can give you the clas name for Netscape's browser if you can use it. It is on my website:

www.drdelphi.com


0
 

Author Comment

by:JHuang
ID: 2790501
Thank you!
0

Featured Post

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
c++ how to tell if the progra is ctl or mfc atl ect 6 110
VS2015 compilation and missing DLLs 9 190
Path to  STL Map header file 1 91
Winapi.Windows.hpp problem 7 44
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

734 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