Quantcast
Channel: HomeSeer Message Board
Viewing all articles
Browse latest Browse all 4847

get last word in string for Sonos Player

$
0
0
I have a string heard by HS via Alexa. I would like to get the last word from the string so I can change Sonos Play

For example the script gets this parm passed to it:

run living room stop

How do I get the STOP on the end?

I would normally look for instrrev and find the last space and then use substr to
get the last word. I didnt find any reference in the PDF for this.

Thank you

Viewing all articles
Browse latest Browse all 4847

Latest Images

Trending Articles



Latest Images