play Launches Macro Recorder and plays the specified macro script. This can be used to start macros from 3rd party applications.Įxample: "C:\Program Files (x86)\MacroRecorder\MacroRecorder.exe" -play="C:\folder\my macro file.mrf"įile paths containing spaces needs to be enclosed in double quotation marks. PS: The windowfocus command is required for most other commands to work.Macro Recorder Professional Edition for Windows can be controlled through command-line parameters. If you change your desktop settings such as font size or reinstall your system, they might stop working and would require adjustment. Of course, although such scripts are much more robust than recorded macros, they are by no means portable. a defined window size (if click points change with different sizes).the window id (only if your window title is not unique). Start Sakura with the custom name xdowindow and start the xdotool script in it: sakura -t xdowindowįor your own script you would need the following: 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 |