# How to find the hwnd

**URL:** <https://www.ruby-forum.com/t/how-to-find-the-hwnd/134264>\
**Category:** Ruby\
**Created:** [April 9, 2008, 11:46am UTC](https://www.ruby-forum.com/t/how-to-find-the-hwnd/134264 "2008-04-09T11:46:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranjal\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Post date:** [April 9, 2008, 11:46am UTC](https://www.ruby-forum.com/t/how-to-find-the-hwnd/134264/1 "2008-04-09T11:46:26Z")

</div>

Hi All  
I am trying to get the hwnd of the code. this code is of the pop up  
window. When I click on this link a new window opens up. I want to  
calculate the hwnd of the new pop up window so that I can perform  
operations on it. But I dnt know how to get it ☹

the html source is as follows

Add  
Comment

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![pranjal\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Post date:** [April 11, 2008, 2:37am UTC](https://www.ruby-forum.com/t/how-to-find-the-hwnd/134264/2 "2008-04-11T02:37:32Z")

</div>

Hi,

On Wed, Apr 9, 2008 at 7:46 PM, Pranjal J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I am trying to get the hwnd of the code. this code is of the pop up  
> window. When I click on this link a new window opens up. I want to  
> calculate the hwnd of the new pop up window so that I can perform  
> operations on it. But I dnt know how to get it ☹

Is this a Ruby question?..

…

Arlen
