Triggered Profil an Task übergeben

  • 4 Antworten
  • Letztes Antwortdatum
R

riker1

Neues Mitglied
0
Hallo
Wie kann ich das trinkende Profil an den task übergeben.
Welche variable wird genommen? die Variable %PACTIVE gibt ja nur eine Liste aller aktiven Variablen
Danke
 
Wenn das für mich wichtig war, hab ich den Task nur von einem einzigen Profil aufrufen lassen und für das andere Profil den Task kopiert und angepasst. Ich verstehe den Drang, Tasks zu sparen aber ob es am Ende in verschiedenen Tasks steht oder in einem aber mit Fallunterscheidung getrennt werden muss, macht wenig Unterschied. Verschiedenen Tasks finde ich sogar übersichtlicher und weniger fehleranfällig.
 
Danke für den workaround
Aber es kann doch nicht so schwierig sein dass Trigger Profil zu erkennen?
Gerade in der Entwicklungsphase entstehen zig Tasks, wird dann schnell unübersichtlich
 
Was den Task ausgelöst hat, wird im Variable-Array %caller() gespeichert.

Tasker: Variables
  • Task Caller
    %caller
    A variable array tracing the origin of the current running task. %caller1 gives the origin of the current task, %caller2 the origin of %caller1etc.
    Example: if task A uses action Perform Task to start task B, then when task A is run by pressing the Play button in the task edit screen, %caller1 in task B will show task=A, %caller2 will show ui.
    The format of each entry in the array is callertype(=callername(:subcallername))
    Caller types ares detailed below:
    • profile
      a profile (when it's state changes). callername is either enter or exit depending on whether the profile activated or deactivated. subcallername is the name of the profile, if it has one, otherwise anon
    • scene
      a scene event, with callername being the scene name. For element events, subcallername is the element name. For action bar button presses, subcallername is the label if one was given. For scene-global events (e.g. Key), subcallername is event type
    • ui
      the Play button in the task edit screen in the Tasker UI
    • launch
      clicking a child application icon in the launcher
    • nbutton
      a notification action button, either from Tasker's permanent notification or one created with one of the Notify actions. callername specifies the label of the button if present.
    • external
      an external application
    • qstile
      a Quick Settings tile. callername specifies the label of the tile.
    • appshort
      an app shortcut (accessed via long-click on the Tasker icon). callername specifies the label of the tile.
    • task
      another task, from a Perform Task action. subcallername is the task name, if it has one, otherwise anon
    • powermenu
      the power menu on Android 11+.
    • flash
      A tap on a Toast created by the Flash action
 
  • Danke
Reaktionen: bbfh und riker1
Danke werde ich probieren
 

Ähnliche Themen

coolzero3389
Antworten
1
Aufrufe
474
coolzero3389
coolzero3389
R
Antworten
2
Aufrufe
108
RS1977
R
R
Antworten
3
Aufrufe
127
holms
holms
M
Antworten
7
Aufrufe
218
MeinNickname
MeinNickname
B
Antworten
3
Aufrufe
338
hemue
H
Zurück
Oben Unten