Text in the textbox (to play a sound file)

Hi,
I want to use a textbox so that depending the text in the textbox a different sound is played. For example, if I write storm a storm sound is played and if I write wind a wind sound is played. Can you help me with that?

Here is some partial code you can experiment with.

playmp3Asset

Place your sound files for storm and wind in Assets (Media) and use a Player or Sound control. The example uses a Player and a Notifier. The mp3 will play if you type storm but not Storm or STORM in the TextBox and Press the Button.

To use without a Button, you could use a Clock to check what is typed in the TextBox when a match is achieved of the key text required. There are numerous complex ways to make something like this work automatically upon typing. Experiment. :slight_smile: