Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Goto a web site

Posted on 2000-04-26
2
Medium Priority
?
201 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
2 Comments
 
LVL 6

Accepted Solution

by:
DrDelphi earned 15 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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…
Suggested Courses

886 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