Xdotool recorder

Does anyone know of an automatic xdotool script generator? Ideally, I would like to record a series of actions on my desktop and automatically do this for the xdotool script instead of manually adding pauses and counting pixels, etc.

+6
source share
1 answer

I can’t say for sure, without knowing more about what you want to do, but I think you can use xmacro instead. There is a good tutorial here: http://linuxpoison.blogspot.in/2012/03/record-play-keystrokes-and-mouse.html

Here is the summary:

 # Start recording macro. xmacrorec2 > macro.txt # Select a keystroke to end the macro. # Do stuff. # End the macro with the previously chosen keystroke. 

And to run the macro:

 xmacroplay $DISPLAY < macro.txt 

The blog notes that time information is not recorded.

+5
source

All Articles