Trigger keyboard and mouse actions with your voice and xdotool

Get keystrokes when you combine voice input with the xdotool library

From the developerWorks archives

Colin Beckingham

Date archived: December 6, 2016 | First published: September 06, 2011

xdotool is a helpful library of instructions that allows programmers to emulate keystrokes and mouse actions. The particular strength of the tool comes when the keyboard or mouse is absent or in accessibility situations where the user is not physically able to employ regular input methods. This article has two goals—first, to provide an introduction to the use of xdotool in a Linux® desktop environment, and second, to use voice input to trigger actions typically done through hardware input. A concluding example uses XML to store xdotool-oriented code fragments for insertion into auto-generated dialog manager code.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some steps and illustrations may have changed.



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=XML, Linux, Open source
ArticleID=754176
ArticleTitle=Trigger keyboard and mouse actions with your voice and xdotool
publish-date=09062011