Page 1 of 1

runPCCommand & CopyToClipboard Not working

Posted: Fri Jul 20, 2012 1:15 pm
by bruceanthony
The following code works in my javascript object:
MyObject = new ActiveXObject( "WScript.Shell" ); MyObject.Run("calc.exe");
but
runPCCommand("calc.exe");
does not work.....

The following code works in my javascript object:
window.clipboardData.setData("Text", "hello world");
but
copyToClipboard("Hello world.");
does not work....

It must be something really simple.

Re: runPCCommand & CopyToClipboard Not working

Posted: Fri Jul 20, 2012 2:04 pm
by David
Before either of those functions can be called, Profound UI's Java applet (which contains them) must be loaded onto the page.

Do you know if this has been done at the time you call the functions? It will not be loaded in unless you have called loadPCCommandApplet(), see here:

http://www.profoundlogic.com/docs/displ ... callback+)

In Genie, built-in processing will load the applet when a STRPCCMD is run, but other than that, the applet is not automatically loaded in.

Re: runPCCommand & CopyToClipboard Not working

Posted: Fri Jul 20, 2012 2:15 pm
by bruceanthony
That did the trick. The page that has these capabilities was changed.... The onLoad event now contains loadPCCommandApplet();

Thank you!