> i have a window with OK and CANCEL button wich appears. and i want when
> that window is active to block the mouse and the keyboard and send the
> key enter to press the OK button

This to me sounds like you're trying to achieve keyboard and mouse
emulation. Is this correct?

On 05/07/07, Bulhac Mihai <mihai.bulhac / yahoo.com> wrote:
> John Joyce wrote:
> > On Jul 4, 2007, at 2:29 AM, mihai wrote:
> >
> >> How can i block and release the mouse and keyboard and how can a
> >> simulate a key pressed in ruby? (for exemple i want to press enter
> >> key)
> >>
> >> --
> >> Posted via http://www.ruby-forum.com/.
> >>
> >
> > Depends ..
>
> depends of what?
> i have a window with OK and CANCEL button wich appears. and i want when
> that window is active to block the mouse and the keyboard and send the
> key enter to press the OK button
>
> --
> Posted via http://www.ruby-forum.com/.
>
>