23 Jan 2009

How to record and playback UI macros in Ubuntu using GNU Xnee

There is a nice software that allows anyone to record and playback mouse or keyboard events in Linux.
Here are some guidelines to get you started using it on Ubuntu, which seems to provide only the command line version 'cnee'.

Install the software:
# sudo apt-get install cnee

Record 500 mouse events to a file (events1.xnr) after a delay of 5 seconds:
# cnee --record -o events1.xnr --mouse --events-to-record 500 --time 5

Playback the recorded events after a delay of 3 seconds:
# cnee --replay -f events1.xnr --time 3

For more information visit:
http://www.sandklef.com/xnee/

No comments: