3
[求教] tasker 自动回复短信
source link: https://www.v2ex.com/t/800346
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
有没有老哥能教教 tasker 自动回复短信的配置哇?
就公司有一个审批短信,内容大概如下:
XXX 正在执行敏感操作发起审批,同意回复“Y”,不同意回复“N”。
大概是这样的内容,就是要自动审批,自动回复“Y”。
有没有大哥能教教?
7 条回复 • 2021-09-07 17:57:30 +08:00
cherbim 9 小时 29 分钟前
这个我会。。。。你的审批号码不会变的的吧?
第一步:事件选择接受短信,发件人选择你审批号码
第二步:任务选择发送短信,收件人选择审批号码,内容为 Y
第三步:把任务绑定到事件上
要是审批号码是不断变化的,你需要加个判断一下内容再选择是否回复
第一步:事件选择接受短信,发件人选择你审批号码
第二步:任务选择发送短信,收件人选择审批号码,内容为 Y
第三步:把任务绑定到事件上
要是审批号码是不断变化的,你需要加个判断一下内容再选择是否回复
cherbim 9 小时 16 分钟前
@cherbim 补充一点,要是审批号码是变化的
第一步:事件选择接受短信,类型选择短信,其他不用改
第二步:任务选择发送短信,收件人为%SMSRF,内容为 Y,条件选择%SMSRB,匹配内容为 正在执行敏感操作发起审批
第三步:把任务绑定到事件上
这样只要接收到短息然后内容匹配到“正在执行敏感操作发起审批”就自动回复 Y
第一步:事件选择接受短信,类型选择短信,其他不用改
第二步:任务选择发送短信,收件人为%SMSRF,内容为 Y,条件选择%SMSRB,匹配内容为 正在执行敏感操作发起审批
第三步:把任务绑定到事件上
这样只要接收到短息然后内容匹配到“正在执行敏感操作发起审批”就自动回复 Y
zictos 8 小时 42 分钟前 via Android
把下面内容保存为 xml 文件,长按 tasker 的"配置文件"这几个字的区域,选择导入配置文件,再选择刚才保存的 xml 文件即可。
<TaskerData sr="" dvi="1" tv="5.9.3">
<Profile sr="prof135" ve="2">
<cdate>1630989521584</cdate>
<edate>1630989695247</edate>
<flags>8</flags>
<id>135</id>
<mid0>139</mid0>
<nme>自动回复短信 y</nme>
<Event sr="con0" ve="2">
<code>7</code>
<pri>0</pri>
<Int sr="arg0" val="2"/>
<Str sr="arg1" ve="3"/>
<Str sr="arg2" ve="3">*操作发起审批*</Str>
<Str sr="arg3" ve="3"/>
</Event>
</Profile>
<Task sr="task139">
<cdate>1630989534453</cdate>
<edate>1630989679731</edate>
<id>139</id>
<nme>发送短信 y</nme>
<pri>6</pri>
<Action sr="act0" ve="7">
<code>41</code>
<Str sr="arg0" ve="3">%SMSRF</Str>
<Str sr="arg1" ve="3">Y</Str>
<Int sr="arg2" val="0"/>
<Str sr="arg3" ve="3"/>
<Int sr="arg4" val="0"/>
</Action>
</Task>
</TaskerData>
<TaskerData sr="" dvi="1" tv="5.9.3">
<Profile sr="prof135" ve="2">
<cdate>1630989521584</cdate>
<edate>1630989695247</edate>
<flags>8</flags>
<id>135</id>
<mid0>139</mid0>
<nme>自动回复短信 y</nme>
<Event sr="con0" ve="2">
<code>7</code>
<pri>0</pri>
<Int sr="arg0" val="2"/>
<Str sr="arg1" ve="3"/>
<Str sr="arg2" ve="3">*操作发起审批*</Str>
<Str sr="arg3" ve="3"/>
</Event>
</Profile>
<Task sr="task139">
<cdate>1630989534453</cdate>
<edate>1630989679731</edate>
<id>139</id>
<nme>发送短信 y</nme>
<pri>6</pri>
<Action sr="act0" ve="7">
<code>41</code>
<Str sr="arg0" ve="3">%SMSRF</Str>
<Str sr="arg1" ve="3">Y</Str>
<Int sr="arg2" val="0"/>
<Str sr="arg3" ve="3"/>
<Int sr="arg4" val="0"/>
</Action>
</Task>
</TaskerData>
zyc63959 6 小时 35 分钟前 via Android
配置文件: 自动审批
设置: Restore: no
事件: 收到短信 [ 类型:任意 发件人:* 内容:审批 SIM 卡:* ]
进入 任务: 马上
A1: 发送短信 [
数字: %SMSRF
内容: Y ]
设置: Restore: no
事件: 收到短信 [ 类型:任意 发件人:* 内容:审批 SIM 卡:* ]
进入 任务: 马上
A1: 发送短信 [
数字: %SMSRF
内容: Y ]
hiplon 3 小时 30 分钟前
```bash
var SMSRF = global('SMSRF');
var SMSRB = global('SMSRB');
var SMSRT = global('SMSRT');
var SMSRD = global('SMSRD');
var searchKey139 = ' [通过 139 邮箱发送] ';
var countKey139 = SMSRB.lastIndexOf(searchKey139);
if (countKey139 != -1){
var cutRB1 = SMSRB.substring(0,countKey139);
var countPhoneNum = cutRB1.lastIndexOf('%%');
var messageSend = cutRB1.substring(0,countPhoneNum);
var messagePhoneNum = cutRB1.substring(countPhoneNum+2,countKey139);
var ok = sendSMS(messagePhoneNum,messageSend,true);
}
```
之前写的一个根据内用自动转发短信的,应该需要的差不多
var SMSRF = global('SMSRF');
var SMSRB = global('SMSRB');
var SMSRT = global('SMSRT');
var SMSRD = global('SMSRD');
var searchKey139 = ' [通过 139 邮箱发送] ';
var countKey139 = SMSRB.lastIndexOf(searchKey139);
if (countKey139 != -1){
var cutRB1 = SMSRB.substring(0,countKey139);
var countPhoneNum = cutRB1.lastIndexOf('%%');
var messageSend = cutRB1.substring(0,countPhoneNum);
var messagePhoneNum = cutRB1.substring(countPhoneNum+2,countKey139);
var ok = sendSMS(messagePhoneNum,messageSend,true);
}
```
之前写的一个根据内用自动转发短信的,应该需要的差不多
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK