From: Shusaku Date: 2002-11-17T08:13:10+09:00 Subject: Re: save links On Sat, 16 Nov 2002 18:12:49 +0100 "Basti S" wrote: > Okay I want to save links from an opened Internet Explorer site to a file. > Say you have searched something in google and you want to save all the links > listed on this page to a file. It's pretty like a download manager when you > choose the leech function and it displays you all the links on the page. > Except the fact, that I want to save these links to a file. I thought about > Win32API to solve the problem, but by now I didn't find a solution. Can > anybody help me? How about using win32ole? require 'win32ole' ie = WIN32OLE.new('InternetExplorer.Application') ie.visible = true ie.Navigate('http://www.ruby-lang.org/') while ie.Busy do $stderr.puts "waiting..." end # WIN32OLE_EVENT? ie.Document.links.each { |link| puts link.toString } But, I don't know how to access an already opened browser window. ie = WIN32OLE.connect('InternetExplorer.Application') ie.LocationUrl #=> "file:///C:/MyDrive/MyScripts" # It's my script's working folder, not web page! -- Shusaku