🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1047

Re: How to click button on Web Page ?

#1047
From: Sergey Muschin
Date: Thu, 15 Sep 2005 14:20
21 lines
1612 bytes
This is what i did and it seems to be working....

LPDISPATCH pBtn = NULL;

    TVariant  vAddress = WideString("Logon"), vIndex = 0;
    HRESULT hr = el->item(vAddress, vIndex, &pBtn);
    if (FAILED(hr))    {
      ShowMessage("item(vAddress, vIndex, &pBtn) FAILED");
      return;
    }

    TComInterface<IHTMLElement> iElmn;
    hr = pBtn->QueryInterface(IID_IHTMLElement,(LPVOID*)&iElmn);
    if (FAILED(hr))    {
      ShowMessage("pBtn->QueryInterface(IID_IHTMLElement,(LPVOID*)&iBtn) 
FAILED");
      return;
    }
    iElmn->click();

 pBtn->Release();
Technical Details
Message-ID: <432982cb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43285392$1@newsgroups.borland.com> <43288e83$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,20ab0c6ae146033c
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Sergey Muschin" <senimu@hotmail.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <43285392$1@newsgroups.borland.com> <43288e83$1@newsgroups.borland.com>
Subject: Re: How to click button on Web Page ?
Date: Thu, 15 Sep 2005 08:20:06 -0600
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 204.110.225.254
Message-ID: <432982cb$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1126793931 204.110.225.254 (15 Sep 2005 07:18:51 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail