Ir al contenido principal

Entradas

Mostrando entradas de mayo, 2014

Tasker: Profiles with priorities

Hi!

If you read Tasker docs, you may find that with Tasker its not possible to establish actions based on profile priorities if you have two of them activated at the same time; in the other hand Setting Profiles is a unmantained old app that can do this, but have no scripting capabilities like Tasker.

Here is the solution using Tasker powerful environment. The main idea is to do this:

Profiles/Init (44)
A1: If [ %Profiles_pactivelast Is Set & %Profiles_pactivelast !~ %PACTIVE ]
A2: Perform Task [ Name:Profiles/Profile/Default Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ] 
A3: Variable Set [ Name:%profile_priority To:Work,Class,Study,Sleep,Low battery, Charging weak,Charging strong Do Maths:Off Append:Off ] 
A4: Variable Split [ Name:%profile_priority Splitter:, Delete Base:Off ] 
A5: For [ Variable:%profile Items:%profile_priority() ] 
A6: [X] Flash [ Text:%profile Long:Off ] 
A7: [X] Wait [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ] 
A8: If [ %PACT…