[Wtr-general] Can I attach to an open Excel session?

Lou Wilson forum-watir-users at openqa.org
Mon Dec 11 02:40:08 EST 2006


Ethan wrote:
>Here, Google is your friend. "ruby excel" yields:
>http://wiki.rubygarden.org/Ruby/page/show/ScriptingExcel
>Check out the section called "Some further stuff that I learned so
far". It illustrates the method used to do exactly what you want to
do, which is attach to a running excel session.
>
>For future reference, the win32ole section of the documentation for
the ruby standard library is located here:
>http://www.ruby-doc.org/stdlib/libdoc/win32ole/rdoc/index.html

>Ethan 

Ethan, I found that page to be totally excellent, and built up quite a bit of code over the last year based on it.  The "further stuff" section mainly talks about Win32Ole, and while it's pretty good stuff, I prefer to use Watir for that functionality. 

What I was looking for is if anyone has built up anything built up on the Win32API functionality.  I am particularly interested in how to start implementing stuff like:
FindWindow
FindWindowEx
SendMessage
... and the other Windows API things that one finds in user32.dll.  Building up that set of functions, one can start testing full Windows applications and not just ones that we can reach with Win32Ole.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=5687&messageID=15963#15963


More information about the Wtr-general mailing list