Hi, I am writing software that will allow persons with severe motor
disabilities – people who cannot use a full keyboard and mouse – to
be able to use the Internet, an extension of what you see in
Inputs from a joystick or a special keyboard are picked up by my
program, interpreted, and fed to firefox using firewatir. No problems
with the joystick program, but with the keyboard, there is a tiny one.
When I fire up Firefox, it takes focus, and eats up all my keystrokes.
How can I get my terminal window to come to the foreground without
manual intervention, so that my application gets keystrokes again?
On a related note, how do I, in ruby, reduce the size of the terminal
window the program is running in, so that it does not obscure the
firefox window underneath?
My program is as below…
#Include the FireWatir file.
#include the FireWatir Module.
C is pressed