{
print("Moving picture was successful!");
}
else
{
print("Moving picture failed! :( ");
}
Example project: Download this project to see how the MoveDDO function can be used.
If the fadeout time for softkey frames was set in project properties, the softkey frames will be
hidden after that time. To show them again, a physical key needs to be pressed. If the softkey
frames shall be shown again by some other event, the showSoftkeyFrames function can be
used.
Prototype:
var result = showSoftkeyFrames();
Note: The function will always return true.
First things first: This function should only be used if there is really no other way of sending the
desired message using the CAN protocol settings provided! Implementing a CAN protocol in
JavaScript is not a good idea!
Prototype:
var result = sendCANMessage(number CAN-Port,
number CAN-ID,
number DLC,
number Byte1,
number Byte2,
number Byte3,
number Byte4,
number Byte5,
number Byte6,
number Byte7,
number Byte8);
Description of the parameters:
·
CAN-Port: Number of the CAN port that shall be used for sending the message (numbering
starts with 1)
·
CAN-ID: The CAN messages CAN ID
·
DLC: Data length code: how many data bytes shall be sent
·
Byte1...Byte8: The data bytes of the CAN message
Example:
//send CAN message with ID 0x601 and 8 data bytes on port 1:
var result = sendCANMessage(1, 0x601, 8, 0xde, 0xad, 0xbe,
0xef, 0xb0, 0x0b, 0xaf, 0xfe);
if (result)
{
print("CAN message sent successfully!");
}
else