http://tieba.baidu.com/p/3695018030
Thanks silently for the Tasker to dedicate the person!
Configured for > missed calls
Task for > Code >javascriptlet
The code is:
varA=global ("%cnum");varS=global ("%cdate"). Split ("-");varT=global ("%ctime"). Split ("."));varb=NewDate (s[0],s[1]-1,s[2],t[0],t[1]). GetTime ();varC=global ("%gaad");if(c== "") C="{}";varData=Json.parse (c);varX=0; for(varIinchdata) { if(i==a) {x=1; if(data[i][0]==1) {data[i][0]++; data[i][2]=b; } Else { varTmp=b-parseint (data[i][1]); if(tmp<600000)//modification time, upstream less than 10 minutes trigger{Vibrate (200); Flash ("Success"); } //The preceding curly brackets are modified to the tasks that you intend to performdata[i][0]=2; data[i][1]=data[i][2]; data[i][2]=b; } }}if(x==0) {Data[a]=[]; data[a][0]=1; data[a][1]=b;}varE=json.stringify (data); Setglobal ("%gaad", E); alert (e); //alert (e) may be deleted.
The function of the task is to store all missed calls and time, if 3 times within 10 minutes to trigger the task.
The task can change the flower bracket into: performtask ("Tasker task");
TASKER phone automatically replies to SMS when three missed calls with the same number