Why is it bad? The example will delete ALL files and folders in /opt, killing the project, PClient,
updater and all user data.
Once again: Please use this function with care. There are no limitations in this function,
whatever is the content of <command> will be forwarded to the system.
There are plenty of commands that take a long time to process.
Always test the commands that should be used thoroughly before implementing them for field
use!
This function returns the trigger that executed the currently running JavaScript file. The return is
a string identical to the event names as they are used in the program.
Prototype:
var eventName = getTriggerEvent();
Return value:
The event that triggered the JavaScript.
Possible values are:
Execute Script
Jump To Page
Set Value
Scale Value
Next Softkey Level
Previous Softkey Level
Start Application
Send Event To Plugin
Open For Input
Navigate Up
Navigate Down
Navigate Confirm
Open PDF Reader
Set Media Player Command
OnProjektInit
OnProjektExit
OnPageInit
OnPageExit
OnProjektRepeat
OnPageRepeat
OnEncoderMove
OnPress
OnRelease
OnLongPress
OnLongRelease
OnDblClick