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

Help With Minimalistic Text widget

Discussion in 'Android Apps & Games' started by Sciplefirm, Dec 31, 2013.

  1. Sciplefirm

    Sciplefirm Newbie
    Thread Starter

    I need help with a widget, I almost have it but am having one problem. I have a task setup like this:
    1. Variable Set / %MNMLESUBJ to %ESUBJ / append: On
    2. Minimalistic Text / %MNMLESUBJ to %ESUBJ
    This will bring up the subject of the last email in my widget.

    The problem is that it only displays the most recent subject. I would like it to display a list of the last 5 subjects, not just the most recent one. I have a task setup where when I get an email it writes the subject in a text file that creates a list, but cannot seem to get my widget to do this. (I have also tried with Zooper, but can't even get it to display any subjects.) I have the autoshare plugin, but haven't worked with it yet.

    Thanks for any help.
     


  2. codesplice

    codesplice Elite Recognized Moderator
    Moderator

    Are you wanting each subject to be on a new line, or on a single line separated by a particular character? If you want new lines, you're going to need to use one variable per line.
     
  3. Sciplefirm

    Sciplefirm Newbie
    Thread Starter

    Thanks for the reply. I would like each subject on a different line.

    Is this what I would need to change it to?
    1. Variable Set / %MNMLESUBJ1 to %ESUBJ / append: On
    2. Minimalistic Text / %MNMLESUBJ1 to %ESUBJ
    3. Variable Set / %MNMLESUBJ2 to %ESUBJ / append: On
    4. Minimalistic Text / %MNMLESUBJ2 to %ESUBJ

    Is it possible to pull the information from the text file into the widget since the text file saves each one on a new line?
     
  4. codesplice

    codesplice Elite Recognized Moderator
    Moderator

    Actually, as I'm looking more at it, you'll probably want to use an Array instead of a Variable. Beginner's guide to Tasker, part 7: Variable arrays - Pocketables has a bit on working with Arrays.

    The rough workflow would (I think) be something like this:

    1) Receive email. Array Push subject to %ARRSUB.
    2) If %ARRSUB contains more than 5 elements, Array Pop the first (oldest one) out.
    3) Use Minimalistic Text to display %ARRSUB1, %ARRSUB2, %ARRSUB3, etc.

    More deets on arrays at Tasker: Variables
     

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 - Help Minimalistic Text
  1. centii
    Replies:
    4
    Views:
    168
  2. metalman228
    Replies:
    8
    Views:
    268
  3. Jannelies
    Replies:
    3
    Views:
    175
  4. Louise678
    Replies:
    12
    Views:
    298
  5. laciewonderwoman7
    Replies:
    2
    Views:
    192
  6. hk1337
    Replies:
    0
    Views:
    189
  7. IJustwasnttofixit
    Replies:
    7
    Views:
    306
  8. vishalbhardwaj0411
    Replies:
    1
    Views:
    232
  9. alphonce

    Accessories HELP

    Replies:
    5
    Views:
    247
  10. sullencab
    Replies:
    17
    Views:
    466

Share This Page

Loading...