Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Goto a web site

Posted on 2000-04-26
2
Medium Priority
?
200 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 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
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 viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

719 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