Tasker-安卓手机发送短信到指定的号码

tasker监控手短信,收到特殊的短信格式,将其发送给目标号码

1.任务

示例:

1
2
3
# 短信内容

13700998877♀:测试转发

效果:

会将测试转发发送给13700998877

直接在task的配置文件tab中导入即可

短信转发.prf.xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<TaskerData sr="" dvi="1" tv="4.9u3m">
<Profile sr="prof15" ve="2">
<cdate>1577843205214</cdate>
<edate>1584806617552</edate>
<id>15</id>
<mid0>13</mid0>
<nme>短信转发</nme>
<Event sr="con0" ve="2">
<code>7</code>
<pri>0</pri>
<Int sr="arg0" val="2"/>
<Str sr="arg1" ve="3">主控机</Str>
<Str sr="arg2" ve="3">*♀</Str>
</Event>
</Profile>
<Task sr="task13">
<cdate>1507900041994</cdate>
<edate>1584806316157</edate>
<id>13</id>
<nme>短信代发</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>590</code>
<Str sr="arg0" ve="3">%SMSRB</Str>
<Str sr="arg1" ve="3">♀:</Str>
<Int sr="arg2" val="0"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%SMSRB</lhs>
<op>4</op>
<rhs>^[0-9]*♀:.*</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act1" ve="7">
<code>41</code>
<Str sr="arg0" ve="3">%SMSRB1</Str>
<Str sr="arg1" ve="3">%SMSRB2</Str>
<Int sr="arg2" val="1"/>
<ConditionList sr="if">
<bool0>And</bool0>
<Condition sr="c0" ve="3">
<lhs>%SMSRB1</lhs>
<op>4</op>
<rhs>^[0-9]*$</rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%SMSRB2</lhs>
<op>12</op>
<rhs></rhs>
</Condition>
</ConditionList>
</Action>
</Task>
</TaskerData>