When you hit the ‘Print Screen’ button, what is it stored as? I know that it saves the screenshot to the clipboard, but is it stored as a jpg? Or a png? Or is it something else entirely?
I’m making an hta (yes, I know it’s deprecated, but circumstances require it be an hta) with html/css/js (limited to ES5), and have a function that if a certain error happens, it automatically submits a ticket to our help desk. I want the function to also take a screenshot of the application at the time of the ticket submission, save it as a jpeg, and associate it with the ticket. I’ve found a few similar circumstances on stackoverflow (here and here), and translated their solutions from vbscript to js as best I could, but the issue comes with pasting the image into an excel chart. I don’t get an error for the paste, but it exports a blank jpg. So I’m trying to see figure out what a print screen is stored as, and if I can use python (limited to 3.5), or if I’m translating from vbscript to js wrong.
Any help and advice is appreciated.