Hey, Able to drag the code up to here. def get_location_on_screen assert_exists rects = ole_object.getClientRects().item x = rects.left y = rects.top width = rects.right - rects.left height = rects.bottom - rects.top puts "BEFORE #{x} #{y} #{width} #{height} " #ClientToWindow call @container.ie._invoke(301, [x, y], [WIN32OLE::VARIANT::VT_BYREF|WIN32OLE::VARIANT::VT_I4, WIN32OLE::VARIANT::VT_BYREF|WIN32OLE::VARIANT::VT_I4]) x = WIN32OLE::ARGV[0] y = WIN32OLE::ARGV[1] puts "AFTER #{x} #{y} #{width} #{height} " end
GetClientRects method returns the valid values. But when I make a call to ClientToWindow call its returning inaccurate values. If possbile somebody look into this code. BTW This function goes in to Element class. Thanks. Bye. _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general