半夜折腾了下Tasker,现在继续,想着可以实现远程转发,然后就是一阵搜索,最后还是顺利的搜索到了。
原文地址:《Tasker 实现转发短信和远程给指定号码发短信》
为了防止原文失效,下面粘贴下原文。
注:我按照原文内容导入修改%NUM后,转发无效。
远程发送短信的方法为设置%NUM 变量后将收到指定号码的短信后按格式发送。
10010:cxll
就是将 cxll 发送给 10010
https://gist.github.com/codexss/3bf7369e7ef40372f5ea93b26692141b(需要搭梯子)
为了方便还是直接粘贴在下面
<TaskerData sr="" dvi="1" tv="5.0b9m"> <Profile sr="prof2" ve="2"> <cdate>1504855112439</cdate> <clp>true</clp> <edate>1504968962389</edate> <id>2</id> <mid0>3</mid0> <nme>短信转发</nme> <Event sr="con0" ve="2"> <code>7</code> <pri>0</pri> <Int sr="arg0" val="0"/> <Str sr="arg1" ve="3"/> <Str sr="arg2" ve="3"/> </Event> </Profile> <Task sr="task3"> <cdate>1504855116257</cdate> <edate>1504968925355</edate> <id>3</id> <nme>转发</nme> <pri>100</pri> <Action sr="act0" ve="7"> <code>354</code> <Str sr="arg0" ve="3">%NUM</Str> <Str sr="arg1" ve="3">修改为你的手机号</Str> <Str sr="arg2" ve="3"/> </Action> <Action sr="act1" ve="7"> <code>37</code> <ConditionList sr="if"> <Condition sr="c0" ve="3"> <lhs>%SMSRF</lhs> <op>4</op> <rhs>%NUM</rhs> </Condition> </ConditionList> </Action> <Action sr="act2" ve="7"> <code>123</code> <Str sr="arg0" ve="3">echo %SMSRB|cut -d : -f 1</Str> <Int sr="arg1" val="0"/> <Int sr="arg2" val="0"/> <Str sr="arg3" ve="3">%r_1</Str> <Str sr="arg4" ve="3"/> <Str sr="arg5" ve="3"/> </Action> <Action sr="act3" ve="7"> <code>123</code> <Str sr="arg0" ve="3">echo %SMSRB|cut -d : -f 2</Str> <Int sr="arg1" val="0"/> <Int sr="arg2" val="0"/> <Str sr="arg3" ve="3">%r_2</Str> <Str sr="arg4" ve="3"/> <Str sr="arg5" ve="3"/> </Action> <Action sr="act4" ve="7"> <code>41</code> <Str sr="arg0" ve="3">%r_1</Str> <Str sr="arg1" ve="3">%r_2</Str> <Int sr="arg2" val="0"/> </Action> <Action sr="act5" ve="7"> <code>43</code> </Action> <Action sr="act6" ve="7"> <code>41</code> <Str sr="arg0" ve="3">%NUM</Str> <Str sr="arg1" ve="3">%SMSRB 来自(%SMSRF)</Str> <Int sr="arg2" val="0"/> </Action> <Action sr="act7" ve="7"> <code>38</code> </Action> </Task> </TaskerData>
点击 RAW 下载把这个文件导入到 tasker 后修改%NUM 变量即可,直接复制代码保存为xml格式的文件也可以,然后导入到Tasker内 。
这样就可以实现远程发送短信的功能了。
公益传播:因为有你,爱不罕见。
转载请注明出处:大刘子 » Tasker实现远程发送短信到指定号码