MAC adress, Speak block, ...

61 views
Skip to first unread message

k.e.p...@gmail.com

unread,
Nov 1, 2017, 9:25:04 AM11/1/17
to Automate
I want your help on a couple of very important issues.
1.) How do I get the MAC address of the device?
2.) How long can I wait in the "Speak" block. It's longer than the "comma" wait.
3.) How can I see the matching value in the "Expression True" block?
4.) Does "not contains" function exist? "Except for the Expression True block.
5) Is there a similar "VLOOKUP" formula that exists in Excell? It's like looking for a value in another group of values and writing a value against it when it finds it ...

Thank you very much in advance

Henrik "The Developer" Lindqvist

unread,
Nov 1, 2017, 12:13:45 PM11/1/17
to Automate

EvrEn POSACI

unread,
Nov 1, 2017, 4:55:56 PM11/1/17
to Automate
First of all thank you very much. There is something I do not understand.

1) I could not run this command. This is very important to me. I added the screen capture.(I have never used the "Shell" block before.) 

3) I guess I could not tell. 
I have a text that occurs with speech recognition. I also have dozens of values contained in "expression true". I want to see which words in conversation recognition match in "expression true".

I added the example FLO.(So, I should see "text3" in the "toast show" block)

Thank you for your help.

1 Kasım 2017 Çarşamba 19:13:45 UTC+3 tarihinde Henrik "The Developer" Lindqvist yazdı:
Example.flo
Shell_2.jpg
Shell_1.png

Fran T

unread,
Nov 2, 2017, 1:36:41 AM11/2/17
to Automate
You need a space after the 'cat' command. However, as I recently discovered, this trick no longer works in Android Oreo.

Henrik "The Developer" Lindqvist

unread,
Nov 2, 2017, 9:55:17 PM11/2/17
to Automate
3a. Use the contains function to check if a word is found within some other text: http://llamalab.com/automate/doc/function/contains.html
contains(spokenText, "food")

3b. Another, more advanced option is to use the matches function: http://llamalab.com/automate/doc/function/matches.html
matches(spokenText, "give me (food|drink)")

EvrEn POSACI

unread,
Nov 3, 2017, 3:22:15 AM11/3/17
to automa...@googlegroups.com
First of all thank you for your help.

Unfortunately, In problem 3, That's not what I need. I know the function "contains".
I want to see the value that the "contains" function has caught.
I added a sample "flo" file.
In the "Toast Show" block, I want to see the value I catch with "contains" in the "expression true". I mean, I have to see "text3".

Also, There is another problem.
I am looking for names from the contacts with the "contact query" block.
But I do not want it to be case sensitive. I did not achieve this with the "glob" function.
How can I do that?

Thank you very much


3 Kasım 2017 Cuma 04:55:17 UTC+3 tarihinde Henrik "The Developer" Lindqvist yazdı:
Example.flo

EvrEn POSACI

unread,
Nov 6, 2017, 1:15:51 PM11/6/17
to Automate
Is there anyone who can help in this matter?

Henrik "The Developer" Lindqvist

unread,
Nov 7, 2017, 3:01:25 PM11/7/17
to Automate
Using the matches function will return the full and (capture groups) of the matching text:

matches(spokenText, "give me (food|drink)")
returns:
[ "give me drink", "drink" ]

The Contact query block currently doesn't use case-insensitive globbing. I'll consider changing it.
For more elaborate contact lookup, do it yourself using the Content query block.

EvrEn POSACI

unread,
Nov 12, 2017, 8:52:18 AM11/12/17
to Automate
thank you so much

7 Kasım 2017 Salı 23:01:25 UTC+3 tarihinde Henrik "The Developer" Lindqvist yazdı:
Reply all
Reply to author
Forward
0 new messages