# Method to check contents of a window

**URL:** <https://www.ruby-forum.com/t/method-to-check-contents-of-a-window/96202>\
**Category:** Ruby\
**Created:** [June 27, 2006, 7:56am UTC](https://www.ruby-forum.com/t/method-to-check-contents-of-a-window/96202 "2006-06-27T07:56:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arvindhr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@arvindhr](https://www.ruby-forum.com/u/arvindhr)\
**Post date:** [June 27, 2006, 7:56am UTC](https://www.ruby-forum.com/t/method-to-check-contents-of-a-window/96202/1 "2006-06-27T07:56:27Z")

</div>

Hi All,

I am using Win32OLE to use sendkeys method in ruby to automate a desktop  
application. I want to use condition to check the contents of a page.  
Can anyone please help mew to find a method in ruby to get the contents  
of the particular window?

Is there any method to check out if the key has pressed or not?

Thanks

Arvind
