Issue with opening apps via voice command (Taifun PackageManager extension)

Taifun just told you! With the upcase and down case blocks you can change capital! Make sure you put the input in down case!

FoxyOnFire

what about using the upcase or downcase block as suggested earlier?

Taifun

1 Like

Thank you for your patience and help with this project! Thank you very much taifun!

Sorry taifun. But I want you to help me with something because I've put in other voice commands and they don't work because the application takes them for applications and in order for it to be able to distinguish it, I would like to say "open..... (App Name)". Can you help me?

Use an if statement

If result starts with open
Then open the app
Else do something else

To find out, if the result starts with open, use the split at spaces block to split the result, then select the first item from the list, which is the first word and check if it is the word open

http://ai2.appinventor.mit.edu/reference/blocks/text.html#splitatspaces

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: How do you...? .

Also do the tutorials Our Tutorials! to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Where should I put them? Can you send a screenshot of how it should look?

obviously in the AfterGettingText event
first check, if the result starts with the word "open", if yes continue with the current logic
else do something else

please do the tutorials to learn some basics

Taifun

I will do it. Please send me a screenshot with the blocks, please, so I can understand them, I tried before putting blocks but to no avail. Please send me a screenshot with the blocks

Great
Just do it then and if you got stuck, post a screenshot of what you tried to get help
It is your term now

Taifun

Thank you. but can you send me a screenshot so I can see how to put "open...."

it looks you prefer others to do your work...
no problem, this is possible for a small fee... just send me a PM and I will do the work for you... thank you

Taifun

,

Sorry if I acted like this, I tried a little and it doesn't work, can you tell me what's wrong?
Here are the blocks I changed.


P.S. άνοιξε = open

This works if the text

Screenshot_20250312_064826_DuckDuckGo

is contained in the result returned by the speech recognizer

What is displayed in the notifier?

EDIT: now obviously you have to remove that text from the result to find the corresponding package name

If you follow the suggestion

Then you can select the third item from the list as app name. It is the third item because the word open is 2 words in your language

Taifun

  1. "Άνοιξε" catches it for application
  2. I don't know how to connect them.
  3. I can't understand your instructions, it's not your fault I've tried many things. My errors:
    1. Sometimes it says something about false when I use "select list item list index "
    2. Other times nothing happens
    3. Other times your open catches it for application.
      What should I do?

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Do the tutorials to learn the basics

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: How do you...? .

Also do the tutorials Our Tutorials! to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.