Mouse Cursor Scanning for the disabled

Hi, I have made custom speaking program for a disabled person.

The program has 10 Jbuttons (0-9) so they can be selected by the user for speech. I have installed 1000 text and spoken words that can be selected by entering 3 digit combinations. The program has two output boxes, one showing which keys were pressed and the other shows the English text .(it also speaks using voice files)

I need to get the keys auto scanning so the user can use a single switch to make their selections.(like "hotspots 2") which can be found on the internet. Any help from a programmer would be greatly appreciated.

Thanks,

Tom

[641 byte] By [muskokaa] at [2007-11-27 4:53:26]
# 1

Tom,

Sorry I don't understand what you mean by "so the user can use a single switch to make their selections"... can you explain further please.

PS: I think you mean "so the program responds immediately to each keystroke", but that just means unbuffered I/O on stdin, which I'd use

InputStream abstract int read() - Reads the next byte of data from the input stream.

on the System.in InputStream

Keith.

corlettka at 2007-7-12 10:07:47 > top of Java-index,Java Essentials,Java Programming...
# 2

Hi, disabled people use switches to gain access to computers.

A switch is just a contact switch hooked to the computers usb port which just simulates a single mouse click. The switch can be activated by different parts of the body depending on the users disability capability.

The idea is, as the program scans the different keys the use can make a selection.

Tom

Message was edited by: Tom

muskoka

Message was edited by:

muskoka

muskokaa at 2007-7-12 10:07:47 > top of Java-index,Java Essentials,Java Programming...
# 3

muskoka,

I presume a switch is operated via a mouse driver, effectively replacing the standard mouse?

> The idea is, as the program scans the different keys the use[r] can make a selection.

Does this mean that the program reads the alphabet (A through Z) aloud, and the user selects the required letter with a well-timed flick of the switch.

Sorry for being so thick, but I'm trying to get my head around what is required before I start sprouting inappropriate solutions.

Keith,

corlettka at 2007-7-12 10:07:47 > top of Java-index,Java Essentials,Java Programming...
# 4

Hi, a switch is just a large button that the user can actuate with a head motion foot motion arm motion, which ever part of their body that they can move. Your right the switch activates a mouse driver and simulates a single click.

The user in mind has a 3 digit vocabulary each 3 digit value corresponds to a word (example 123 might be "dog" or a 124 "cat" and so on. I wrote a simple program that if you enter a value say "123" the display would show the word dog and the program would run a voice file which would say the word dog.The user gets to see the text and hear the word. The program is not only meant to be a communicator but over time would teach English.

What I made was a small program that resembles a calculator, when you click 3 different digits you get the word.

I need to be able to get the numbers scanning in a continuous loop so the user can see each number being scanned about 1 second each and than click their button to select the number they want.

Tom

muskokaa at 2007-7-12 10:07:47 > top of Java-index,Java Essentials,Java Programming...
# 5
Does anyone know how to move the cursor on a continuous loop via a separate thread? (for instance scanning the keys on a calculator and selecting your choice when the key comes into focus) this would be for someone with a disability who can only operate a single selection switch.
muskokaa at 2007-7-12 10:07:47 > top of Java-index,Java Essentials,Java Programming...
# 6
I found out how to do it in robot class, just move cursor to different x y coordinates in a loop to simulate scanning.Tom
muskokaa at 2007-7-12 10:07:47 > top of Java-index,Java Essentials,Java Programming...