CaptureIE$

Capture function, Web function.

The CaptureIE$ function must not be used anymore since WinTask version 2.5. It is kept only for compatibility with previous versions.

In order to capture some text within a Web page, use now CaptureHTML or CaptureTableHTML functions. Below is an example :

Example

 

dim tabcell$(100)
StartBrowser("IE", "www.google.com")
UsePage("Google")
  ClickHTMLElement("A[INNERTEXT= 'News']")
UsePage("Google News")
'Capture the HTML Table at the top left which column title is >Top
ret = CaptureTableHTML("TABLE[CONTENT='>Top']", "R1C2:R17C2", tabcell$())'tabcell$(2) contains the first non-empty captured data
CloseWindow("IEXPLORE.EXE|IEFrame|Google News - Microsoft Internet Explorer",1)

'The captured cells are stored in tabcell$

msgbox(tabcell$(2))