From: mt_horeb@... (Sloth) Date: 2001-05-30T11:11:24+09:00 Subject: [ruby-talk:16000] Re: Open a Web Browser in Windows "Wayne Blair" wrote in message news:<3jQQ6.35776$v5.3003148@news1.rdc1.ct.home.com>... > "Sloth" wrote in message > news:67abb823.0105290613.37f8679f@posting.google.com... > > Is anyone aware of a way to automatically open and redirect a web > > browser (under Win) using Ruby? In Python, there is a webbrowser() > > method that allows a script to open a browser to a given location. > > > > Thanks in advance! I'm trying to convert my Python code to Ruby just > > as fast as I can!!! > > > > Jeremy. > > Yeah, it's real easy: You can see Microsoft documentation for OLE commands > IWebBrowser2 - I tried quite a few and they all worked. Here's an example > from > the pickaxe book: > > require 'win32ole' > > ie = WIN32OLE.new('InternetExplorer.Application') > ie.visible = true > ie.gohome > > > # to navigate, for example: ie.navigate(url) Cool! It works! Thank you for the help! Jeremy