I have no code to really display here, since I have not been able to really make a start until I’ve found out my answer. I’ve been checking all over Stack, and all over the internet, and found numerous references that seem to hint towards Adobe AIR being able to write directly to the clipboard in some fashions, but no concrete examples on how this is accomplished.
Is there ANY way to use an HTML FORM input button, or maybe a simple URL link to Copy directly to the Windows Clipboard in Adobe AIR without the use of invisible flash files overlayed over buttons (such as zClip or zeroClipboard)?
This is for an in-house application that would run on our employees computers. The idea is to be able to have a button that when clicked would run a JavaScript function to get the values of a bunch of different form fields (name, address, etc), output them to a textarea on the page, and then have that textarea automatically copied to the clipboard to be pasted into a client file.
I completely understand why copy to clipboard functionality was completely removed from JavaScript and is almost impossible to do even now with flash in a web browser, but I was hoping by using AIR which is more of a local application, I’d be able to stick to what I know (HTML and Jscript) but achieve my goal without zClip. This wouldn’t be so much of a security issue I figure because it’s all in-house and would never leave an employee machine.
For those wondering, the reason I don’t like zClip is because it doesn’t work with tab orders, I like to use just my keyboard when entering in information and tab to my submit and copy buttons, but since the zClip overlays an invisible flash file over the actual button, when you tab over to the button, it does nothing, rendering tab functionality useless.
Not sure if I fully understand the question.
If you are looking to expose clipboard functionality in Air using JS take a look at the Adobe Air HTML reference – it contains a clipboard class for use with JS Air applications.