How do I pick several contacts and send them a sms?

Chat GPT gave me that code that i asked for my program. How can i do this in blocks? Can you show me please
Screenshot_3
Screenshot_4

to pick several contacts and put them into a list to later send a sms to each of the contacts learn how to work with lists... it looks like ChatGPT does not know how to do that...

and here is an example about how to send bulk sms... usually you use a clock timer event instead of a for each loop as ChatGPT is suggesting...

what about learning some 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

Sorry, i don't have time for learning and i need this app for my project. So... i tried to use ChatGPT. Is there a way that i can make this app work with the code that i showed on my screenshots?

unfortunately not, as already explained, the pseudo code is wrong...
I already described what needs to be done...

sorry; I will not provide the blocks for your project... I think, cheating is not the way to go for your homework... you first should learn the basics and then follow the suggestions... yes, you can do it!

Taifun

1 Like