runPCCommand & CopyToClipboard Not working

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
bruceanthony
Profound User
Posts: 52
Joined: Mon Sep 19, 2011 3:00 pm
First Name: Bruce
Last Name: Anthony
Company Name: The State Bar of California
Contact:

runPCCommand & CopyToClipboard Not working

Post 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.
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: runPCCommand & CopyToClipboard Not working

Post 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.
bruceanthony
Profound User
Posts: 52
Joined: Mon Sep 19, 2011 3:00 pm
First Name: Bruce
Last Name: Anthony
Company Name: The State Bar of California
Contact:

Re: runPCCommand & CopyToClipboard Not working

Post by bruceanthony »

That did the trick. The page that has these capabilities was changed.... The onLoad event now contains loadPCCommandApplet();

Thank you!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests