2016년 11월 30일 수요일

PLEASEEE. How can I receive the same text in the same position!!!!!


I'm doing an app with appinventor and I want to recive some text from the pic and bluetooth. I only send this:

While(1)
{
printf(" Hola ");

}

And I only want to recive in the same position everytime. I send you 2 photos, the app working and the bloks

THANK YOUUUUUU VERY MUCH!!!

Captura.PNG 표시 중

Screenshot_2016-11-30-20-25-43.png 표시 중
-- 
see here how to receive something correctly

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/book2 ... 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 http://www.appinventor.org/content/CourseInABox/Intro  and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles  
How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling  .

Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of App Inventor, then try something and follow the
Top 5 Tips: How to learn App Inventor

You will not find a tutorial, which does exactly what you are looking for. But doing the tutorials (not only reading a little bit) help you to understand, how things are working. This is important and this is the first step to do.

Taifun

-- 
If you want all the HOLAs to appear in column 1,
add a \n to the JOIN block.

If you want to show only the last Hola in Label5,
change your blocks to:
(timer)
 If connected then
    if bytes available > 0 then
       set label5.text to btclient.readbytes(bytes available)
(end timer)

ABG

-- 
Sorry, it doesn't work! I only want to receive some text in the same position, I want the new text
to stay in the same place of the previous one.

Thank you very much

-- 
your blocks look fine
the new received text will now replace the old text, which previously was displayed in label5


Taifun

-- 
Change the >= test to the more strict >
otherwise you will lose the nonblank input immediately.

ABG

-- 
I change the >= to > more strict and I receive the same.

I don't know why it doesn't clean the old 'HOLA' for the new one, and staay in the same place.
Other options????'

thanks!

Captura3.PNG 표시 중



Screenshot_2016-11-30-22-37-55.png 표시 중


--
I see two complications.

You have two timers.

You are in Screen2.

Simplify.

ABG

-- 

댓글 없음:

댓글 쓰기