I’ve built my first macro to do a nontrivial browser manipulation. It has about 15 individual actions.
One of the actions isn’t working reliably; I think it needs a delay.
But I don’t see a way to insert a new macro action between two lines; any time I click “Add macro action” it appends it to all the existing actions. Nor do I see a way to reorder the lines. What can I do? I don’t want to have to erase and redo all the lines below the point of insertion.
For whatever reason, if the list of macro actions is very long, you can’t scroll the list while holding/dragging anything. You have to drag it to the top of the list, drop it there, and then scroll and grab the handle again. It’s really annoying, and if the list of actions has a lot of duplicates, you can get lost quite easily.
I’m sure there’s probably a way to use smart macro commands to reduce repetitive actions, but I’m not too well versed in the smart macro language.
Another question: Instead of Move pointer by Xpt rightward and Ypt downward, I sometimes want to specify the final position directly. Is there a way to do that?
IDK if you can specify a direct position or not, but you could set one action to move the mouse to a far corner, and then set another action to move to the position you want from there. Just set the first action to move the full resolution of your display so it ends up in the corner, regardless of where your mouse starts from.
You may need to set a delay between movements to prevent misalignment from mouse acceleration or whatever (Unsure if that part is necessary). Also, if you’ve set the display scaling in the OS to anything other than 100%, you may have to take that into consideration when setting the mouse position as well.
Ex.
To move mouse to center on a 4k resolution monitor with no display scaling:
Thank you pcooke9 - actually I had come up with that idea too, but it only works if I disable wraparound. Now that László Monda has confirmed that it’s not possible to specify a screen position I’m going to replace the UHK smart macro by a shell script (where xdotool mousemove does the job).