Code: Select all
var ClipboardCopy = params.ConValue('ClipboardCopy');
var Inches = params.ConValue('Inches');
var Feet = params.ConValue('Feet');
var meters = Feet / 3.28084 + Inches / 39.37008;
params.ConValue("Meters") = meters;
if(!ClipboardCopy) return;
var ieObj = new ActiveXObject("InternetExplorer.Application");
ieObj.Navigate("about:blank");
ieObj.document.parentWindow.clipboardData.setData("text", ""+meters);
ieObj.Quit();
//note how to read clipboard
//var htmlfile = new ActiveXObject("htmlfile")
//var cpValue = htmlfile.parentWindow.clipboardData.getData("text")