I'm trying to write a short script that takes a screen shot, opens up Photoshop, opens a new file, pastes the screen shot, names it and exports that as a specific file type, in this case png.
I can get it to open up Photoshop using the win32com.client module and the win32com.client.Dispatch function, and I could use the keyboard mod to simulate pressing Ctrl + N to open a new empty file but I don't know how to program the rest of the steps involved in the process like hitting the "Ok" button and exporting the file as some of these other steps don't have any hot keys in PS. I haven't found too much information on the web about using python with PS or other programs that's too relevant to this script. Can any one point me to some helpful resources? Thanks.
I'm trying to stay away from using mouse movement simulation and I don't want to set up a virtual operating system like was talked about in the link below. I'm on Photoshop 2015.