this is the fastest I've gotten it so far:
system.exec_command("gnome-screenshot -w", False)
window.wait_for_exist("Save Screenshot", timeOut=5)
system.exec_command("xte 'mousemove 725 399'", False)
window.activate("Save Screenshot", switchDesktop=False)
keyboard.send_keys("today<enter>")
time.sleep(.7)
keyboard.send_keys("<alt>+r")
I'd forgotten about the "wait_for_exist" function. It would help
further at the step taken up by the "time.sleep(.7)", but the window
there is a dialog window with the text "File already exists" asking to
confirm if you want to overwrite the file, at which point I need to
"alt-r" to replace the file
Is there a way to get "wait_for_exist" to work on a title-less
window?
(the window in question displays a big blue question mark if that
helps, or maybe there's a way to identify "the most recently opened
window"...)