Page 30 - Computer_Genius_v2.1_C7_flipbook
P. 30

Making click event for button
                  To make click event for button, follow the given steps:
















                          1  Click on button
                          Talking_Me.







                                                2  Drag and drop when Talking_Me.Click do to workspace.


                  This is an Event Handler block that will handle what happens when the button on your app is clicked.

                  Program the TextToSpeech Action
                  To program the TextToSpeech action, follow the given steps:


                                                             3   Drag it over to the workspace and drop
                                                             it over the when Talking_Me.Click do block.

















                         1  Click on
                        TextToSpeech1
                        block.








                                                   2  Click and hold the call TextToSpeech1.Speak message block.


                  This block will execute when the button on our app is clicked and make our phone speak.



                       28    Computer Genius (V2.1)-VII
   25   26   27   28   29   30   31   32   33   34   35