Event of doing something as long as a button is kept clicked

I am making a smart car with arduino and the car will be controlled by App remote. I am making the remote with MIT App Inventor.
But I want the Bluetooth client to send the text "F" (so that the car moves forward) only as long as a certain button is kept clicked and send text "S" when finger is lifted from the button.
But if I use the block "when button is clicked" then the activity will be done even after the finger is lifted.
Please help me regarding this.
Thank you!

grafik

Constantly send "F" and send "S" once? See @Anke's post above.

Send "F" once and send "S' once? Something like this, replacing "set Label1.text" with the Bluetooth send method:
blocks

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.