15.12.2010 08:14 | computer | cklem
I found a way to record and repeat Keyboard and mouse actions on my kubuntu machine (hardy).
i use the xmacro package. it provides the tools xmacrorec2 for recording and xmacroplay for playing macros. install by typing
when doing
it records all actions, until you hit ESC. you can also chose a different escape-key by passing another keycode as argument of the "-k" or just leave out this option and it asks you to specify the escape key manually.
now you can rerun your macro by typing
where "-d 100" specifies a time delay of 100 ms between each action, so you can see it.
i use the xmacro package. it provides the tools xmacrorec2 for recording and xmacroplay for playing macros. install by typing
sudo apt-get install xmacro
when doing
xmacrorec2 -k 9 >> newmacrofile
it records all actions, until you hit ESC. you can also chose a different escape-key by passing another keycode as argument of the "-k" or just leave out this option and it asks you to specify the escape key manually.
now you can rerun your macro by typing
cat newmacrofile | xmacroplay -d 100 :0
where "-d 100" specifies a time delay of 100 ms between each action, so you can see it.