Advertisement
Guest User

WhatsApp Message Task Tasker

a guest
May 12th, 2019
618
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.83 KB | None | 0 0
  1. <TaskerData sr="" dvi="1" tv="5.7">
  2.     <Task sr="task62">
  3.         <cdate>1557644204543</cdate>
  4.         <edate>1557652109914</edate>
  5.         <id>62</id>
  6.         <nme>WA-MsgSend</nme>
  7.         <pri>100</pri>
  8.         <Action sr="act0" ve="7">
  9.             <code>523</code>
  10.             <Str sr="arg0" ve="3">No Recipient Given</Str>
  11.             <Str sr="arg1" ve="3">\%par1 is empty...</Str>
  12.             <Str sr="arg10" ve="3"/>
  13.             <Str sr="arg11" ve="3"/>
  14.             <Img sr="arg2" ve="2"/>
  15.             <Int sr="arg3" val="0"/>
  16.             <Int sr="arg4" val="0"/>
  17.             <Int sr="arg5" val="3"/>
  18.             <Int sr="arg6" val="0"/>
  19.             <Int sr="arg7" val="0"/>
  20.             <Int sr="arg8" val="0"/>
  21.             <Str sr="arg9" ve="3"/>
  22.             <ConditionList sr="if">
  23.                 <Condition sr="c0" ve="3">
  24.                     <lhs>%par1</lhs>
  25.                     <op>13</op>
  26.                     <rhs></rhs>
  27.                 </Condition>
  28.             </ConditionList>
  29.         </Action>
  30.         <Action sr="act1" ve="7">
  31.             <code>523</code>
  32.             <Str sr="arg0" ve="3">No Text Given</Str>
  33.             <Str sr="arg1" ve="3">\%par2 is empty...</Str>
  34.             <Str sr="arg10" ve="3"/>
  35.             <Str sr="arg11" ve="3"/>
  36.             <Img sr="arg2" ve="2"/>
  37.             <Int sr="arg3" val="0"/>
  38.             <Int sr="arg4" val="0"/>
  39.             <Int sr="arg5" val="3"/>
  40.             <Int sr="arg6" val="0"/>
  41.             <Int sr="arg7" val="0"/>
  42.             <Int sr="arg8" val="0"/>
  43.             <Str sr="arg9" ve="3"/>
  44.             <ConditionList sr="if">
  45.                 <Condition sr="c0" ve="3">
  46.                     <lhs>%par2</lhs>
  47.                     <op>13</op>
  48.                     <rhs></rhs>
  49.                 </Condition>
  50.             </ConditionList>
  51.         </Action>
  52.         <Action sr="act10" ve="7">
  53.             <code>547</code>
  54.             <Str sr="arg0" ve="3">%received_timestamp</Str>
  55.             <Str sr="arg1" ve="3">%TIMEMS</Str>
  56.             <Int sr="arg2" val="0"/>
  57.             <Int sr="arg3" val="0"/>
  58.             <Int sr="arg4" val="0"/>
  59.         </Action>
  60.         <Action sr="act11" ve="7">
  61.             <code>37</code>
  62.             <label>Logging enabled?</label>
  63.             <ConditionList sr="if">
  64.                 <Condition sr="c0" ve="3">
  65.                     <lhs>%WAlog</lhs>
  66.                     <op>12</op>
  67.                     <rhs></rhs>
  68.                 </Condition>
  69.             </ConditionList>
  70.         </Action>
  71.         <Action sr="act12" ve="7">
  72.             <code>547</code>
  73.             <Str sr="arg0" ve="3">%log</Str>
  74.             <Str sr="arg1" ve="3">%recipient;%key_id;%received_timestamp;%timestamp</Str>
  75.             <Int sr="arg2" val="0"/>
  76.             <Int sr="arg3" val="0"/>
  77.             <Int sr="arg4" val="0"/>
  78.         </Action>
  79.         <Action sr="act13" ve="7">
  80.             <code>410</code>
  81.             <Str sr="arg0" ve="3">Tasker/wa-log.txt</Str>
  82.             <Str sr="arg1" ve="3">%log</Str>
  83.             <Int sr="arg2" val="1"/>
  84.             <Int sr="arg3" val="0"/>
  85.         </Action>
  86.         <Action sr="act14" ve="7">
  87.             <code>38</code>
  88.         </Action>
  89.         <Action sr="act15" ve="7">
  90.             <code>123</code>
  91.             <label>Send the message</label>
  92.             <se>false</se>
  93.             <Str sr="arg0" ve="3">sqlite3 /data/data/com.whatsapp/databases/msgstore.db 'INSERT INTO messages (key_remote_jid,key_from_me,key_id,status,needs_push,data,timestamp,media_url,media_mime_type,media_wa_type,media_size,media_name,media_hash,latitude,longitude,thumb_image,remote_resource,received_timestamp,send_timestamp,receipt_server_timestamp,receipt_device_timestamp,raw_data,recipient_count,media_duration,origin) VALUES ("%recipient", 1, "%key_id",0,0,"%WaMsgOutData",%timestamp,"","",0,0,"","",0,0,"","",%received_timestamp,-1,-1,-1,"",0,0,0)';</Str>
  94.             <Int sr="arg1" val="0"/>
  95.             <Int sr="arg2" val="1"/>
  96.             <Str sr="arg3" ve="3"/>
  97.             <Str sr="arg4" ve="3"/>
  98.             <Str sr="arg5" ve="3"/>
  99.         </Action>
  100.         <Action sr="act16" ve="7">
  101.             <code>123</code>
  102.             <label>Get message ID for this message</label>
  103.             <Str sr="arg0" ve="3">sqlite3 /data/data/com.whatsapp/databases/msgstore.db 'SELECT _id FROM messages WHERE data="%WaMsgOutData"';</Str>
  104.             <Int sr="arg1" val="0"/>
  105.             <Int sr="arg2" val="1"/>
  106.             <Str sr="arg3" ve="3">%messageid</Str>
  107.             <Str sr="arg4" ve="3"/>
  108.             <Str sr="arg5" ve="3"/>
  109.         </Action>
  110.         <Action sr="act17" ve="7">
  111.             <code>590</code>
  112.             <label>Only select last ID</label>
  113.             <Str sr="arg0" ve="3">%messageid</Str>
  114.             <Str sr="arg1" ve="3"/>
  115.             <Int sr="arg2" val="0"/>
  116.         </Action>
  117.         <Action sr="act18" ve="7">
  118.             <code>354</code>
  119.             <label>Only select last ID</label>
  120.             <Str sr="arg0" ve="3">%testarr</Str>
  121.             <Str sr="arg1" ve="3">%messageid</Str>
  122.             <Str sr="arg2" ve="3"/>
  123.         </Action>
  124.         <Action sr="act19" ve="7">
  125.             <code>356</code>
  126.             <label>Only select last ID</label>
  127.             <Str sr="arg0" ve="3">%testarr</Str>
  128.             <Int sr="arg1" val="999999"/>
  129.             <Str sr="arg2" ve="3">%messageid</Str>
  130.         </Action>
  131.         <Action sr="act2" ve="7">
  132.             <code>137</code>
  133.             <label>We require more information</label>
  134.             <Int sr="arg0" val="0"/>
  135.             <Str sr="arg1" ve="3"/>
  136.             <ConditionList sr="if">
  137.                 <bool0>Or</bool0>
  138.                 <Condition sr="c0" ve="3">
  139.                     <lhs>%par1</lhs>
  140.                     <op>13</op>
  141.                     <rhs></rhs>
  142.                 </Condition>
  143.                 <Condition sr="c1" ve="3">
  144.                     <lhs>%par2</lhs>
  145.                     <op>13</op>
  146.                     <rhs></rhs>
  147.                 </Condition>
  148.             </ConditionList>
  149.         </Action>
  150.         <Action sr="act20" ve="7">
  151.             <code>37</code>
  152.             <label>Logging enabled?</label>
  153.             <ConditionList sr="if">
  154.                 <Condition sr="c0" ve="3">
  155.                     <lhs>%WAlog</lhs>
  156.                     <op>12</op>
  157.                     <rhs></rhs>
  158.                 </Condition>
  159.             </ConditionList>
  160.         </Action>
  161.         <Action sr="act21" ve="7">
  162.             <code>547</code>
  163.             <Str sr="arg0" ve="3">%log</Str>
  164.             <Str sr="arg1" ve="3">;%messageid</Str>
  165.             <Int sr="arg2" val="0"/>
  166.             <Int sr="arg3" val="0"/>
  167.             <Int sr="arg4" val="0"/>
  168.         </Action>
  169.         <Action sr="act22" ve="7">
  170.             <code>410</code>
  171.             <Str sr="arg0" ve="3">Tasker/wa-log.txt</Str>
  172.             <Str sr="arg1" ve="3">%log</Str>
  173.             <Int sr="arg2" val="1"/>
  174.             <Int sr="arg3" val="1"/>
  175.         </Action>
  176.         <Action sr="act23" ve="7">
  177.             <code>38</code>
  178.         </Action>
  179.         <Action sr="act24" ve="7">
  180.             <code>123</code>
  181.             <label>Register the last message in the chat list</label>
  182.             <se>false</se>
  183.             <Str sr="arg0" ve="3">sqlite3 /data/data/com.whatsapp/databases/msgstore.db 'UPDATE chat_list SET message_table_id=%messageid WHERE key_remote_jid="%recipient"';</Str>
  184.             <Int sr="arg1" val="0"/>
  185.             <Int sr="arg2" val="1"/>
  186.             <Str sr="arg3" ve="3"/>
  187.             <Str sr="arg4" ve="3"/>
  188.             <Str sr="arg5" ve="3"/>
  189.         </Action>
  190.         <Action sr="act25" ve="7">
  191.             <code>18</code>
  192.             <App sr="arg0">
  193.                 <appClass>com.whatsapp.Main</appClass>
  194.                 <appPkg>com.whatsapp</appPkg>
  195.                 <label>WhatsApp</label>
  196.             </App>
  197.             <Int sr="arg1" val="0"/>
  198.         </Action>
  199.         <Action sr="act26" ve="7">
  200.             <code>30</code>
  201.             <Int sr="arg0" val="0"/>
  202.             <Int sr="arg1" val="3"/>
  203.             <Int sr="arg2" val="0"/>
  204.             <Int sr="arg3" val="0"/>
  205.             <Int sr="arg4" val="0"/>
  206.         </Action>
  207.         <Action sr="act27" ve="7">
  208.             <code>20</code>
  209.             <App sr="arg0">
  210.                 <appClass>com.whatsapp.Main</appClass>
  211.                 <appPkg>com.whatsapp</appPkg>
  212.                 <label>WhatsApp</label>
  213.             </App>
  214.             <Str sr="arg1" ve="3"/>
  215.             <Int sr="arg2" val="0"/>
  216.             <Int sr="arg3" val="0"/>
  217.         </Action>
  218.         <Action sr="act3" ve="7">
  219.             <code>547</code>
  220.             <Str sr="arg0" ve="3">%WaMsgOutTo</Str>
  221.             <Str sr="arg1" ve="3">%par1</Str>
  222.             <Int sr="arg2" val="0"/>
  223.             <Int sr="arg3" val="0"/>
  224.             <Int sr="arg4" val="0"/>
  225.         </Action>
  226.         <Action sr="act4" ve="7">
  227.             <code>547</code>
  228.             <Str sr="arg0" ve="3">%WaMsgOutData</Str>
  229.             <Str sr="arg1" ve="3">%par2</Str>
  230.             <Int sr="arg2" val="0"/>
  231.             <Int sr="arg3" val="0"/>
  232.             <Int sr="arg4" val="0"/>
  233.         </Action>
  234.         <Action sr="act5" ve="7">
  235.             <code>123</code>
  236.             <label>Look for the name of the recipient (WaMsgOutTo)</label>
  237.             <Str sr="arg0" ve="3">sqlite3 /data/data/com.whatsapp/databases/wa.db 'SELECT jid FROM wa_contacts WHERE display_name="%WaMsgOutTo" AND is_whatsapp_user=1';</Str>
  238.             <Int sr="arg1" val="0"/>
  239.             <Int sr="arg2" val="1"/>
  240.             <Str sr="arg3" ve="3">%recipient</Str>
  241.             <Str sr="arg4" ve="3"/>
  242.             <Str sr="arg5" ve="3"/>
  243.         </Action>
  244.         <Action sr="act6" ve="7">
  245.             <code>523</code>
  246.             <Str sr="arg0" ve="3">Who TF Is %WaMsgOutTo</Str>
  247.             <Str sr="arg1" ve="3"/>
  248.             <Str sr="arg10" ve="3"/>
  249.             <Str sr="arg11" ve="3"/>
  250.             <Img sr="arg2" ve="2"/>
  251.             <Int sr="arg3" val="0"/>
  252.             <Int sr="arg4" val="0"/>
  253.             <Int sr="arg5" val="3"/>
  254.             <Int sr="arg6" val="0"/>
  255.             <Int sr="arg7" val="0"/>
  256.             <Int sr="arg8" val="0"/>
  257.             <Str sr="arg9" ve="3"/>
  258.             <ConditionList sr="if">
  259.                 <Condition sr="c0" ve="3">
  260.                     <lhs>%recipient</lhs>
  261.                     <op>13</op>
  262.                     <rhs></rhs>
  263.                 </Condition>
  264.             </ConditionList>
  265.         </Action>
  266.         <Action sr="act7" ve="7">
  267.             <code>137</code>
  268.             <label>Recipient known?</label>
  269.             <Int sr="arg0" val="0"/>
  270.             <Str sr="arg1" ve="3"/>
  271.             <ConditionList sr="if">
  272.                 <Condition sr="c0" ve="3">
  273.                     <lhs>%recipient</lhs>
  274.                     <op>13</op>
  275.                     <rhs></rhs>
  276.                 </Condition>
  277.             </ConditionList>
  278.         </Action>
  279.         <Action sr="act8" ve="7">
  280.             <code>547</code>
  281.             <Str sr="arg0" ve="3">%key_id</Str>
  282.             <Str sr="arg1" ve="3">%TIMES-1</Str>
  283.             <Int sr="arg2" val="0"/>
  284.             <Int sr="arg3" val="0"/>
  285.             <Int sr="arg4" val="0"/>
  286.         </Action>
  287.         <Action sr="act9" ve="7">
  288.             <code>547</code>
  289.             <Str sr="arg0" ve="3">%timestamp</Str>
  290.             <Str sr="arg1" ve="3">%TIMEMS</Str>
  291.             <Int sr="arg2" val="0"/>
  292.             <Int sr="arg3" val="0"/>
  293.             <Int sr="arg4" val="0"/>
  294.         </Action>
  295.     </Task>
  296. </TaskerData>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement