Solved

Goto a web site

Posted on 2000-04-26
2
195 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 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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 pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

778 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