> So, I'd like to set up a delay for this task: ie. the app/action is
> launched only if the proximity sensor is covered for more than, say, one
> second (as when this task is enabled, it is very easy to inadvertently lock
> the screen).
Profile: Prox
Context: State: Proximity
Task:
Wait 1 Second
System Lock If %PACTIVE Matches *,Prox,*
> I have the problem, that the %PACTIVE doesn't reset fast enough. I tried a profile where I lock the display after five seconds, when Proximity is on. After five seconds (with "Wait") I check again if %PACTIVE still contains Off, if not I don't lock the display.
> If I use an own variable which I reset with another (second) profile if Proximity is off, this works without problem. If I use the system variable %PACTIVE this doesn't work, maybe it doesn't contains Off, after five seconds, but the Proximity is off.
> It is not reliable at all, with own variable and two profiles, no problem.
Enable and check the run log to see how things are actually flowing. I have never had any delays or issues with the %PACTIVE variable. In fact It should be faster and more reliable then a global variable set with a profile.
If you can not figure it out, paste your exported profile description with the run log results here.
To post your profile or task here... Long press on the profile or task name / ( 3 dot menu with 4.0+ ) export / export description to clipboard (not XML)
Any linked tasks will be exported with the profile they are linked to..
To be able to export, The beginner mode needs to be off and the profile needs to be named by you (Not the Tasker listed name. Tasker will list your profile with the context name if you have not given it one).
Is the profile name "off"?
Matt
Profile: Display Off (93)
State: Proximity Sensor
Application: Not Kamera, Kamera...
State: Not Call [ Type:Any Number:* ]
Enter: DisplayOff (99)
A1: Wait [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ]
A2: If [ %PACTIVE ~ *,Display Off,* ]
A3: Secure Settings [ Configuration:Lock Device Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
> Another thing I noticed often in the last times: when I edit a Profile this works only if I close tasker and restart it. This normal?
Yes. Most edits to tasks do not need to be saved before running in tasker but contexts definitely do need to be saved first.
> Second thing, sometimes really bad annoying: I work on a Action a while, close Tasker, reopen it again and all my work has gone,
I do not believe this has ever happened to me. The only scenario I can think of that might cause this would be if you did not properly save out of tasker by using menu exit / save or by using the back button. Perhaps if you used the home button then if tasker is killed by android or another app i believe you would lose your edits.
Do you have tasker set to run in background in tasker preferences? It is much more likely to be stopped by android if it is running in the background.
> Second thing, sometimes really bad annoying: I work on a Action a while, close Tasker, reopen it again and all my work has gone,
I do not believe this has ever happened to me. The only scenario I can think of that might cause this would be if you did not properly save out of tasker by using menu exit / save or by using the back button. ...
> I always leave with BACK button. I guess this does not automatically save the task or scene (it happened me sometimes in scenes too !)?
Using the back button to exit tasker should definitely save all tasker data. You could try the menu / exit / save to see if it makes a difference.
> I have no 'save' in the menu, there is only 'Exit', which exits
> immediately, no 'save' after this menu.
> I guess you mean 'Exit' which does a implicite 'save'?
You will only see the save option if you have made changes and there is something to save.
>
> Is there any menu item where I can explitely save a task, like this
If you mean 'save and continue' IE -save and do not exit then no, It has been asked for before but I can not recall Pents response. It would be a very useful option. :)
> I guess you mean 'Exit' which does a implicite 'save'?
You will only see the save option if you have made changes and there is something to save.
If you mean 'save and continue' IE -save and do not exit then no, It has been asked for before but I can not recall Pents response. It would be a very useful option. :)