setting a string command from my html embedded.

Hi,
You can use Messaging to send information from / to the HTML component. Check out this article .

Good luck,
Tal.