Saturday, September 20, 2008

Xautomation

Today, I came across a really cool tool, "Xautomation" used by the alias xte.Using this, one can automate any mouse/keyboard driven process. The homepage of the project is : http://hoopajoo.net/projects/xautomation.html

Using this I was able to able to do things like refreshing the contents of a folder after I ran a script on the contents. This can also be used to test softwares faster by automating some of the usual input tasks.

For e.g., Lets say we want to press F5, then we can write
>> xte 'key F5'

If we want to press two keys together, for eg., Ctrl + R then we can say
>> xte 'keydown Control_L' 'key R' 'keyup Control_L'


No comments: