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?
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
That's what I mean by depends... it depends greatly on the
environment you want it to work in. Unfortunately this sort of thing
can be very implementation specific. Unix shell? Dos box? Windows? OS
X ? KDE?
All have their own ways of doing this stuff.