AutoTools Webscreen and %atcommand problem

Discussion in 'AutoApps' started by Chris111, Nov 7, 2017.

  1. Chris111

    Chris111 New Member

    Joined:
    Nov 7, 2017
    Messages:
    3
    Likes Received:
    0
    hey, on my autotools webscreen when I set the %atcommand once tasker reacts as expected but when I set the %atcommand more than once it doesn't work.
    Example: sliding an image to the left on my webscreen sets the %atcommand and tasker takes me to my phones homescreen which is what I want. But if I set the %atcommand beforehand by doing something else, like by sliding a menu (but still staying on the webscreen) and then slide the image to go to my homescreen it doesn't work. A message pops up saying the %atcommand has changed to what I want but nothing happens. Do I need to reset the %atcommand or something?
    Also, is there a way to change the webscreen's timeout value after the webscreen has been created? or a way to close it without relying on the timeout? and is there a way to stop the popup messages that show everytime I set %atcommand? Thanks.
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Can you please export your profile's description (not xml) so I can take a look? Long-click the profile in Tasker->export description Thanks in advance
     
  3. Chris111

    Chris111 New Member

    Joined:
    Nov 7, 2017
    Messages:
    3
    Likes Received:
    0
    Atm if A43's condition is met via user input from the web screen (and tasker flashes "test"), A44 and A45 doen't work, but if A43's condition isn't met then A44 or A45 will work when their condition is met.
    Code (Text):
    Test Website Universe (2)
    A1: Variable Set [ Name:%count To:0 Recurse Variables:Off Do Maths:Off Append:Off ]
    A2: If [ %SCREEN ~ on ]
    A3: Variable Set [ Name:%aqmfrom To:Chris Recurse Variables:Off Do Maths:Off Append:Off ]
    A4: Variable Set [ Name:%aqmsubject To:this is a test how are you today Recurse Variables:Off Do Maths:Off Append:Off ]
    A5: End If
    A6: Variable Search Replace [ Variable:%aqmfrom Search:\<.*\> Ignore Case:Off Multi-Line:Off One Match Only:On Store Matches In: Replace Matches:On Replace With: ]
    A7: Variable Search Replace [ Variable:%aqmfrom Search:Dan\sH|Chris|Peter\sLewin Ignore Case:On Multi-Line:On One Match Only:Off Store Matches In:%filter Replace Matches:Off Replace With: ]
    A8: Stop [ With Error:Off Task: ] If [ %filter1 !Set ]
    A9: Variable Set [ Name:%spa To:  Recurse Variables:Off Do Maths:Off Append:Off ]
    A10: Variable Set [ Name:%from To: Fr:%spa Recurse Variables:Off Do Maths:Off Append:Off ]
    A11: Variable Set [ Name:%aqmfrom To: %from%aqmfrom Recurse Variables:Off Do Maths:Off Append:Off ]
    A12: Test Variable [ Type:Length Data:%aqmfrom Store Result In:%aqmfrom_len ]
    A13: Variable Set [ Name:%aqmfrom_math To:%aqmfrom_len*0.6 Recurse Variables:Off Do Maths:On Append:Off ]
    A14: Variable Set [ Name:%aqmfrom_seconds To:(%aqmfrom_math)/8 Recurse Variables:Off Do Maths:On Append:Off ]
    A15: Variable Set [ Name:%aqmfrom_seconds To:s Recurse Variables:Off Do Maths:Off Append:On ]
    A16: Variable Set [ Name:%aqmfrom_math To:em Recurse Variables:Off Do Maths:Off Append:On ]
    A17: Variable Set [ Name:%subj To:Subj:%spa Recurse Variables:Off Do Maths:Off Append:Off ]
    A18: Variable Set [ Name:%aqmsubject_m To:%subj%aqmsubject Recurse Variables:Off Do Maths:Off Append:Off ]
    A19: Variable Search Replace [ Variable:%aqmsubject_m Search:(?<=\s|^).{0,17}(?=\s|$) Ignore Case:Off Multi-Line:On One Match Only:On Store Matches In:%aqmsubject Replace Matches:On Replace With: ]
    A20: Variable Set [ Name:%aqmsubject To:%aqmsubject1%spa Recurse Variables:Off Do Maths:Off Append:Off ]
    A21: Test Variable [ Type:Length Data:%aqmsubject Store Result In:%aqmsubject_len ]
    A22: Variable Set [ Name:%aqmsubject_math To:%aqmsubject_len*0.6 Recurse Variables:Off Do Maths:On Append:Off ]
    A23: Variable Set [ Name:%aqmsubject_seconds To:(%aqmsubject_math)/8 Recurse Variables:Off Do Maths:On Append:Off ]
    A24: Variable Set [ Name:%aqmsubject_seconds To:s Recurse Variables:Off Do Maths:Off Append:On ]
    A25: Variable Set [ Name:%aqmsubject_math To:em Recurse Variables:Off Do Maths:Off Append:On ]
    A26: Variable Search Replace [ Variable:%aqmsubject_m Search:(?<=\s|^).{0,12}(?=\s|$) Ignore Case:Off Multi-Line:On One Match Only:On Store Matches In:%aqmsubject2nd Replace Matches:On Replace With: ]
    A27: Goto [ Type:Action Label Number:1 Label:second ] If [ %aqmsubject2nd1 !Set ]
    A28: Test Variable [ Type:Length Data:%aqmsubject_m Store Result In:%dots ]
    A29: If [ %dots > 1 & %aqmsubject_m neq \%aqmsubject_m ]
    A30: Variable Set [ Name:%aqmsubject2nd1 To:... Recurse Variables:Off Do Maths:Off Append:On ]
    A31: End If
    A32: Test Variable [ Type:Length Data:%aqmsubject2nd1 Store Result In:%aqmsubject2nd_len ]
    A33: Variable Set [ Name:%aqmsubject2nd_math To:%aqmsubject2nd_len*0.6 Recurse Variables:Off Do Maths:On Append:Off ]
    A34: Variable Set [ Name:%aqmsubject2nd_seconds To:(%aqmsubject2nd_math)/8 Recurse Variables:Off Do Maths:On Append:Off ]
    A35: Variable Set [ Name:%aqmsubject2nd_seconds To:s Recurse Variables:Off Do Maths:Off Append:On ]
    A36: Variable Set [ Name:%aqmsubject2nd_math To:em Recurse Variables:Off Do Maths:Off Append:On ]
    <second>
    A37: AutoTools Web Screen [ Configuration:Display Mode: Immersive
    Source: /storage/emulated/0/Download/pink_universe_texture.html
    Toast Duration: 5000
    Height: 400
    Gravity: Center
    Animation: Slide In From Top
    Show Duration: 500
    Hide Duration: 250
    Reload Command: %atcommand
    Local Commands: true
    Content Element ID: scoped
    HTML to inject: <style type="text/css" scoped>
    .line-1{ position: relative;
    top: 3.5%; width: %aqmfrom_math; margin: 0 auto; border-right: 2px solid rgba(255,255,255,.0); font-size: 150%; text-align: center; white-space: nowrap; overflow: hidden; transform: translateY(-50%); z-index:3; left:-15%; }

    .anim-typewriter{
      animation: typewriter %aqmfrom_seconds steps(%aqmfrom_len) 1s 1 normal both,
      blinkTextCursor 600ms steps(%aqmfrom_len) 6 normal;
    }
    @keyframes typewriter{
      from{width: 0;}
      to{width: %aqmfrom_math;}
    }
    @keyframes blinkTextCursor{
      from{border-right-color: rgba(255,255,255,.75);}
      to{border-right-color: purple;}
    }


    .line-2{ position: relative; top: 3.5%; width: %aqmsubject_math; margin: 0 auto; border-right: 2px solid rgba(255,255,255,.0); font-size: 150%; text-align: center; white-space: nowrap; overflow: hidden; transform: translateY(-50%); z-index:3; left:-15%; }

    .anim-typewriter-2{
      animation: typewriter-2 %aqmsubject_seconds steps(%aqmsubject_len) 1s 1 normal both,
      blinkTextCursor-2 600ms steps(%aqmsubject_len) 7 normal;
    }
    @keyframes typewriter-2{
      from{width: 0;}
      to{width: %aqmsubject_math;}
    }
    @keyframes blinkTextCursor-2{
      from{border-right-color: rgba(255,255,255,.75);}
      to{border-right-color: purple;}
    }


    .line-3{ position: relative; top: 3.5%; width: %aqmsubject2nd_math; margin: 0 auto; border-right: 2px solid rgba(255,255,255,.0); font-size: 150%; text-align: center; white-space: nowrap; overflow: hidden; transform: translateY(-50%); z-index:3; left:-15%; }

    .anim-typewriter-3{
      animation: typewriter-3 %aqmsubject2nd_seconds steps(%aqmsubject2nd_len) 1s 1 normal both,
      blinkTextCursor-3 600ms steps(%aqmsubject2nd_len) 8 normal;
    }
    @keyframes typewriter-3{
      from{width: 0;}
      to{width: %aqmsubject2nd_math;}
    }
    @keyframes blinkTextCursor-3{
      from{border-right-color: rgba(255,255,255,.75);}
      to{border-right-color: purple;}
    }

    </style>
    Get HTML: true Timeout (Seconds):13 Continue Task After Error:On ]
    A38: AutoTools Web Screen [ Configuration:Display Mode: Immersive
    Source: %athtml
    Toast Duration: 5000
    Height: 400
    Gravity: Center
    Animation: Slide In From Top
    Show Duration: 500
    Hide Duration: 250
    Wait For Command: true
    Local Commands: true
    Content Element ID: subject
    HTML to inject: %aqmsubject
    Get HTML: true Timeout (Seconds):13 Continue Task After Error:On ]
    A39: AutoTools Web Screen [ Configuration:Display Mode: Immersive
    Source: %athtml
    Toast Duration: 5000
    Height: 400
    Gravity: Center
    Animation: Slide In From Top
    Show Duration: 500
    Hide Duration: 250
    Wait For Command: true
    Local Commands: true
    Content Element ID: subject2
    HTML to inject: %aqmsubject2nd1
    Get HTML: true Timeout (Seconds):13 Continue Task After Error:On ]
    A40: AutoTools Web Screen [ Configuration:Display Mode: Immersive
    Source: %athtml
    Toast Duration: 5000
    Height: 400
    Gravity: Center
    Animation: Slide In From Top
    Show Duration: 500
    Hide Duration: 250
    Wait For Command: true
    Local Commands: true
    Content Element ID: sender
    HTML to inject: %aqmfrom Timeout (Seconds):12 ]
    <count>
    A41: Variable Add [ Name:%count Value:1 Wrap Around:0 ]
    A42: Wait [ MS:469 Seconds:0 Minutes:0 Hours:0 Days:0 ]
    A43: Flash [ Text:Test Long:Off ] If [ %atcommand eq O ]
    A44: Launch App [ App:Gmail Data: Exclude From Recent Apps:Off Always Start New Copy:Off ] If [ %atcommand eq L ]
    A45: Go Home [ Page:0 ] If [ %atcommand eq R ]
    A46: Goto [ Type:Action Label Number:1 Label:count ] If [ %count < 20 ]
    A47: Launch App [ App:Screen Off Data: Exclude From Recent Apps:Off Always Start New Copy:Off ] If [ %atcommand neq O | %atcommand neq R | %atcommand neq L ]
     
    Last edited by a moderator: Nov 8, 2017
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Oh I see. :) You need to create a new profile with an AutoApps condition and react there. Check out this example. Hope this helps!
     
  5. Chris111

    Chris111 New Member

    Joined:
    Nov 7, 2017
    Messages:
    3
    Likes Received:
    0
    thanks
     
: webscreen

Share This Page