I need to write a simple 'macro' for saving an image from the browser:
(defcommand save_image () ()
(run-shell-command "xdotool click 3");open context menu, pointer is hovering over browser image
(sleep .5)
(run-shell-command "xdotool key v");'save as'
(sleep .5)
(run-shell-command "xdotool key Return")
)
The function above does not work because for some reason, the right click in "xdotool click 3" is not sent until the entire save_image function has exited.
So I tried replacing the xdotool call with (ratclick 3). This doesn't work either. (ratclick 3) doesn't seem to work.