Hi Tasker pros,
I need your help in achieving the following scenario:
I have a FOR loop:
for Var1 = a, b, c
Var2 = ....
What I need is:
for Var1=a, set Var2a to....
for Var1=b, set Var2b to....
....and so on
Is there a way to do this?
Thanks a lot in advance!
I haven't messed with for loops in Tasker, but you could do your example with three if statements.
if Var1=a, set Var2a to....
end if
if Var1=b, set Var2b to....
end if
....and so on
JimSmith94 said:
I haven't messed with for loops in Tasker, but you could do your example with three if statements.
if Var1=a, set Var2a to....
end if
if Var1=b, set Var2b to....
end if
....and so on
Click to expand...
Click to collapse
thanks for the suggestion! but that's not what I am trying to achieve.
Imagine this scenario: you have a list of 50 values, you set Var1 to each one of them. And each time you do, some variable is set - not the same variable set to certain values, but the other way around! If would be too....bulky I would say.
Related
I know this topic has been posted before however I cannot believe that all of the developers, cooks and fanatics in this forum are unable to provide a fix to this query which I would be more than happy to donate for.
The call history on my Kaiser is by default limited to storing the last 2 weeks which is not satisfactory whatsoever which is why I would like a fix so the Kaiser does not have a time limit on the call history. I would like all my calls to remain on my Kaiser untill such time as I delete them manually.
All I want to now is whether this is possible or is there a 3rd party program which can do this? Thanking you in advance. Richard
rwcozens said:
I know this topic has been posted before however I cannot believe that all of the developers, cooks and fanatics in this forum are unable to provide a fix to this query which I would be more than happy to donate for.
The call history on my Kaiser is by default limited to storing the last 2 weeks which is not satisfactory whatsoever which is why I would like a fix so the Kaiser does not have a time limit on the call history. I would like all my calls to remain on my Kaiser untill such time as I delete them manually.
All I want to now is whether this is possible or is there a 3rd party program which can do this? Thanking you in advance. Richard
Click to expand...
Click to collapse
Hi dude
I don't know the right registry tweak to fix it (maybe someother know it!) but you can try the SKTolls app, but it isn't free, more info about it here!
From the main menu -> Tune Up! -> Phone Edition Tab -> set it in the "Call history legth" option!!
Ciao
...again here
just now i found this registry key! Use any Regeditor and go here:
"HCU\ControlPannel\Phone" and edit the key "CallHistoryMax" but i don't well remember if the "0" value is for unlimited number or really 0, no history. However try first to set "0" , soft-reset and test it! If you haven't call history the "0" is that, so edit it again to a number you prefer (the limit is about 65500, anyway i think it's enough for you!)!
ok, wish granted, please send your donation to the creator of KaiserTweak.
the_passenger said:
ok, wish granted, please send your donation to the creator of KaiserTweak.
Click to expand...
Click to collapse
Haha! If only the OP had used the "search" feature to begin with! LOL!
Would gladly donate and fortunately not stupid enough not to search.
I have both kaiser tweak where I have set call log to "Never" and have SK Tools where I have set call history length to maximum.
Could these 2 programs be conflicting each other?
rwcozens said:
Would gladly donate and fortunately not stupid enough not to search.
I have both kaiser tweak where I have set call log to "Never" and have SK Tools where I have set call history length to maximum.
Could these 2 programs be conflicting each other?
Click to expand...
Click to collapse
I've both these two apps installed, but, in my device, i didn't realize any conflict!
@[email protected] said:
I've both these two apps installed, but, in my device, i didn't realize any conflict!
Click to expand...
Click to collapse
Thanks for the reply. How long does your call history stay on your kaiser for just to establish whether your tweaks etc are working?
rwcozens said:
Thanks for the reply. How long does your call history stay on your kaiser for just to establish whether your tweaks etc are working?
Click to expand...
Click to collapse
...mmmh,i cannot answer you, or better, it's not useful for your purpose, because i've setted the number limit to 200 and the time limit to 1 month (it's enough for me), however i can only say that untill i don't manually delete the call history, it's always stored on my device without problem!!!
Ciao
I installed the above OK, and did the settings, but still can't get it to work...can any kind soul advise on how to set it up, plz? I'm using Windows 6.5...thank you!
engager said:
I installed the above OK, and did the settings, but still can't get it to work...can any kind soul advise on how to set it up, plz? I'm using Windows 6.5...thank you!
Click to expand...
Click to collapse
try you check in http://forum.xda-developers.com/showthread.php?t=434977
I think you'll find the answer there
thank you dear friend for your response...will now check out that thread! Do you have this device?
engager said:
thank you dear friend for your response...will now check out that thread! Do you have this device?
Click to expand...
Click to collapse
yes, so what ..?
What's it not doing? Not announcing?
I played around with mine and eventually got it to work. For example I unchecked the "high priority only" on the message alert and got that to finally work. Not sure what constitutes a "high priority" other than any message from my wife, lol!
@RatRedux, thanks for your response! I just can't assign it to a button, also, I've the American version, and it can't really understand my British accent in most commands...how did you assign a button?
managed to remap the registry key as follows:
# Goto HKLM\Software\ Microsoft\Shell\Keys
* - Click Open Key named "40C6"
* - Change the 'Default' string name to "\Windows\Voice Command.lnk"
* - Now change the 'ResetCmd' string name to "\Windows\Voice Command.lnk"
Now close Registry, and go back to device and click the button on the top left side which is indicated by the 'Speak' Icon, and it should now work for you!
engager said:
@RatRedux, thanks for your response! I just can't assign it to a button, also, I've the American version, and it can't really understand my British accent in most commands...how did you assign a button?
Click to expand...
Click to collapse
I only ever used voice commands with my bluetooth headset so I never bothered to set a button on the phone. It works most of the time but it doesn't help that my wife and neice and daughter and sister in law have similar sounding names so it occasionally wants to dial the wrong relative lol! I turned off the announce incoming calls since my Blueant T1 has it's own built in voice caller ID. Though I must admit the lady who lives inside my phone sounds a bit nicer than the lady inside the bluetooth!
We haven't figured out how to set up Google voice in my wife's Android phone so I must give my old "brick" (as my wife calls it) a nod since it worked right away even on my old junk headset.
I've been really annoyed by AT&T's throttle and trying to find a way around it I've been playing with the root of the device with SQ Lite Editor and found this under:
1) Setting Storage
2) setting.db
3) secure
4) throttle_reset_day
Trying to change it's value from "20" to "0" to see if I can get my speed again but it can't be edited this way. Actually my billing cycle ends that day ("20")...... is there a way to edit that field so I can try if this can actually avoid throttling? Any Dev out there? I'll be happy to test any possibility......
Thanks people!
I could be wrong, but i believe i saw a thread in regards to this over in the captivate forum some time ago, and if im not mistaken this didnt work. But would still welcome someone to try it.
Hi,
I wanted to have a notification that always shows me the task that has me marked as busy in my calendars.
so I need a task that refreshs that notification whenever something changes. To achieve that I made 2 profiles:
-one profile is used to trigger the update task whenever the next appointment ends
-the other triggers whenever a new appointment starts
the update task not only creates the string for the notification but also refreshs the appoinment that ends next and also a string with all known appoinments. The second profile is triggered with a pattern match that always excludes all known appointments.
This way the second profile turns off itsself whenever a new appointment starts.
This way the whole thing works even if there are appointments that:
*start at the same time but do not end at the same time
*start at different times and end at different times
(if you don't have that: good for you ... no need to discuss it - I explained in the link below why this is not avoidable)
Now I still have one problem:
I do have appointments in my calendar that have slashes "/" (and many people might have when being invited by others). The list with the known appointments that is used as trigger for the second profile looks like this: "!appoinment1/appointment2" (the slash means "or"). If one of the titles contains a "/" that will keep the second profile on all the time and it will not trigger new appointments ...
unfortunately it seems like tasker cannot us other characters in that place (like regex) and it seems like I cannot even escpe the / slashes ("\/")
Any solution to that would be appreciated. And - maybe the code is usefull to others (there is a variable in the adjust_notif task in the very beginning that can be filled with the calendars that shall be shown in the notification - format "*cal1*/*cal2*/*cal3*" and so on)
Also for testing purposes I mad a variable %now to be able to change when the task is checking the calendar (of course this won't help when testing the profiles ...)
I started the discussion here but I think google groups is too unflexible (no file upload) and also ... too few people there ... and - I love XDA ...
best regards
Daniel
hmmm - testing if replacing the / with a + or * will help - would make the whole thing slightly unreliable but I actually don't think that would cause a problem ...
seems to work my perfectionism would prefer a better solution
However: how come the profile does not automatically update its status when I am in tasker? still shows green and only when I click it and go back it changes ...
good that I asked ... motivated me so that the thing is improved now. Still no real solution for finding / but a newer version with some bugs removed (callist did not really work with the old version)
I also made an additional profile with which it is possible to use "restore settings" so that now only one task "silent" is necessary to adjust to your personal needs.
Hi
I wonder where the palace is to discuss tasker projects ...
Here .... obviously not
Regards
daniu said:
Hi
I wonder where the palace is to discuss tasker projects ...
Here .... obviously not
Regards
Click to expand...
Click to collapse
interesting idea...
Have you tried putting all known appointments into a variable (appending, separated with a new line)? Then you can call on this variable to see if the current appointment has a match (with *%CurrentAppointVar*).
That way, there should be no slash in the match function.
alienyd said:
interesting idea...
Have you tried putting all known appointments into a variable (appending, separated with a new line)? Then you can call on this variable to see if the current appointment has a match (with *%CurrentAppointVar*).
That way, there should be no slash in the match function.
Click to expand...
Click to collapse
Hi
I don't get how that would remove the / from the text besides that I do check against a variable already if I understood your point correctly ...
Regards
daniu said:
Hi
I don't get how that would remove the / from the text besides that I do check against a variable already if I understood your point correctly ...
Regards
Click to expand...
Click to collapse
if I understood correctly, you have something like this:
current events: meeting/task1, meeting2, meeting3
new event: meeting4
if %new != meeting/task1/meeting2/meeting3
do something
which returns wrong results.
So I would try:
set %curr to
meeting/task1
meeting2
meeting3
(append, with new line after each event)
and then
if %new !match %curr
do.....
probably the appending part could be done with a FOR loop.
Hope this helps.
alienyd said:
if I understood correctly, you have something like this:
current events: meeting/task1, meeting2, meeting3
new event: meeting4
if %new != meeting/task1/meeting2/meeting3
do something
which returns wrong results.
So I would try:
set %curr to
meeting/task1
meeting2
meeting3
(append, with new line after each event)
and then
if %new !match %curr
do.....
probably the appending part could be done with a FOR loop.
Hope this helps.
Click to expand...
Click to collapse
Hmmm ... well - the problem is that I check against that string in a profile not in a task ... I ckeck if a new task starts that does not have a name within that string (of currently running appointments). In your example:
!meeting/task1/meeting2/meeting3
My way now is to change the check variable to:
!meeting*task1/meeting2/meeting3
which does jot work that bad after all ...
I am just generally a bit disappointed by this forum because I would love to have a place were there are enough ppl so that someone would be interested enough to actually install the project which even you obviously did not do.
Regards
daniu said:
Hmmm ... well - the problem is that I check against that string in a profile not in a task ... I ckeck if a new task starts that does not have a name within that string (of currently running appointments). In your example:
!meeting/task1/meeting2/meeting3
My way now is to change the check variable to:
!meeting*task1/meeting2/meeting3
which does jot work that bad after all ...
I am just generally a bit disappointed by this forum because I would love to have a place were there are enough ppl so that someone would be interested enough to actually install the project which even you obviously did not do.
Regards
Click to expand...
Click to collapse
sorry to say this, but obviously your project didn't raise enough interest, at least not for me. I guess people try to help where and how they can, without obligations. You should not expect much, especially when the project is complex...
just my 2 cents
Hi,
I'm not a newbie in tasker but currently at beginners level.
What i'm thinking is a way to send sms to a contact whenever i get a missed call but the sms text depends upon the number of calls missed in the past hour.
So what i want to do is to store all missed calls in a seperate file and update it the moment i miss a call alongwith the number of times in the past hour but clear it at the end of the day, then reply through sms based on number of times missed.
Times 1 - Sms text : i'm busy, will call you back soon
Times 2 - Sms text : i really cant pick up your calls
Times 3 - Sms text : this is your third time. If you call again i'll hunt you down and kill you
Times 4 & 4+ - Do nothing.
Thanks in advance
I'm not sure what's the question here.
You have all the logic, all you need is to try and convert it to actions in Tasker.
Try something, and come back with a specific question of what fails etc. Or post your description so we can help you.
---------- Post added at 08:18 PM ---------- Previous post was at 08:10 PM ----------
sbetatester said:
What i'm thinking is a way to send sms
Click to expand...
Click to collapse
Your last action for profile 1.
Rough breakdown:
sbetatester said:
to a contact whenever i get a missed call
Click to expand...
Click to collapse
Profile 1: received missed call
sbetatester said:
but the sms text depends upon the number of calls missed in the past hour.
Click to expand...
Click to collapse
Entry task to profile 1 to check how many times you got a call
sbetatester said:
store all missed calls in a seperate file
Click to expand...
Click to collapse
From the entry task, call this task to store numbers. I'd suggest one file per mobile number.
sbetatester said:
update it the moment i miss a call
Click to expand...
Click to collapse
This was as before, profile 1...
sbetatester said:
alongwith the number of times in the past hour
Click to expand...
Click to collapse
This can be in the above stored file with appropriate conditions.
sbetatester said:
but clear it at the end of the day
Click to expand...
Click to collapse
Profile 2: time context to delete all files
sbetatester said:
then reply through sms based on number of times missed.
Click to expand...
Click to collapse
Perform this task at the end of your entry task.
sbetatester said:
Times 1 - Sms text : i'm busy, will call you back soon
Times 2 - Sms text : i really cant pick up your calls
Times 3 - Sms text : this is your third time. If you call again i'll hunt you down and kill you
Times 4 & 4+ - Do nothing.
Click to expand...
Click to collapse
Your if conditions for the above task.
sumotori1 said:
I'm not sure what's the question here.
You have all the logic, all you need is to try and convert it to actions in Tasker.
Click to expand...
Click to collapse
Thanks for the rough breakdown.
The problem i was facing was with the variable set commands.
Anyway NVM, i'll just construct a profile first and post here to enable further discussions.
Don't get me wrong, I'm happy to help. Just need something a little more specific.
When you say you have an issue with variable set, what exactly is the issue? Keeping track of the variable in terms of calls? Actually setting a variable?
My first idea to your problem would be to write a file with filename the number that called and content to be appended as %TIME (this the file would have the times that person called). The number of lines in that file, naturally, is the total number of calls you've received (although it's a bit more advanced to extract the number of lines, can certainly help with that). Thus you don't need a global variable. For that.
sumotori1 said:
Don't get me wrong, I'm happy to help. Just need something a little more specific.
When you say you have an issue with variable set, what exactly is the issue? Keeping track of the variable in terms of calls? Actually setting a variable?
My first idea to your problem would be to write a file with filename the number that called and content to be appended as %TIME (this the file would have the times that person called). The number of lines in that file, naturally, is the total number of calls you've received (although it's a bit more advanced to extract the number of lines, can certainly help with that). Thus you don't need a global variable. For that.
Click to expand...
Click to collapse
The real problem here is that i'm unfamiliar with the variables since i'm not a IT grad.
This would be my second tasker application as i'm still at beginners level as mentioned in OP. So, i'll just give it a try based on tutorial and videos i have watched In the meanwhile before asking for help.
Thanks once again for your time.
I see. Then this is also a good place to start from. : )
If a variable has all its letters lower case, it is only available within the task in which it is specified. Once task is finished, variable is erased from memory.
If the variable has at least one capital letter, it becomes a so called global variable. This means you can access it's value from anywhere in Tasker.
This will help you get started. Start with something simple to understand how variables work. Slowly move to something more elaborate.
---------- Post added at 03:35 PM ---------- Previous post was at 03:18 PM ----------
I see. Then this is also a good place to start from. : )
If a variable has all its letters lower case, it is only available within the task in which it is specified. Once task is finished, variable is erased from memory.
If the variable has at least one capital letter, it becomes a so called global variable. This means you can access it's value from anywhere in Tasker.
This will help you get started. Start with something simple to understand how variables work. Slowly move to something more elaborate.
sumotori1 said:
I see. Then this is also a good place to start from. : )
If a variable has all its letters lower case, it is only available within the task in which it is specified. Once task is finished, variable is erased from memory.
If the variable has at least one capital letter, it becomes a so called global variable. This means you can access it's value from anywhere in Tasker.
This will help you get started. Start with something simple to understand how variables work. Slowly move to something more elaborate.
---------- Post added at 03:35 PM ---------- Previous post was at 03:18 PM ----------
I see. Then this is also a good place to start from. : )
If a variable has all its letters lower case, it is only available within the task in which it is specified. Once task is finished, variable is erased from memory.
If the variable has at least one capital letter, it becomes a so called global variable. This means you can access it's value from anywhere in Tasker.
This will help you get started. Start with something simple to understand how variables work. Slowly move to something more elaborate.
Click to expand...
Click to collapse
Hi once again,
I did a workout based on the information collected from various sources and made this.
Now could you suggest how can i count the number of times person called in a specific hour because if another person calls between the first, the count resets.
Basically, i just have to store %TIME variable alongwith the number and compare time of last 3 and last entry
If within one hour count =1/2/3 then execute commands else ignore.
That looks quite good for a first effort!
Couple of points:
1. No need to save the number both as the file name and the file contents. It's redundant.
2. The if statements in the end, can be combined in a long if else if statement (as you've done before).
3. You are right, since your variable Counter is not specific to a number, it will get cleared when another number calls.
I combined points 1 and 3 above, and decided to save the time and the counter variable inside your file instead. Please see my attached task. It looks complicated, but once you know Tasker flow you can make it work. Not sure if this is the best implementation I've done.
Please also note how I have tried to include as many comments, for you to be able to follow what I am doing and try to debug it if you face issues. Before tinkering with it, try to understand it. You might find mistakes in there!
Time I've used is 4hrs, but you can reduce that
sumotori1 said:
That looks quite good for a first effort!
Couple of points:
1. No need to save the number both as the file name and the file contents. It's redundant.
Click to expand...
Click to collapse
I originally planned %CNUM % TIME but I guess you are right as the file name itself tells the number.
sumotori1 said:
2. The if statements in the end, can be combined in a long if else if statement (as you've done before).
Click to expand...
Click to collapse
Yup, i realised it later on.
sumotori1 said:
3. You are right, since your variable Counter is not specific to a number, it will get cleared when another number calls.
I combined points 1 and 3 above, and decided to save the time and the counter variable inside your file instead. Please see my attached task. It looks complicated, but once you know Tasker flow you can make it work. Not sure if this is the best implementation I've done.
Click to expand...
Click to collapse
The solution you came up with was although different from mine but it was time saving and simple in terms of coding for you because i guess reading the number of lines then storing last line and 3 lines above the last line would become more complex.
sumotori1 said:
Please also note how I have tried to include as many comments, for you to be able to follow what I am doing and try to debug it if you face issues. Before tinkering with it, try to understand it. You might find mistakes in there!
Click to expand...
Click to collapse
Thank you so much for the detailed explanation. It made the hard code easy enough to be understandable by anyone.
However, even with the help of your explanations it took me 2 hours to understand the splitter variable but i finally got it. Now i just have to practice split with a few examples
sumotori1 said:
Time I've used is 4hrs, but you can reduce that
Click to expand...
Click to collapse
I have modified the file according to my needs. Once again thanks for your time and wisdom.
Lastly, i'll modify it to save %CNAME as file name instead of %CNUM because my event context is Missed Call from contacts only and if the same person calls from another one of his number %CNUM won't work.
sbetatester said:
However, even with the help of your explanations it took me 2 hours to understand the splitter variable but i finally got it. Now i just have to practice split with a few examples.
Click to expand...
Click to collapse
Hah, yes this is a tricky one.
sbetatester said:
I have modified the file according to my needs. Once again thanks for your time and wisdom.
Click to expand...
Click to collapse
You're most welcome.
sbetatester said:
Lastly, i'll modify it to save %CNAME as file name instead of %CNUM because my event context is Missed Call from contacts only and if the same person calls from another one of his number %CNUM won't work.
Click to expand...
Click to collapse
Yes, in this context, CNAME will work a lot better and also create a better visual structure in your file system. Good thought!
Perhaps you can also put all the files in an additional subfolder, instead of the Tasker base folder. Maybe CallLogs folder or something. Then, every night, you can clear all files in the folder like this (task attached):
Code:
PurgeFiles (296)
<List all files in your desired directory.>
A1: List Files [ Dir:Tasker/CallLogs Match: Include Hidden Files: Off Use Root: Off Sort Select: Alphabetic Variable:%filelist ]
<For loop for the length of items in your file list>
A2: For [ Variable:%counter Items:1:%filelist(#) ]
<Delete the file>
A3: Delete File [ File:%filelist(%counter) Shred Level: 0 Use Root: Off ]
<End for - delete loop>
A4: End For
sumotori1 said:
Perhaps you can also put all the files in an additional subfolder, instead of the Tasker base folder. Maybe CallLogs folder or something. Then, every night, you can clear all files in the folder like this (task attached):
Code:
PurgeFiles (296)
<List all files in your desired directory.>
A1: List Files [ Dir:Tasker/CallLogs Match: Include Hidden Files: Off Use Root: Off Sort Select: Alphabetic Variable:%filelist ]
<For loop for the length of items in your file list>
A2: For [ Variable:%counter Items:1:%filelist(#) ]
<Delete the file>
A3: Delete File [ File:%filelist(%counter) Shred Level: 0 Use Root: Off ]
<End for - delete loop>
A4: End For
Click to expand...
Click to collapse
This would be even better because if the same person doesn't call again in lets say x days then his file will remain in storage for x number of days.
And you won't believe that i was actually creating a code to delete all files at 00:00 everyday when i saw your post.
Hehe, cool!