Please don't think this question is too retarded, even if it sounds so! What I can't seem to do with Tasker is to uphold one of the most emphasized principles which I learned in a couple of coding classes which I took (but unfortunately never applied) decades ago, and I seem to have hit a wall doing this with Tasker.
Per the principle I learned of always leaving the user an out, thats really all I'm trying to do. From a program which will do:
- ICS really bastardized my GPS control through apps such as Tasker, and I'm holding out on rooting until somebody finds an S-OFF method for my new phone. So what I want to do for my version of the parking place location task is to first bring up the Location Settings. Upon leaving the Settings dialog, an IF-END IF statement should check that GPS (%GPS~on) is enabled. If not, it will form a Goto loop back to the statement which brought up the Location Settings, and repeat this until I have enabled GPS so that my Task functions can be carried out.
- Just in case I happened to have opened that Task by accident, I want a prompt so that I can break the loop without enabling GPS, and exit the task. What I've tried so far goes something like IF (user-defined variable) ~ "yes" then Goto 1, if "no" then stop (or go to a Stop statement in the last Task statement), but the question is how do I do that with Tasker? What I have tried so far:
- Define a variable, Set %CONT ~ "no"
- From an IF-END IF statement, launch an Alert->Menu with the text "Do you wish to continue?"
- Mark two Tasks, one labeled "Yes", the other "No"
- Procede to Variable Set for each Task, PROBLEM: Tasker doesn't see my set variable %CONT (I tried different names too) from here!
2.
- Forget about the user-defined variable, and forget about the Goto statement external to this Alert dialog.
- From an IF-END IF statement, launch an Alert->Menu with the text "Do you wish to continue?"
- Mark two Tasks, one labeled "Yes", the other "No"
- For the "Yes" Task, define a Goto statement for it back to the start of SetLoc (the Task in which this Menu Alert and it's Tasks exist, PROBLEM: This nested Task doesn't recognize the Statement numbers of the task which it is nested in - it can't see beyond it's own Task numbers!
- For the "No" Task, same PROBLEM when trying to issue a "STOP" statement from within this nested, with the intention to end SetLoc), The nested Task (and the only tool which I seem to have from withing the Menu Alert box) can only end the nested Task, it seems incapable of ending SetLoc for me.
After looking at all of the tools available as Alert tasks, I didn't see anything there which looked better for the job than the Menu, but with this I have not seen any way of moving within it's parent Task, nor of controlling it. I don't know what else I would use to solicit input and act on it when it comes to controlling a running program, but I'm fairly certain this sort of need is not uncommon, however lame my workaround idea may be for Google's latest shenanigans. I never looked at Scenes, which I would use to set up primary menu functions, but it would seem a bit much for just an opt-out. However, I do feel that this opt-out (or at least knowing how to set one up with any programming tool which I use) is important, so whatever I need to do to control a running problem like this, please help!