Solved

Goto a web site

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now