I want to write a script that changes the window focus, and sends keyboard commands, such as print screen, and arrow keys, to the system. As in I need print screen to capture my desktop, not the script window.
I can do it manually, but it is tedious, as I have a lot of screenshots to take.
I see that I can use xdotool for this. What is the key name for print-screen? (I am away from my Linux terminal, and I can't use xev remotely) alternatively, how can I figure out the names of keys, using something besides xev?
osascriptcan do this easily although I'm not sure your OS has it.