1. Are you ready for the Galaxy S20? Here is everything we know so far!

Set Variable - from text beginning at

Discussion in 'Android Apps & Games' started by Mfracher, Feb 14, 2016.

  1. Mfracher

    Mfracher Newbie
    Thread Starter

    RESOLVED : See Below
    I would like to Set a variable with a portion of text beginnig at
    Third line of the entire text. The text is in Tasker's %SMSRB
    It is a SMS from an alarm company.
    The position also begins after the third "M" (FRM, MSG , and then AM or PM)
    Carriage returns 2+ might work

    e.g.
    FRM:sms@lifeshield.com
    MSG: 02/14/2016 9:18 AM
    Disarmed by Master User mfracher Set Variable beginnig at "Disarmed....."

    I figured out what Variable split really means so
    Set Var %ret "to enter"
    Set Var %text to %SMSRB
    Variable Split using %ret ='s %text breaks out as %text1 %text2 %text3
    %text3 contains the third line of the SMS message . That's the one I want.
     


    #1 Mfracher, Feb 14, 2016
    Last edited: Feb 14, 2016

    1. Download the Forums for Android™ app!


      Download

       
  2. This sample will select the third line ...

    AAAA
    A1: Variable Set [ Name:%test To:One
    Two
    Three more
    Four Do Maths:Off Append:Off ]
    A2: Variable Set [ Name:%ret To:
    Do Maths:Off Append:Off ]
    A3: Variable Split [ Name:%test Splitter:%ret Delete Base:Off ]
    A4: Flash [ Text:%test3 Long:Off ]

    ... the value of %ret is a single tap of the enter key.

    ... Thom
     
  3. Mfracher

    Mfracher Newbie
    Thread Starter

    Excuse my NooB , but I;m very new to Tasker. My PC has an "ENTER" key.
    When in Tasker ( post and steps say "just press Enter". Where is the Enter key in Tasker?
    I assume it is the <-! key but ????
     
  4. I use SwiftKey and the key is a left arrow. Return key. Enter key.

    I always called the variable &crlf that I read as Carriage Return Line Feed.

    If you look at the stirring in what I posted you will see that it breaks onto a new line.

    In Tasker you can assign it to a variable and then use the variable in various locations. Entering text strings in some Tasker variables is terminated when you hit that same key.

    Defining the variable in each task where they are used is a good practice because they are then self contained.

    ... Thom
     

Tasker

Tasker Forum

net.dinglisch.android.taskerm

⚙No repetitive tasks for you, let your Android device handle it!⚙
Total Automation, From Settings to SMS. Here are only some
of the things you could do with Tasker. Its real power is the flexibility to combine contexts and tasks however you wish: https://tasker.joaoapps.com/exampleuses.htmlAutomations
Make your phone a true smart
phone! Why remember to change the volume every day when you leave home when your phone can do it for you? Automate stuff based on the app you're in
, the time of day
, your location
, your Wi-Fi network
, Received SMS or Calls
, the currently playing song
and many other (130+) states and events! Check out how easy it is to create an automation: https://www.youtube.com/watch?v=s6EAbLW5WSkActions
350+ actions allow you to truly customize your phone like never before! Send SMS, create notifications, change almost any system setting like Wifi Tether, Dark Mode, Always On Display, change any volume, control Do Not Disturb, open apps, file manipulation, control music playback, get your location... you get the idea. If you can think of it, Tasker can probably do it for you! Note: root is NOT (I repeat NOT) required for majority of the functions.
However, a few of the actions (like the Airplane Mode action and the Mobile Data action on some devices) require root. Regarding those few actions that do require root, this is because of Android security policies that developers cannot work around. ☑ Other Triggers
Manually trigger your actions via launcher shortcuts, quick setting tiles, widgets, long-pressing volume buttons, media buttons (like the ones on your BT headsets or headphones), Bixby button, Navigation Bar, Notificaitons and more! ☑ Join - Remote Tasker
Adding Join (https://play.google.com/store/apps/details?id=com.joaomgcd.join) to the mix will even allow you to trigger tasks from another Android device or PC! ☑ Scenes
Design your own UI and use it to display any info you want or trigger any task! ☑ App Creation
Create your own standalone apps to share or sell with the Tasker App Factory (https://play.google.com/store/apps/details?id=net.dinglisch.android.appfactory)! ☑ Developer Friendly
A lot of 3rd party developers already allow you to perform actions in their apps and listen to their events/states through Tasker! Check out a list of plugins https://tasker.joaoapps.com/pluginlist.html. You can also call most of the Web APIs from Tasker with the powerful HTTP Auth and HTTP Request actions! Check out an example https://youtu.be/yAt2D1XmgUI. ☑ 7 day trial - one time payment to unlock
Get it here: https://tasker.joaoapps.com/download.htmlUseful Links
Starter Guides: https://tasker.joaoapps.com/guides.html Pre-made projects: https://forum.joaoapps.com/index.php?resources/ Official Support Forumhttps://groups.google.com/forum/#!forum/tasker Community full of people willing to help: https://www.reddit.com/r/tasker/ It's not possible to fix problems reported via Play Store Comments so please use the "Report Issue To Developer" option in the app > Menu to do so. Note
: Tasker uses the BIND_DEVICE_ADMIN permission in order to provide the System Lock functionality

READ MORE
February 15, 2020
Last Updated
4.4
Rating
1M+
Installs
Loading...
Similar Threads - Set Variable text
  1. Hakeem balogun
    Replies:
    0
    Views:
    244
  2. Alex Ethridge
    Replies:
    13
    Views:
    353
  3. kumaranil13k
    Replies:
    2
    Views:
    273
  4. shakushinnen
    Replies:
    4
    Views:
    388
  5. halfbeing
    Replies:
    3
    Views:
    597
  6. 06Honda
    Replies:
    7
    Views:
    730
  7. halfbeing
    Replies:
    2
    Views:
    743
  8. Jimmy the rebus dobs
    Replies:
    5
    Views:
    423
  9. Iamk_khan20
    Replies:
    0
    Views:
    325
  10. james fitzgerald
    Replies:
    5
    Views:
    1,005

Share This Page

Loading...