Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to download using IE without human interaction?

Status
Not open for further replies.

ctalk

Programmer
Feb 2, 2003
1
US
Dear All,

I need to do a routine work every day: download the newest rosters of several classes from a web site every night to my local machine for data editing. I want to write a script or use some tools to automate this process. Basically, what I want is that, every night at 10:00pm, my PC will

1.automaticlly start Internet Explorer.
2.type in the right URL, and go to the intended website.
3.Log in using a given username/password combination.
4. Choose an item from a drop down list.
5. click "export".
6. Logo out.
7. exit Internet Explorer.

Could some one give me a hint how to do it?

Thank you for your attention.

BinZ
 
Hi Ctalk:

Are you a visual c++ programmer?

I can give you a hint:

Create a program in visual c++ that uses MFC's CHtmlView class, then you can construct a small function like this:

In the OnInitialUpdate function

void CCapturaView::OnInitialUpdate()
{
CHtmlView::OnInitialUpdate();

// TODO: This code navigates to a popular spot on the web.
// change the code to go where you'd like.

Navigate2(_T("}

now that you have the web page in memory, you can do anything you want,

Regards

Ricardo
 
You can also use this function:

HINSTANCE result = ShellExecute(NULL, _T("open"), _T(" NULL,NULL, SW_SHOW);

to open IE (or your default browser). But the rest I am afraid I cannot help you with.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top