# The error-failed to set window into focus

**URL:** <https://www.ruby-forum.com/t/the-error-failed-to-set-window-into-focus/225024>\
**Category:** Ruby\
**Created:** [December 7, 2012, 12:39pm UTC](https://www.ruby-forum.com/t/the-error-failed-to-set-window-into-focus/225024 "2012-12-07T12:39:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [December 7, 2012, 12:39pm UTC](https://www.ruby-forum.com/t/the-error-failed-to-set-window-into-focus/225024/1 "2012-12-07T12:39:05Z")

</div>

greetings,

I am getting an error:  
failed to set window ‘{:index=\>0, :hwnd=\>134611314}’ into focus!  
Whats the meaning of that? any solution?

---

<div class="post-metadata">

**Author:** ![proggrammer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/47e85d/32.png) [@proggrammer](https://www.ruby-forum.com/u/proggrammer)\
**Post date:** [December 7, 2012, 3:27pm UTC](https://www.ruby-forum.com/t/the-error-failed-to-set-window-into-focus/225024/2 "2012-12-07T15:27:36Z")

</div>

Context!

At a guess I’d say you’re firing an event which requires window focus in  
order to work properly, and for some reason the focus has been stolen or  
the application hasn’t been able to focus in order to fire the event.  
This might happen, for example, if you’re using IE in concurrant  
threads.
