From: Dave Burt Date: 2005-08-05T18:51:09+09:00 Subject: Re: Question about WIN32OLE_EVENT. "Michael Kelly" wrote... > So, I'm clear on how to attach to events: > > @ie = WIN32OLE.new( 'InternetExplorer.Application' ) > browserEvents = WIN32OLE_EVENT.new( @ie, 'DWebBrowserEvents2' ) > browserEvents.on_event { |*args| eventHandler( *args ) } > > But how does one detach from events? # Replace the current event handler with an empty one: browserEvents.on_event {} > I'm working on a little utility that will generate Watir scripts using > IE automation. ... Let us know - that sounds really useful! Cheers, Dave