WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE with MSIE
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Get Webpage Links


#DefineFunction startMSIE(url)
   msie = ObjectCreate("InternetExplorer.Application")
   msie.addressbar = @TRUE
   msie.statusbar = @TRUE
   msie.menubar = @TRUE
   msie.toolbar = @TRUE
   msie.visible = @TRUE
   msie.navigate(url)
   While msie.busy || msie.readystate <> 4
      TimeDelay(0.5)
   EndWhile
   Return(msie)
#EndFunction

url    = "http://www.google.com"
msie = startMSIE(url)

LinksCollection = msie.document.links
ForEach Link In LinksCollection
   href = link.href
   text = link.innertext
   Pause( href, text)
Next
msie.quit
Exit

Article ID:   W17175
File Created: 2007:07:03:14:28:36
Last Updated: 2007:07:03:14:28:36