Photoshop access to windows clipboard

Does anyone know if there’s an easy way to copy strings to the windows clipboard via photoshop script, specifically javascript? I have done it using AutoIt, but that’s a bit of a hassle, as I don’t want every user to have to have AutoIt installed. I know photoshop has direct access for image data, but I need to copy string data.

Any thoughts?

Javascript is not my thing, but have seen this? http://lab.artlung.com/copy-to-clipboard-javascript/

Cheers.

This is how you would do it through the windows scripting host:


var oIE = new ActiveXObject("InternetExplorer.Application");
oIE.Navigate("about:blank");
oIE.Document.parentWindow.clipboardData.setData("text", "Hello World");
oIE.Quit();

Taken from here and modified to be JScript:

Scripting the Clipboard Contents in WSH