![]() ![]() ![]() The sleep commands are just to slow it down to a watchable speed. I tried to get this working with gnome-terminal but gnome-terminal has been a major failure for some time and since then its window title cannot be changed, so I used Sakura for testing instead. This is a sample script for xdotool: search -name xdowindow You would have to calculate the offset.Ĭreate a text file for your xdotool script. Keep in mind that on Ubuntu you usually cannot move your window to the coordinates 0,0. ![]() Xterm -hold -e /usr/bin/xdotool getmouselocation To get the right position for your clicks you can move your window into the top left corner and use: ALT+F2 You can even execute commands from within a pure xdotool script and close their window after the job is done. With xdotool could identify windows and manipulate them to your parameters, and then program clicks relative to them, ignoring their position. I know this may not be what you are wishing for but it may be the best solution.Ī recorded macro would fail with missing windows, different window sizes etc. It gives you far more control over the process.įrom your description, I assume that you need something more permanent and not a macro that is only used a few times after recording it. Instead of recording a macro, it might be more useful to script it from scratch with xdotool.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |