Question:
How can I create a pulse button using the CommandButton object?
Solution:
To do so, there are at least two possibilities:
- you can write two scripts in events of the CommandButton: one script in the MouseDown event setting the tag’s value to 1, and another one in the MouseUp event setting the tag’s value to 0; or
- you can create a script in CommandButton’s Click event using the WriteEx method twice.
Note: Attached to this article is a sample application illustrating both possibilities described above.