TASKER Flow Control (If / Else /Go To/ Loops / Subroutines) (PL CC)

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • INFO:
    All you need to know about loops, if/else statements and subroutines.
    DISCLAIMER
    I would like to share with you my Amazon list
    www.amazon.co.u...
    This is where my TH-cam earnings go - so please don't block the ads on my videos click it instead for x10 profit!
    how to unblock ads on YT channel: support.getadbl...
    and if you are rich - send me an Amazon voucher
    It contains a lot of things, that eventually would be featured on my TH-cam channel. Each has description why I'm interested in it. Feel free to link me a better item or alternative products.
    Music:
    Retrosoul,Scifi - Bensound.com
    Licensed under Creative Commons: By Attribution 3.0
    creativecommons...

ความคิดเห็น • 52

  • @akuma12356
    @akuma12356 3 ปีที่แล้ว +2

    At 7:05 you said use qtime that counts certain amount of times. That is incorrect. It works for you because you set wait as 1. Qtime is the elapsed time not the number of repetitions. To see this, set wait as 4 and qtime as 4. Going by what you said, the task will execute less than 4 times, so just 3 times. But that's not what happens. When wait is executed, 4 seconds has already elapsed, so by the time it gets to GOTO, qtime is already 4 seconds, the condition fails and goto stops. So task executes only once and goto never happens. Hope that made it clear for others.

    • @anabukashka
      @anabukashka 2 ปีที่แล้ว

      omg thank you so much!

  • @jaimezafirozorzer4532
    @jaimezafirozorzer4532 4 ปีที่แล้ว +3

    Tutorial loop start in 4:50

  • @Friedslick6
    @Friedslick6 8 ปีที่แล้ว +4

    Thanks, you helped me realise I was trying to do something impossible. :)

  • @KylieDesire
    @KylieDesire 4 หลายเดือนก่อน

    Hi. I am thinking about some Clock or Loop so I can run many animations, each seperatedly without running low. Is there a way, please? Some nested Loops? or maybe some Clock with Loops at some time? I do app using only Tasks and Scenes for export without Profiles.
    I did loops and more and I wonder, if there is any way to make some animation loop so that it works at the same time like the 2nd one, easily in code. I may jump to the Label and go back to up in the code, but to nest somehow? Or maybe clock that will launch actions each making animation?

  • @aakabli86
    @aakabli86 4 ปีที่แล้ว +1

    Hello,
    First of all, thanks for your great playlist, ive learned a lot from it. Can you plase let me know how can I:
    I want to adjust my Nav bar, however once I do so I lose the Rotate button (the rotate button in the new android, if auto rotate is off and you rotate the phone a button appears that will rotate the screen). so is there a way to adjust the Nav bar, and also add the rotate button with the same functionality as the one already in android ( I was able to add a button that will turn auto rotate on & off, but I want to have one the same as the original one)

    • @notenoughtech
      @notenoughtech  4 ปีที่แล้ว

      Rotate button would be your default subset so make sure to set the nav bar to default buttons on exit with the profile

    • @aakabli86
      @aakabli86 4 ปีที่แล้ว

      @@notenoughtech how do I set it to default?

    • @notenoughtech
      @notenoughtech  4 ปีที่แล้ว

      @@aakabli86 If i remember correctly, dont select a function. That should cause the navbar to default back ( have one task ready to restore it in case I'm wrong)

  • @prathamshetty8893
    @prathamshetty8893 4 ปีที่แล้ว

    I need some help... I have a game in which I'm playing a song.. I want that song to stop for sometime.. When I'm battling with opponents then restart it after tht match.im actually using tasker to play that background music
    How to do it Pls help..how to control it in tasker

    • @notenoughtech
      @notenoughtech  4 ปีที่แล้ว

      You could activate a new profile in tasker when the game is running. This profile would use volume button to pause resume playback using logcat or hardware button profiles. The changes would deactivate once you exit your game

  • @Rok_Satanas
    @Rok_Satanas 8 ปีที่แล้ว +2

    +NotEnoughTECH I came for the subroutine, couldn't figure out how to use the parameters. I subscribed because I loved the beginning with your phones TTS speaking to Cortana. It made me laugh so much man, don't know why. Keep up the good work. (BTW I am writing the comment before I see the video, the start was just so awesome)

    • @notenoughtech
      @notenoughtech  8 ปีที่แล้ว

      +Atanasov Goran Enjoy man! thanks good to know it is not only me that laughs at my often goofy jokes :) Subroutines are in, they are not anything amazing - just a way to delegate the task as well as variables with a value and get the output as variable in the consecutive action of the main task

    • @Rok_Satanas
      @Rok_Satanas 8 ปีที่แล้ว

      +NotEnoughTECH I had a problem with the priority, so the variable would be empty when the subroutine run after the parent one.I actually use a subroutine for all my TTS tasks. I am calling the TTS task with %par1 the string to be read, and %par2 in which language should be read. Since I have the need for an English, German and Greek TTS, and didn't want to repeat the steps. And within the task I have setup 3 different say action with an if statement that checks if %par2 equals to any of the languages, and if not it will exit without doing anything.
      I have a problem with getting the "BATTERY_PROPERTY_CURRENT_NOW" from within a task.
      I want to use it because sometimes I plug the phone and it would charge really slow or even recharge. So I wanted it to inform me, if that happens.Any ideas or suggestions? perhaps you have already made a video about intents.

    • @notenoughtech
      @notenoughtech  8 ปีที่แล้ว

      +Atanasov Goran perhaps try run shell action : shell command: cat /sys/class/power_supply/battery/device/power_supply/battery/voltage_now
      I think this should show the current voltage of the charger rather than battery

  • @whohastimeforthis
    @whohastimeforthis 6 หลายเดือนก่อน

    OMG that was hilarious!!! You were so patient waiting for them to finish talking so that you could begin your video! Great stuff by the way. I definitely need a remedial video but was able to follow along thru most of it.

    • @whohastimeforthis
      @whohastimeforthis 4 หลายเดือนก่อน

      Holy Cow that was funny again! Every time I watch this I hold my stomach laughing! 🤣😂😅😆

  • @TheMrtur
    @TheMrtur 9 ปีที่แล้ว +1

    Spostrzeżenie mam i ciekawi mnie czy też to zauważyłeś choć w filmie nie wspomniałeś. Ze zmienną %qtime się pierwszy raz spotkałem i zacząłem testy. Zmienna ta dostaje kolejne wartości tylko jeżeli jest użyty wait (inaczej ja osobiście zawsze miałem 0) i mało tego zmienia swoje wartości o ten Wait. Jeżeli w pętli będziesz miał dwa razy Wait w tym jedno np. 2 sek a drugie np. 3 sek to zmienna %qtime będzie dostawała kolejno wartości 0,2,5,7,10,12 itd.

    • @Thepajonk
      @Thepajonk 9 ปีที่แล้ว

      Oo! Popatrzę. To nie to co napisali...

    • @TheMrtur
      @TheMrtur 9 ปีที่แล้ว +1

      Nie, duża poprawka. %qtime po prostu liczy czas od momentu zadziałania taska i tyle. Jak nie będzie wait'ów a pętla będzie się długo powtarzała to %qtime zmieni wartość co 1 sekundę. Dla mnie kolejna lekcja bo w ogóle nie znałem tej zmiennej i jej działania.

    • @Thepajonk
      @Thepajonk 9 ปีที่แล้ว

      Musze przyznać, że sam wpadłem. Musze przestać czytać rzeczy po północy. Dzięki.

  • @MarioAlbertoMatamorosMoraga
    @MarioAlbertoMatamorosMoraga 3 ปีที่แล้ว +1

    Very nice. Your videos helped me a lot

  • @taranagnew436
    @taranagnew436 3 ปีที่แล้ว

    could i make a med reminder with a (time it goes off and wait 15 min and then goes off again)?

    • @notenoughtech
      @notenoughtech  3 ปีที่แล้ว

      Sure you have timed events in tasker

  • @EagleThePhoenix
    @EagleThePhoenix 3 ปีที่แล้ว

    What about empty variable? How can i check?

  • @martinhayward1735
    @martinhayward1735 2 ปีที่แล้ว

    Thank you, this helped me set up an interval timer.

  • @EnglishRain
    @EnglishRain 4 ปีที่แล้ว

    Hey thanks a ton for your great tutorial series! Small Question: i have created a variable %Names = "John,Mike,Alice,Mary" & set splitter to ",". How can i loop through each element of %Names & Flash each name 1 by 1 on the screen?
    EDIT = Found the solution, answer posted by u/Ratchet_Guy over here:) www.reddit.com/r/tasker/comments/a7yzbo/not_quite_sure_how_to_iterate_through_an_array/
    Thank you Uploader for your amazing videos, they helped a lot

    • @notenoughtech
      @notenoughtech  4 ปีที่แล้ว +1

      I'm glad you found it. Arrays are the way forward for this

    • @EnglishRain
      @EnglishRain 4 ปีที่แล้ว

      @@notenoughtech Thank you for your super quick reply! :D Highly appreciate you taking out the time and effort to post so many of these AMAZING video tutorials up here. God bless!!

    • @notenoughtech
      @notenoughtech  4 ปีที่แล้ว +1

      Thank you kindly. Pleasure is mine ;)

  • @abbeyroad.34
    @abbeyroad.34 8 ปีที่แล้ว

    Great video! Very useful thanks :D

  • @TillRaguin
    @TillRaguin 8 ปีที่แล้ว

    Nice videos, making what I want to achieve a little easier! I see you already saw what I posted in the Tasker community yesterday :-) (toggling between various profiles using an NFC tag based on time) Thanks!

    • @TillRaguin
      @TillRaguin 8 ปีที่แล้ว

      Helped me understand how to properly use that part. I have a Suzuki SV650S :-)

    • @TillRaguin
      @TillRaguin 8 ปีที่แล้ว

      +PolePosition That's really bad, what a shame. I also miss the freedom it gives, but I gave it up because I moved to another continent. I still ride it everytime I go back to visit my parents though :-) Hope you find one soon!

    • @TillRaguin
      @TillRaguin 8 ปีที่แล้ว

      +PolePosition Sure, once you can cross oceans by motorbike!! :-) I also have a bicycle here, that at least helpa a little bit hehe

  • @TheMrtur
    @TheMrtur 9 ปีที่แล้ว

    Czym się różni Equals od Maths: Equals?
    Wydaje mi się,że nie wpominałeś (a jeżeli tak to gdzie? ) o łączeniu if'ów w And, Or, Xor oraz to samo z (High Precedence) czyli And+, Or+ i Xor+

    • @TheMrtur
      @TheMrtur 9 ปีที่แล้ว

      +PolePosition Czyli Equals to tylko 2=2 (bez obliczeń) natomiast Match:Equals to obliczenia ale również 2=2 może być?
      Co do High Precedence to by sie przydało. Mam z tym delikatny problem szczerze pisząc szczególnie gdy rozbudowane np. jeżeli %xxx=1 i koniecznie %yyy=1 lub tylko %zzz=1 (ale nie ma to znaczenia dla wartości %xxx oraz %yyy). Nie wiem czy dobrze to wyjaśniłem :)

    • @TheMrtur
      @TheMrtur 9 ปีที่แล้ว

      +PolePosition Qrcze, nigdy w życiu nie stosowałem rysowania takich schematów, serio. Wiem,że koledzy sobie w ten sposób zawsze pomagają a jakiś inny jestem ;) Dlatego nigdy nie zajarzyłem programu Automagic gdzie każdy twierdził,że ze względu na schematy zdecydowanie łatwiejszy :)

    • @TheMrtur
      @TheMrtur 9 ปีที่แล้ว +1

      +PolePosition Dla przykładu jeszcze raz
      Mam 3 zmienne %xxx, %yyy, %zzz i teraz warunki
      prawda -> %xxx=1, %yyy=1 %zzz=bez znaczenia
      prawda ->%xxx=bez znaczenia, %yyy=bez znaczenia, %zzz=1
      fałsz -> pozostałe przypadki
      Czy to będzie
      %xxx=1 AND %yyy=1 OR+ %zzz=1? czyli jakby prawda ->(%xxx=1&%yyy=1)|%zzz=1?
      Jak wyglądało by rozrysowanie czegoś takiego (jeżeli masz cierpliowość i czas)?

  • @Rian_Lau_Rider
    @Rian_Lau_Rider 7 ปีที่แล้ว

    how can i see indonesian.?

    • @notenoughtech
      @notenoughtech  7 ปีที่แล้ว

      +Rian Lau Rider unless TH-cam captions are supported in Indonesia you won't be able

  • @TheMrtur
    @TheMrtur 9 ปีที่แล้ว

    Klasycznie nieśmiała prośba o napisy PL :)
    Dobrze widzę,że 998 subskrybcji? Czyli jeszcze dwie i tutki będą ;)

    • @mariuszturek6286
      @mariuszturek6286 9 ปีที่แล้ว

      +PolePosition masz 1000 ;), kolejnego zera na końcu liczby życzę :)

    • @TheMrtur
      @TheMrtur 9 ปีที่แล้ว

      +PolePosition Trudne pytanie, nie wiem ;)

    • @KylieDesire
      @KylieDesire 4 หลายเดือนก่อน

      Liczymy na to. Ps. Wie ktoś jak odpalać zadania odpowiednio dla dwóch animacji kodem w Taskerze, pętlę z GoTo etc aby się nie spowalniały wzajemnie?

  • @frrancuz2429
    @frrancuz2429 9 ปีที่แล้ว

    Dzienkujem :-)

    • @KylieDesire
      @KylieDesire 4 หลายเดือนก่อน

      Swietny opis. Pozdrowienia z Paryża, Francji.