pui.onPCCommand function (Genie)

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
Stuart
Profound User
Posts: 30
Joined: Tue Apr 17, 2012 4:37 pm
First Name: Stuart
Last Name: Leonard
Company Name: Summit Holdings
Phone: 813-665-6060
Address 1: 2310 Commerce Point Drive
City: Lakeland
State / Province: Florida
Zip / Postal Code: 33594
Country: United States
Contact:

pui.onPCCommand function (Genie)

Post by Stuart »

Hello, I need some clarification on how to implement this command.
The docs for this command are below:

This function can be used to provide alternate user-defined processing for STRPCCMD in Genie. Normally, any commands issued with STRPCCMD are run on the PC through a Java applet built into Genie. If this function is defined on the page, it will be called instead, and the command string will be passed to it.
Example:

pui.onPCCommand =
function(command) {
alert("The command string is: " + command);
}

Is this function embedded in the start.html page, and whenever a call to STRPCCMD is made in the application, this command will be invoked instead? If this requires implementation in the display file, then what modifications need to be made?
User avatar
Brian
Profound Logic Staff Member
Posts: 286
Joined: Thu Apr 14, 2011 10:23 am
First Name: Brian
Last Name: May
Company Name: Profound Logic Software
Contact:

Re: pui.onPCCommand function (Genie)

Post by Brian »

Worked this out with Stuart via email.
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests