we should probably add this as a ( or some ) methods
ie.hWnd
ie.pid
ie.kill
----- Original Message -----
From: Chris McMahon <[EMAIL PROTECTED]>
Date: Monday, November 7, 2005 1:17 pm
Subject: [Wtr-general] Code to really really really kill IE
> Thanks Paul, I put it together in an easy example. This is tested
> and works:
>
> require 'win32ole'
> require 'watir' # the controller
> include Watir
> require 'Win32API'
>
> @ie = IE.new
> hWnd = @ie.ie.hWnd
> pid=" " * 32
> thread= Win32API.new("user32", "GetWindowThreadProcessId", 'IP',
> 'I').Call(hWnd,pid)
> fixnum_pid = pid.unpack("L")[0]
> puts fixnum_pid
> Process.kill( 9 , fixnum_pid)
>
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general