> I've made a simple task that activated by pressing my bt button to switch apps I mainly use during driving. As a test, I made these 2 apps to switch one another. Problem is if My %WIN is Waze, my tak stop and won't launch whatsapp.
Check the run log (menu / more / runlog). If you set a local variable to %WIN as the first action in the task you will be able to see the value of %WIN (in the log) just before the IF action.
But when whatsapp is in %WIN position it will launch Waze.
It actually looks like if %WIN matches 'anything exept' Waze then it will launch Whatsapp.
I've tried experimenting using variable set and it worked flawlessly.
Could you explain what you did and what worked?
What did I miss? I also have another profile using %WIN as trigger. In this profile I use if there is no waze on my screen then destroy scene. Is this connected to my switch app task somehow?
Not sure, can you post that profile as well.
>
> Hello Rich D...
>
> Here is my other profile that triggered by %WIN == WAZE
>
> Profile: Scene Overlay Zello (50)
> Priority: 4 Restore: no Enforce: no
> State: Variable Value [ %WIN ~ Waze ]
> Enter: Toggle (37)
> A1: Show Scene [ Name:Overlays Display As:Overlay, Blocking Horizontal Position:3 Vertical Position:100 Animation:System Show Exit Button:On Continue Task Immediately:On ]
> A2: Perform Task [ Name:Switch App Priority:3 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ]
>
> Exit: Close Scene (40)
> A1: Destroy Scene [ Name:Overlays ]
> A2: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
>
> This profile works as expected. But my App Switcher above will stuck while %WIN ==WAZE.
>
I would suspect the %WIN value is changing to the scene name when you show the scene. You can check this as i suggested before by setting %WIN to a local variable as the first action in the task. Then check the run log to see what it was set to.
The fix would be to add the %WIN value of your scene to if action.
A1: If [ %WIN ~ Waze/Your scene Win Value ]
That will 'or' the 2 values.
> 20150327 16.12.09 A OK ID44.2 Switch App.Secure Settings
> 20150327 16.12.09 A OK ID44.3 Switch App.If
> 20150327 16.12.09 A OK ID44.4 Switch App.Launch App
> 20150327 16.12.09 A OK ID44.5 Switch App.Flash
> 20150327 16.12.09 A OK ID44.6 Switch App.Else
> 20150327 16.12.09 A OK ID44.18 Switch App.Var Clear, %Appswitch=%Appswitch
It looks like IF action worked on this iteration of the task.
> --
> You received this message because you are subscribed to the Google Groups "Tasker" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
> Visit this group at http://groups.google.com/group/tasker.
> For more options, visit https://groups.google.com/d/optout.
It looks like you changed some things,
Could you re-post the exported descriptions.
> 20150327 16.12.09 A OK ID44.2 Switch App.Secure Settings
What is this action doing?
Check for extra white spaces in the "Waze" match in the if action
Try adding the same variable set lower in the task. IE after the secure settings action and the just after the 'else' action.