Thanks a lot, that really gave me the right impression. I think i can get it with this information. "Shusaku" <tsyk / yk.rim.or.jp> wrote in message news:20021117072525.CA77.TSYK / yk.rim.or.jp... > > On Sat, 16 Nov 2002 18:12:49 +0100 > "Basti S" <basti.steiner / gmx.de> 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 <tsyk / yk.rim.or.jp> > >