What you're looking for is a BCI setup. They're still so new that there's hardly any use for them except in very special areas, like automating robotic legs for paraplegics.
(I'm working on a general solution for translating thoughts into speech patterns & actions for us aspies, but it's taking me a long time. Also, check out MIT's Media Lab, since they're working on similar things.)
_________________
Dum vita est, spes est.