Setting command tags #68
-
Hi Ricardo, How do I set a command tag when an object (“button”) is clicked on a svg screen? For instance, for implementing a process start button. Thanks for this project! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Thank you very much for liking the project, Stephanus. |
Beta Was this translation helpful? Give feedback.
Thank you very much for liking the project, Stephanus.
The function $W.directCommandExec(point_key_number, value) can be used to execute commands from scripts (no confirmation will be required) that can be linked to events (like a mouse click), using the SVG Editor (object properties|script|mousedown). The first parameter is the numeric point key of the command. Value parameter is the value of the command (can be a number for analog commands or “ON” and “OFF” for digital commands.
Best regards,
Ricardo