Advertisement
Guest User

GO_Plus_Helper.prj.xml

a guest
Nov 25th, 2017
970
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.25 KB | None | 0 0
  1. <TaskerData sr="" dvi="1" tv="5.0u7m">
  2. <Profile sr="prof17" ve="2">
  3. <cdate>1503669757902</cdate>
  4. <edate>1506108597980</edate>
  5. <flags>17</flags>
  6. <id>17</id>
  7. <mid0>3</mid0>
  8. <mid1>4</mid1>
  9. <App sr="con0" ve="2">
  10. <cls0>com.unity3d.player.UnityPlayerActivity</cls0>
  11. <flags>2</flags>
  12. <label0>Pokémon GO</label0>
  13. <pkg0>com.nianticlabs.pokemongo</pkg0>
  14. </App>
  15. </Profile>
  16. <Project sr="proj0" ve="2">
  17. <cdate>1503665474986</cdate>
  18. <name>GO+ Helper</name>
  19. <pids>17</pids>
  20. <tids>5,2,3,9,4</tids>
  21. <Kid sr="Kid">
  22. <feat0>android.hardware.bluetooth:y</feat0>
  23. <launchID>3</launchID>
  24. <pkg>me.jordanpeck.goplushelper</pkg>
  25. <vnme>1.0</vnme>
  26. <vnum>8</vnum>
  27. </Kid>
  28. <Img sr="icon" ve="2">
  29. <uri>content://com.android.providers.media.documents/document/image%3A21433</uri>
  30. </Img>
  31. </Project>
  32. <Task sr="task2">
  33. <cdate>1503691902989</cdate>
  34. <edate>1506291264763</edate>
  35. <id>2</id>
  36. <nme>Find &amp; Set BT Priority</nme>
  37. <pri>100</pri>
  38. <rty>2</rty>
  39. <Action sr="act0" ve="7">
  40. <code>37</code>
  41. <label>Check if Bluetooth is enabled</label>
  42. <ConditionList sr="if">
  43. <Condition sr="c0" ve="3">
  44. <lhs>%BLUE</lhs>
  45. <op>1</op>
  46. <rhs>on</rhs>
  47. </Condition>
  48. </ConditionList>
  49. </Action>
  50. <Action sr="act1" ve="7">
  51. <code>523</code>
  52. <Str sr="arg0" ve="3">BT Not Enabled</Str>
  53. <Str sr="arg1" ve="3"/>
  54. <Img sr="arg2" ve="2">
  55. <nme>mw_action_settings_bluetooth</nme>
  56. </Img>
  57. <Int sr="arg3" val="0"/>
  58. <Int sr="arg4" val="0"/>
  59. <Int sr="arg5" val="3"/>
  60. <ConditionList sr="if">
  61. <Condition sr="c0" ve="3">
  62. <lhs>%par1</lhs>
  63. <op>13</op>
  64. <rhs>true</rhs>
  65. </Condition>
  66. </ConditionList>
  67. </Action>
  68. <Action sr="act10" ve="7">
  69. <code>126</code>
  70. <Str sr="arg0" ve="3">false</Str>
  71. <Int sr="arg1" val="1"/>
  72. </Action>
  73. <Action sr="act11" ve="7">
  74. <code>38</code>
  75. </Action>
  76. <Action sr="act12" ve="7">
  77. <code>664</code>
  78. <Str sr="arg0" ve="3">btDevice</Str>
  79. <Str sr="arg1" ve="3">connectedList</Str>
  80. <Str sr="arg2" ve="3">get
  81. {BluetoothDevice} (int)</Str>
  82. <Str sr="arg3" ve="3">%index</Str>
  83. <Str sr="arg4" ve="3"/>
  84. <Str sr="arg5" ve="3"/>
  85. <Str sr="arg6" ve="3"/>
  86. <Str sr="arg7" ve="3"/>
  87. <Str sr="arg8" ve="3"/>
  88. <Str sr="arg9" ve="3"/>
  89. </Action>
  90. <Action sr="act13" ve="7">
  91. <code>664</code>
  92. <Str sr="arg0" ve="3">%name</Str>
  93. <Str sr="arg1" ve="3">btDevice</Str>
  94. <Str sr="arg2" ve="3">getName
  95. {String} ()</Str>
  96. <Str sr="arg3" ve="3"/>
  97. <Str sr="arg4" ve="3"/>
  98. <Str sr="arg5" ve="3"/>
  99. <Str sr="arg6" ve="3"/>
  100. <Str sr="arg7" ve="3"/>
  101. <Str sr="arg8" ve="3"/>
  102. <Str sr="arg9" ve="3"/>
  103. </Action>
  104. <Action sr="act14" ve="7">
  105. <code>37</code>
  106. <label>Only use BT device with correct name</label>
  107. <ConditionList sr="if">
  108. <Condition sr="c0" ve="3">
  109. <lhs>%BTName</lhs>
  110. <op>0</op>
  111. <rhs>%name</rhs>
  112. </Condition>
  113. </ConditionList>
  114. </Action>
  115. <Action sr="act15" ve="7">
  116. <code>126</code>
  117. <label>Enable to only set priority on new connections</label>
  118. <on>false</on>
  119. <Str sr="arg0" ve="3">true</Str>
  120. <Int sr="arg1" val="1"/>
  121. <ConditionList sr="if">
  122. <Condition sr="c0" ve="3">
  123. <lhs>%par1</lhs>
  124. <op>0</op>
  125. <rhs>true</rhs>
  126. </Condition>
  127. </ConditionList>
  128. </Action>
  129. <Action sr="act16" ve="7">
  130. <code>664</code>
  131. <Str sr="arg0" ve="3">btGatt</Str>
  132. <Str sr="arg1" ve="3">btDevice</Str>
  133. <Str sr="arg2" ve="3">connectGatt
  134. {BluetoothGatt} (Context, boolean, BluetoothGattCallback)</Str>
  135. <Str sr="arg3" ve="3">CONTEXT</Str>
  136. <Str sr="arg4" ve="3">true</Str>
  137. <Str sr="arg5" ve="3">new BluetoothGattCallback() {
  138. @Override
  139. public void onCharacteristicRead(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) {
  140. NotificationCompat.Builder mBuilder =
  141. new NotificationCompat.Builder(this)
  142. .setSmallIcon(R.drawable.notification_icon)
  143. .setContentTitle(characteristic.getIntValue(17,0))
  144. .setContentText("Hello World!");
  145. NotificationManager mNotificationManager =
  146. (NotificationManager) getSystemService("notification");
  147. mNotificationManager.notify(586094358, mBuilder.build());
  148. }
  149. }</Str>
  150. <Str sr="arg6" ve="3"/>
  151. <Str sr="arg7" ve="3"/>
  152. <Str sr="arg8" ve="3"/>
  153. <Str sr="arg9" ve="3"/>
  154. </Action>
  155. <Action sr="act17" ve="7">
  156. <code>664</code>
  157. <label>Set priority high</label>
  158. <Str sr="arg0" ve="3">%return</Str>
  159. <Str sr="arg1" ve="3">btGatt</Str>
  160. <Str sr="arg2" ve="3">requestConnectionPriority
  161. {boolean} (int)</Str>
  162. <Str sr="arg3" ve="3">1</Str>
  163. <Str sr="arg4" ve="3"/>
  164. <Str sr="arg5" ve="3"/>
  165. <Str sr="arg6" ve="3"/>
  166. <Str sr="arg7" ve="3"/>
  167. <Str sr="arg8" ve="3"/>
  168. <Str sr="arg9" ve="3"/>
  169. </Action>
  170. <Action sr="act18" ve="7">
  171. <code>664</code>
  172. <label>Attempt at getting battery life stat</label>
  173. <on>false</on>
  174. <Str sr="arg0" ve="3">serviceUUID</Str>
  175. <Str sr="arg1" ve="3">UUID</Str>
  176. <Str sr="arg2" ve="3">fromString
  177. {UUID} (String)</Str>
  178. <Str sr="arg3" ve="3">0000180f-0000-1000-8000-00805f9b34fb</Str>
  179. <Str sr="arg4" ve="3"/>
  180. <Str sr="arg5" ve="3"/>
  181. <Str sr="arg6" ve="3"/>
  182. <Str sr="arg7" ve="3"/>
  183. <Str sr="arg8" ve="3"/>
  184. <Str sr="arg9" ve="3"/>
  185. </Action>
  186. <Action sr="act19" ve="7">
  187. <code>664</code>
  188. <on>false</on>
  189. <Str sr="arg0" ve="3">charUUID</Str>
  190. <Str sr="arg1" ve="3">UUID</Str>
  191. <Str sr="arg2" ve="3">fromString
  192. {UUID} (String)</Str>
  193. <Str sr="arg3" ve="3">00002a19-0000-1000-8000-00805f9b34fb</Str>
  194. <Str sr="arg4" ve="3"/>
  195. <Str sr="arg5" ve="3"/>
  196. <Str sr="arg6" ve="3"/>
  197. <Str sr="arg7" ve="3"/>
  198. <Str sr="arg8" ve="3"/>
  199. <Str sr="arg9" ve="3"/>
  200. </Action>
  201. <Action sr="act2" ve="7">
  202. <code>126</code>
  203. <Str sr="arg0" ve="3">false</Str>
  204. <Int sr="arg1" val="1"/>
  205. </Action>
  206. <Action sr="act20" ve="7">
  207. <code>664</code>
  208. <on>false</on>
  209. <Str sr="arg0" ve="3">gattService</Str>
  210. <Str sr="arg1" ve="3">btGatt</Str>
  211. <Str sr="arg2" ve="3">getService
  212. {BluetoothGattService} (UUID)</Str>
  213. <Str sr="arg3" ve="3">serviceUUID</Str>
  214. <Str sr="arg4" ve="3"/>
  215. <Str sr="arg5" ve="3"/>
  216. <Str sr="arg6" ve="3"/>
  217. <Str sr="arg7" ve="3"/>
  218. <Str sr="arg8" ve="3"/>
  219. <Str sr="arg9" ve="3"/>
  220. </Action>
  221. <Action sr="act21" ve="7">
  222. <code>664</code>
  223. <on>false</on>
  224. <Str sr="arg0" ve="3">gattChar</Str>
  225. <Str sr="arg1" ve="3">gattService</Str>
  226. <Str sr="arg2" ve="3">getCharacteristic
  227. {BluetoothGattCharacteristic} (UUID)</Str>
  228. <Str sr="arg3" ve="3">charUUID</Str>
  229. <Str sr="arg4" ve="3"/>
  230. <Str sr="arg5" ve="3"/>
  231. <Str sr="arg6" ve="3"/>
  232. <Str sr="arg7" ve="3"/>
  233. <Str sr="arg8" ve="3"/>
  234. <Str sr="arg9" ve="3"/>
  235. </Action>
  236. <Action sr="act22" ve="7">
  237. <code>664</code>
  238. <on>false</on>
  239. <Str sr="arg0" ve="3">%test</Str>
  240. <Str sr="arg1" ve="3">btGatt</Str>
  241. <Str sr="arg2" ve="3">readCharacteristic
  242. {boolean} (BluetoothGattCharacteristic)</Str>
  243. <Str sr="arg3" ve="3">gattChar</Str>
  244. <Str sr="arg4" ve="3"/>
  245. <Str sr="arg5" ve="3"/>
  246. <Str sr="arg6" ve="3"/>
  247. <Str sr="arg7" ve="3"/>
  248. <Str sr="arg8" ve="3"/>
  249. <Str sr="arg9" ve="3"/>
  250. </Action>
  251. <Action sr="act23" ve="7">
  252. <code>664</code>
  253. <label>Close connection with device</label>
  254. <Str sr="arg0" ve="3"/>
  255. <Str sr="arg1" ve="3">btGatt</Str>
  256. <Str sr="arg2" ve="3">close
  257. {} ()</Str>
  258. <Str sr="arg3" ve="3"/>
  259. <Str sr="arg4" ve="3"/>
  260. <Str sr="arg5" ve="3"/>
  261. <Str sr="arg6" ve="3"/>
  262. <Str sr="arg7" ve="3"/>
  263. <Str sr="arg8" ve="3"/>
  264. <Str sr="arg9" ve="3"/>
  265. </Action>
  266. <Action sr="act24" ve="7">
  267. <code>523</code>
  268. <label>Only notify if not called from auto looper</label>
  269. <Str sr="arg0" ve="3">BT Priority Set High: %return</Str>
  270. <Str sr="arg1" ve="3">%name</Str>
  271. <Img sr="arg2" ve="2">
  272. <nme>mw_action_settings_bluetooth</nme>
  273. </Img>
  274. <Int sr="arg3" val="0"/>
  275. <Int sr="arg4" val="0"/>
  276. <Int sr="arg5" val="3"/>
  277. <ConditionList sr="if">
  278. <Condition sr="c0" ve="3">
  279. <lhs>%par1</lhs>
  280. <op>13</op>
  281. <rhs>true</rhs>
  282. </Condition>
  283. </ConditionList>
  284. </Action>
  285. <Action sr="act25" ve="7">
  286. <code>126</code>
  287. <Str sr="arg0" ve="3">%return</Str>
  288. <Int sr="arg1" val="1"/>
  289. </Action>
  290. <Action sr="act26" ve="7">
  291. <code>38</code>
  292. </Action>
  293. <Action sr="act27" ve="7">
  294. <code>888</code>
  295. <Str sr="arg0" ve="3">%index</Str>
  296. <Int sr="arg1" val="1"/>
  297. <Int sr="arg2" val="0"/>
  298. </Action>
  299. <Action sr="act28" ve="7">
  300. <code>135</code>
  301. <Int sr="arg0" val="1"/>
  302. <Int sr="arg1" val="5"/>
  303. <Str sr="arg2" ve="3">Loop start</Str>
  304. </Action>
  305. <Action sr="act3" ve="7">
  306. <code>38</code>
  307. </Action>
  308. <Action sr="act4" ve="7">
  309. <code>664</code>
  310. <label>Get list of connected BT devices</label>
  311. <Str sr="arg0" ve="3">btManager</Str>
  312. <Str sr="arg1" ve="3">CONTEXT</Str>
  313. <Str sr="arg2" ve="3">getSystemService
  314. {BluetoothManager} (String)</Str>
  315. <Str sr="arg3" ve="3">bluetooth</Str>
  316. <Str sr="arg4" ve="3"/>
  317. <Str sr="arg5" ve="3"/>
  318. <Str sr="arg6" ve="3"/>
  319. <Str sr="arg7" ve="3"/>
  320. <Str sr="arg8" ve="3"/>
  321. <Str sr="arg9" ve="3"/>
  322. </Action>
  323. <Action sr="act5" ve="7">
  324. <code>664</code>
  325. <Str sr="arg0" ve="3">connectedList</Str>
  326. <Str sr="arg1" ve="3">btManager</Str>
  327. <Str sr="arg2" ve="3">getConnectedDevices
  328. {List} (int)</Str>
  329. <Str sr="arg3" ve="3">7</Str>
  330. <Str sr="arg4" ve="3"/>
  331. <Str sr="arg5" ve="3"/>
  332. <Str sr="arg6" ve="3"/>
  333. <Str sr="arg7" ve="3"/>
  334. <Str sr="arg8" ve="3"/>
  335. <Str sr="arg9" ve="3"/>
  336. </Action>
  337. <Action sr="act6" ve="7">
  338. <code>664</code>
  339. <Str sr="arg0" ve="3">%BTConnectedCount</Str>
  340. <Str sr="arg1" ve="3">connectedList</Str>
  341. <Str sr="arg2" ve="3">size
  342. {int} ()</Str>
  343. <Str sr="arg3" ve="3"/>
  344. <Str sr="arg4" ve="3"/>
  345. <Str sr="arg5" ve="3"/>
  346. <Str sr="arg6" ve="3"/>
  347. <Str sr="arg7" ve="3"/>
  348. <Str sr="arg8" ve="3"/>
  349. <Str sr="arg9" ve="3"/>
  350. </Action>
  351. <Action sr="act7" ve="7">
  352. <code>547</code>
  353. <label>Loop through list of BT devices</label>
  354. <Str sr="arg0" ve="3">%index</Str>
  355. <Str sr="arg1" ve="3">0</Str>
  356. <Int sr="arg2" val="0"/>
  357. <Int sr="arg3" val="0"/>
  358. <Int sr="arg4" val="0"/>
  359. </Action>
  360. <Action sr="act8" ve="7">
  361. <code>37</code>
  362. <label>Loop start</label>
  363. <ConditionList sr="if">
  364. <Condition sr="c0" ve="3">
  365. <lhs>%index</lhs>
  366. <op>0</op>
  367. <rhs>%size</rhs>
  368. </Condition>
  369. </ConditionList>
  370. </Action>
  371. <Action sr="act9" ve="7">
  372. <code>523</code>
  373. <label>Only notify if not called from auto looper</label>
  374. <Str sr="arg0" ve="3">BT Device Not Found</Str>
  375. <Str sr="arg1" ve="3">Connected BT devices: %BTConnectedCount</Str>
  376. <Img sr="arg2" ve="2">
  377. <nme>mw_action_settings_bluetooth</nme>
  378. </Img>
  379. <Int sr="arg3" val="0"/>
  380. <Int sr="arg4" val="0"/>
  381. <Int sr="arg5" val="3"/>
  382. <ConditionList sr="if">
  383. <Condition sr="c0" ve="3">
  384. <lhs>%par1</lhs>
  385. <op>13</op>
  386. <rhs>true</rhs>
  387. </Condition>
  388. </ConditionList>
  389. </Action>
  390. </Task>
  391. <Task sr="task3">
  392. <cdate>1503695287158</cdate>
  393. <edate>1506328287719</edate>
  394. <id>3</id>
  395. <nme>Auto Looper</nme>
  396. <pri>100</pri>
  397. <rty>1</rty>
  398. <Action sr="act0" ve="7">
  399. <code>547</code>
  400. <label>Variable setup</label>
  401. <Str sr="arg0" ve="3">%NotificationTitle</Str>
  402. <Str sr="arg1" ve="3">Tasker GO+ Helper</Str>
  403. <Int sr="arg2" val="0"/>
  404. <Int sr="arg3" val="0"/>
  405. <Int sr="arg4" val="0"/>
  406. <ConditionList sr="if">
  407. <Condition sr="c0" ve="3">
  408. <lhs>%NotificationTitle</lhs>
  409. <op>13</op>
  410. <rhs></rhs>
  411. </Condition>
  412. </ConditionList>
  413. </Action>
  414. <Action sr="act1" ve="7">
  415. <code>547</code>
  416. <Str sr="arg0" ve="3">%BTName</Str>
  417. <Str sr="arg1" ve="3">Pokemon GO Plus</Str>
  418. <Int sr="arg2" val="0"/>
  419. <Int sr="arg3" val="0"/>
  420. <Int sr="arg4" val="0"/>
  421. <ConditionList sr="if">
  422. <Condition sr="c0" ve="3">
  423. <lhs>%BTName</lhs>
  424. <op>13</op>
  425. <rhs></rhs>
  426. </Condition>
  427. </ConditionList>
  428. </Action>
  429. <Action sr="act10" ve="7">
  430. <code>779</code>
  431. <Str sr="arg0" ve="3">%NotificationTitle</Str>
  432. <Int sr="arg1" val="0"/>
  433. </Action>
  434. <Action sr="act11" ve="7">
  435. <code>137</code>
  436. <Int sr="arg0" val="0"/>
  437. <Str sr="arg1" ve="3"/>
  438. </Action>
  439. <Action sr="act12" ve="7">
  440. <code>38</code>
  441. </Action>
  442. <Action sr="act13" ve="7">
  443. <code>37</code>
  444. <label>Switch notification if changed state</label>
  445. <ConditionList sr="if">
  446. <Condition sr="c0" ve="3">
  447. <lhs>%return</lhs>
  448. <op>1</op>
  449. <rhs>%IsPrioritySet</rhs>
  450. </Condition>
  451. </ConditionList>
  452. </Action>
  453. <Action sr="act14" ve="7">
  454. <code>523</code>
  455. <Str sr="arg0" ve="3">%NotificationTitle</Str>
  456. <Str sr="arg1" ve="3">Connected &amp; high priority set!</Str>
  457. <Img sr="arg2" ve="2">
  458. <nme>mw_action_label</nme>
  459. </Img>
  460. <Int sr="arg3" val="0"/>
  461. <Int sr="arg4" val="1"/>
  462. <Int sr="arg5" val="2"/>
  463. <ConditionList sr="if">
  464. <Condition sr="c0" ve="3">
  465. <lhs>%return</lhs>
  466. <op>0</op>
  467. <rhs>true</rhs>
  468. </Condition>
  469. </ConditionList>
  470. <ListElementItem sr="item0">
  471. <label>Exit</label>
  472. <Action sr="action" ve="7">
  473. <code>130</code>
  474. <Str sr="arg0" ve="3">Stop Looper</Str>
  475. <Int sr="arg1">
  476. <var>%priority+1</var>
  477. </Int>
  478. <Str sr="arg2" ve="3"/>
  479. <Str sr="arg3" ve="3"/>
  480. <Str sr="arg4" ve="3"/>
  481. <Int sr="arg5" val="0"/>
  482. </Action>
  483. <Img sr="icon" ve="2">
  484. <nme>mw_navigation_close</nme>
  485. </Img>
  486. </ListElementItem>
  487. <ListElementItem sr="item1">
  488. <label>Force Check</label>
  489. <Action sr="action" ve="7">
  490. <code>130</code>
  491. <Str sr="arg0" ve="3">Find &amp; Set BT Priority</Str>
  492. <Int sr="arg1">
  493. <var>%priority+1</var>
  494. </Int>
  495. <Str sr="arg2" ve="3"/>
  496. <Str sr="arg3" ve="3"/>
  497. <Str sr="arg4" ve="3">%IsPrioritySet</Str>
  498. <Int sr="arg5" val="0"/>
  499. </Action>
  500. <Img sr="icon" ve="2">
  501. <nme>mw_action_find_replace</nme>
  502. </Img>
  503. </ListElementItem>
  504. <ListElementItem sr="item2">
  505. <label>Restart BT</label>
  506. <Action sr="action" ve="7">
  507. <code>130</code>
  508. <Str sr="arg0" ve="3">Restart BT</Str>
  509. <Int sr="arg1">
  510. <var>%priority+1</var>
  511. </Int>
  512. <Str sr="arg2" ve="3"/>
  513. <Str sr="arg3" ve="3"/>
  514. <Str sr="arg4" ve="3"/>
  515. <Int sr="arg5" val="0"/>
  516. </Action>
  517. <Img sr="icon" ve="2">
  518. <nme>mw_action_settings_bluetooth</nme>
  519. </Img>
  520. </ListElementItem>
  521. </Action>
  522. <Action sr="act15" ve="7">
  523. <code>523</code>
  524. <Str sr="arg0" ve="3">%NotificationTitle</Str>
  525. <Str sr="arg1" ve="3">Waiting for connection...</Str>
  526. <Img sr="arg2" ve="2">
  527. <nme>mw_action_label_outline</nme>
  528. </Img>
  529. <Int sr="arg3" val="0"/>
  530. <Int sr="arg4" val="1"/>
  531. <Int sr="arg5" val="2"/>
  532. <ConditionList sr="if">
  533. <Condition sr="c0" ve="3">
  534. <lhs>%return</lhs>
  535. <op>1</op>
  536. <rhs>true</rhs>
  537. </Condition>
  538. </ConditionList>
  539. <ListElementItem sr="item0">
  540. <label>Exit</label>
  541. <Action sr="action" ve="7">
  542. <code>130</code>
  543. <Str sr="arg0" ve="3">Stop Looper</Str>
  544. <Int sr="arg1">
  545. <var>%priority+1</var>
  546. </Int>
  547. <Str sr="arg2" ve="3"/>
  548. <Str sr="arg3" ve="3"/>
  549. <Str sr="arg4" ve="3"/>
  550. <Int sr="arg5" val="0"/>
  551. </Action>
  552. <Img sr="icon" ve="2">
  553. <nme>mw_navigation_close</nme>
  554. </Img>
  555. </ListElementItem>
  556. <ListElementItem sr="item1">
  557. <label>Force Check</label>
  558. <Action sr="action" ve="7">
  559. <code>130</code>
  560. <Str sr="arg0" ve="3">Find &amp; Set BT Priority</Str>
  561. <Int sr="arg1">
  562. <var>%priority+1</var>
  563. </Int>
  564. <Str sr="arg2" ve="3"/>
  565. <Str sr="arg3" ve="3"/>
  566. <Str sr="arg4" ve="3">%IsPrioritySet</Str>
  567. <Int sr="arg5" val="0"/>
  568. </Action>
  569. <Img sr="icon" ve="2">
  570. <nme>mw_action_find_replace</nme>
  571. </Img>
  572. </ListElementItem>
  573. <ListElementItem sr="item2">
  574. <label>Restart BT</label>
  575. <Action sr="action" ve="7">
  576. <code>130</code>
  577. <Str sr="arg0" ve="3">Restart BT</Str>
  578. <Int sr="arg1">
  579. <var>%priority+1</var>
  580. </Int>
  581. <Str sr="arg2" ve="3"/>
  582. <Str sr="arg3" ve="3"/>
  583. <Str sr="arg4" ve="3"/>
  584. <Int sr="arg5" val="0"/>
  585. </Action>
  586. <Img sr="icon" ve="2">
  587. <nme>mw_action_settings_bluetooth</nme>
  588. </Img>
  589. </ListElementItem>
  590. </Action>
  591. <Action sr="act16" ve="7">
  592. <code>547</code>
  593. <Str sr="arg0" ve="3">%IsPrioritySet</Str>
  594. <Str sr="arg1" ve="3">%return</Str>
  595. <Int sr="arg2" val="1"/>
  596. <Int sr="arg3" val="0"/>
  597. <Int sr="arg4" val="0"/>
  598. </Action>
  599. <Action sr="act17" ve="7">
  600. <code>38</code>
  601. </Action>
  602. <Action sr="act18" ve="7">
  603. <code>30</code>
  604. <label>Wait so the loop doesn't run super fast</label>
  605. <Int sr="arg0" val="0"/>
  606. <Int sr="arg1">
  607. <var>%LoopSecondsSet</var>
  608. </Int>
  609. <Int sr="arg2" val="0"/>
  610. <Int sr="arg3" val="0"/>
  611. <Int sr="arg4" val="0"/>
  612. <ConditionList sr="if">
  613. <Condition sr="c0" ve="3">
  614. <lhs>%return</lhs>
  615. <op>0</op>
  616. <rhs>true</rhs>
  617. </Condition>
  618. </ConditionList>
  619. </Action>
  620. <Action sr="act19" ve="7">
  621. <code>30</code>
  622. <Int sr="arg0" val="0"/>
  623. <Int sr="arg1">
  624. <var>%LoopSeconds</var>
  625. </Int>
  626. <Int sr="arg2" val="0"/>
  627. <Int sr="arg3" val="0"/>
  628. <Int sr="arg4" val="0"/>
  629. <ConditionList sr="if">
  630. <Condition sr="c0" ve="3">
  631. <lhs>%return</lhs>
  632. <op>1</op>
  633. <rhs>true</rhs>
  634. </Condition>
  635. </ConditionList>
  636. </Action>
  637. <Action sr="act2" ve="7">
  638. <code>547</code>
  639. <Str sr="arg0" ve="3">%LoopSeconds</Str>
  640. <Str sr="arg1" ve="3">3</Str>
  641. <Int sr="arg2" val="0"/>
  642. <Int sr="arg3" val="0"/>
  643. <Int sr="arg4" val="0"/>
  644. <ConditionList sr="if">
  645. <Condition sr="c0" ve="3">
  646. <lhs>%LoopSeconds</lhs>
  647. <op>13</op>
  648. <rhs></rhs>
  649. </Condition>
  650. </ConditionList>
  651. </Action>
  652. <Action sr="act20" ve="7">
  653. <code>135</code>
  654. <Int sr="arg0" val="1"/>
  655. <Int sr="arg1" val="1"/>
  656. <Str sr="arg2" ve="3">Loop start</Str>
  657. </Action>
  658. <Action sr="act3" ve="7">
  659. <code>547</code>
  660. <Str sr="arg0" ve="3">%LoopSecondsSet</Str>
  661. <Str sr="arg1" ve="3">15</Str>
  662. <Int sr="arg2" val="0"/>
  663. <Int sr="arg3" val="0"/>
  664. <Int sr="arg4" val="0"/>
  665. <ConditionList sr="if">
  666. <Condition sr="c0" ve="3">
  667. <lhs>%LoopSecondsSet</lhs>
  668. <op>13</op>
  669. <rhs></rhs>
  670. </Condition>
  671. </ConditionList>
  672. </Action>
  673. <Action sr="act4" ve="7">
  674. <code>547</code>
  675. <Str sr="arg0" ve="3">%AppForeground</Str>
  676. <Str sr="arg1" ve="3">true</Str>
  677. <Int sr="arg2" val="0"/>
  678. <Int sr="arg3" val="0"/>
  679. <Int sr="arg4" val="0"/>
  680. </Action>
  681. <Action sr="act5" ve="7">
  682. <code>547</code>
  683. <Str sr="arg0" ve="3">%IsPrioritySet</Str>
  684. <Str sr="arg1" ve="3">null</Str>
  685. <Int sr="arg2" val="0"/>
  686. <Int sr="arg3" val="0"/>
  687. <Int sr="arg4" val="0"/>
  688. </Action>
  689. <Action sr="act6" ve="7">
  690. <code>130</code>
  691. <label>Loop start</label>
  692. <Str sr="arg0" ve="3">Find &amp; Set BT Priority</Str>
  693. <Int sr="arg1">
  694. <var>%priority+1</var>
  695. </Int>
  696. <Str sr="arg2" ve="3">%IsPrioritySet</Str>
  697. <Str sr="arg3" ve="3"/>
  698. <Str sr="arg4" ve="3">%return</Str>
  699. <Int sr="arg5" val="0"/>
  700. </Action>
  701. <Action sr="act7" ve="7">
  702. <code>779</code>
  703. <label>Enable these for disconnect notification</label>
  704. <on>false</on>
  705. <Str sr="arg0" ve="3">%DisconnectNotification</Str>
  706. <Int sr="arg1" val="0"/>
  707. <ConditionList sr="if">
  708. <Condition sr="c0" ve="3">
  709. <lhs>%return</lhs>
  710. <op>0</op>
  711. <rhs>true</rhs>
  712. </Condition>
  713. </ConditionList>
  714. </Action>
  715. <Action sr="act8" ve="7">
  716. <code>536</code>
  717. <label>Will incorrectly notify sometimes</label>
  718. <on>false</on>
  719. <Str sr="arg0" ve="3">%DisconnectNotification</Str>
  720. <Str sr="arg1" ve="3">BT devices connected: %BTConnectedCount</Str>
  721. <Img sr="arg2" ve="2">
  722. <nme>mw_alert_error_outline</nme>
  723. </Img>
  724. <Int sr="arg3" val="0"/>
  725. <Str sr="arg4" ve="3">100, 200, 100, 200, 100, 200</Str>
  726. <Int sr="arg5" val="3"/>
  727. <Int sr="arg6" val="0"/>
  728. <ConditionList sr="if">
  729. <bool0>And</bool0>
  730. <Condition sr="c0" ve="3">
  731. <lhs>%IsPrioritySet</lhs>
  732. <op>0</op>
  733. <rhs>true</rhs>
  734. </Condition>
  735. <Condition sr="c1" ve="3">
  736. <lhs>%return</lhs>
  737. <op>0</op>
  738. <rhs>false</rhs>
  739. </Condition>
  740. </ConditionList>
  741. </Action>
  742. <Action sr="act9" ve="7">
  743. <code>37</code>
  744. <label>Stop task if GO+ not connected and app is not in foreground</label>
  745. <ConditionList sr="if">
  746. <bool0>And</bool0>
  747. <Condition sr="c0" ve="3">
  748. <lhs>%AppForeground</lhs>
  749. <op>1</op>
  750. <rhs>true</rhs>
  751. </Condition>
  752. <Condition sr="c1" ve="3">
  753. <lhs>%return</lhs>
  754. <op>1</op>
  755. <rhs>true</rhs>
  756. </Condition>
  757. </ConditionList>
  758. </Action>
  759. </Task>
  760. <Task sr="task4">
  761. <cdate>1503696236460</cdate>
  762. <edate>1506245593558</edate>
  763. <id>4</id>
  764. <nme>App Closed</nme>
  765. <pri>100</pri>
  766. <rty>1</rty>
  767. <Action sr="act0" ve="7">
  768. <code>547</code>
  769. <Str sr="arg0" ve="3">%AppForeground</Str>
  770. <Str sr="arg1" ve="3">false</Str>
  771. <Int sr="arg2" val="0"/>
  772. <Int sr="arg3" val="0"/>
  773. <Int sr="arg4" val="0"/>
  774. </Action>
  775. </Task>
  776. <Task sr="task5">
  777. <cdate>1506246952047</cdate>
  778. <edate>1506861223461</edate>
  779. <id>5</id>
  780. <nme>Restart BT</nme>
  781. <pri>100</pri>
  782. <Action sr="act0" ve="7">
  783. <code>547</code>
  784. <Str sr="arg0" ve="3">%BTRestartNotification</Str>
  785. <Str sr="arg1" ve="3">BT Restart</Str>
  786. <Int sr="arg2" val="0"/>
  787. <Int sr="arg3" val="0"/>
  788. <Int sr="arg4" val="0"/>
  789. <ConditionList sr="if">
  790. <Condition sr="c0" ve="3">
  791. <lhs>%BTRestartNotification</lhs>
  792. <op>13</op>
  793. <rhs></rhs>
  794. </Condition>
  795. </ConditionList>
  796. </Action>
  797. <Action sr="act1" ve="7">
  798. <code>664</code>
  799. <Str sr="arg0" ve="3">btManager</Str>
  800. <Str sr="arg1" ve="3">CONTEXT</Str>
  801. <Str sr="arg2" ve="3">getSystemService
  802. {BluetoothManager} (String)</Str>
  803. <Str sr="arg3" ve="3">bluetooth</Str>
  804. <Str sr="arg4" ve="3"/>
  805. <Str sr="arg5" ve="3"/>
  806. <Str sr="arg6" ve="3"/>
  807. <Str sr="arg7" ve="3"/>
  808. <Str sr="arg8" ve="3"/>
  809. <Str sr="arg9" ve="3"/>
  810. </Action>
  811. <Action sr="act10" ve="7">
  812. <code>888</code>
  813. <Str sr="arg0" ve="3">%loopcount</Str>
  814. <Int sr="arg1" val="1"/>
  815. <Int sr="arg2" val="0"/>
  816. </Action>
  817. <Action sr="act11" ve="7">
  818. <code>135</code>
  819. <Int sr="arg0" val="1"/>
  820. <Int sr="arg1" val="1"/>
  821. <Str sr="arg2" ve="3">Check BT Disable</Str>
  822. </Action>
  823. <Action sr="act12" ve="7">
  824. <code>38</code>
  825. </Action>
  826. <Action sr="act13" ve="7">
  827. <code>547</code>
  828. <Str sr="arg0" ve="3">%loopcount</Str>
  829. <Str sr="arg1" ve="3">0</Str>
  830. <Int sr="arg2" val="0"/>
  831. <Int sr="arg3" val="0"/>
  832. <Int sr="arg4" val="0"/>
  833. </Action>
  834. <Action sr="act14" ve="7">
  835. <code>294</code>
  836. <label>Check BT Enable</label>
  837. <Int sr="arg0" val="1"/>
  838. </Action>
  839. <Action sr="act15" ve="7">
  840. <code>664</code>
  841. <Str sr="arg0" ve="3">%state</Str>
  842. <Str sr="arg1" ve="3">btAdapter</Str>
  843. <Str sr="arg2" ve="3">getState
  844. {int} ()</Str>
  845. <Str sr="arg3" ve="3"/>
  846. <Str sr="arg4" ve="3"/>
  847. <Str sr="arg5" ve="3"/>
  848. <Str sr="arg6" ve="3"/>
  849. <Str sr="arg7" ve="3"/>
  850. <Str sr="arg8" ve="3"/>
  851. <Str sr="arg9" ve="3"/>
  852. </Action>
  853. <Action sr="act16" ve="7">
  854. <code>37</code>
  855. <ConditionList sr="if">
  856. <Condition sr="c0" ve="3">
  857. <lhs>%state</lhs>
  858. <op>1</op>
  859. <rhs>12</rhs>
  860. </Condition>
  861. </ConditionList>
  862. </Action>
  863. <Action sr="act17" ve="7">
  864. <code>30</code>
  865. <Int sr="arg0" val="0"/>
  866. <Int sr="arg1" val="1"/>
  867. <Int sr="arg2" val="0"/>
  868. <Int sr="arg3" val="0"/>
  869. <Int sr="arg4" val="0"/>
  870. </Action>
  871. <Action sr="act18" ve="7">
  872. <code>523</code>
  873. <Str sr="arg0" ve="3">%BTRestartNotification</Str>
  874. <Str sr="arg1" ve="3">Waiting for BT startup - %loopcount</Str>
  875. <Img sr="arg2" ve="2">
  876. <nme>mw_action_settings_bluetooth</nme>
  877. </Img>
  878. <Int sr="arg3" val="0"/>
  879. <Int sr="arg4" val="0"/>
  880. <Int sr="arg5" val="3"/>
  881. </Action>
  882. <Action sr="act19" ve="7">
  883. <code>137</code>
  884. <Int sr="arg0" val="0"/>
  885. <Str sr="arg1" ve="3"/>
  886. <ConditionList sr="if">
  887. <Condition sr="c0" ve="3">
  888. <lhs>%loopcount</lhs>
  889. <op>7</op>
  890. <rhs>15</rhs>
  891. </Condition>
  892. </ConditionList>
  893. </Action>
  894. <Action sr="act2" ve="7">
  895. <code>664</code>
  896. <Str sr="arg0" ve="3">btAdapter</Str>
  897. <Str sr="arg1" ve="3">btManager</Str>
  898. <Str sr="arg2" ve="3">getAdapter
  899. {BluetoothAdapter} ()</Str>
  900. <Str sr="arg3" ve="3"/>
  901. <Str sr="arg4" ve="3"/>
  902. <Str sr="arg5" ve="3"/>
  903. <Str sr="arg6" ve="3"/>
  904. <Str sr="arg7" ve="3"/>
  905. <Str sr="arg8" ve="3"/>
  906. <Str sr="arg9" ve="3"/>
  907. </Action>
  908. <Action sr="act20" ve="7">
  909. <code>888</code>
  910. <Str sr="arg0" ve="3">%loopcount</Str>
  911. <Int sr="arg1" val="1"/>
  912. <Int sr="arg2" val="0"/>
  913. </Action>
  914. <Action sr="act21" ve="7">
  915. <code>135</code>
  916. <Int sr="arg0" val="1"/>
  917. <Int sr="arg1" val="1"/>
  918. <Str sr="arg2" ve="3">Check BT Enable</Str>
  919. </Action>
  920. <Action sr="act22" ve="7">
  921. <code>38</code>
  922. </Action>
  923. <Action sr="act23" ve="7">
  924. <code>523</code>
  925. <Str sr="arg0" ve="3">%BTRestartNotification</Str>
  926. <Str sr="arg1" ve="3">BT successfully restarted!</Str>
  927. <Img sr="arg2" ve="2">
  928. <nme>mw_action_settings_bluetooth</nme>
  929. </Img>
  930. <Int sr="arg3" val="0"/>
  931. <Int sr="arg4" val="0"/>
  932. <Int sr="arg5" val="3"/>
  933. </Action>
  934. <Action sr="act24" ve="7">
  935. <code>30</code>
  936. <Int sr="arg0" val="0"/>
  937. <Int sr="arg1" val="2"/>
  938. <Int sr="arg2" val="0"/>
  939. <Int sr="arg3" val="0"/>
  940. <Int sr="arg4" val="0"/>
  941. </Action>
  942. <Action sr="act25" ve="7">
  943. <code>779</code>
  944. <Str sr="arg0" ve="3">%BTRestartNotification</Str>
  945. <Int sr="arg1" val="0"/>
  946. </Action>
  947. <Action sr="act3" ve="7">
  948. <code>547</code>
  949. <Str sr="arg0" ve="3">%loopcount</Str>
  950. <Str sr="arg1" ve="3">0</Str>
  951. <Int sr="arg2" val="0"/>
  952. <Int sr="arg3" val="0"/>
  953. <Int sr="arg4" val="0"/>
  954. </Action>
  955. <Action sr="act4" ve="7">
  956. <code>294</code>
  957. <label>Check BT Disable</label>
  958. <Int sr="arg0" val="0"/>
  959. </Action>
  960. <Action sr="act5" ve="7">
  961. <code>664</code>
  962. <Str sr="arg0" ve="3">%state</Str>
  963. <Str sr="arg1" ve="3">btAdapter</Str>
  964. <Str sr="arg2" ve="3">getState
  965. {int} ()</Str>
  966. <Str sr="arg3" ve="3"/>
  967. <Str sr="arg4" ve="3"/>
  968. <Str sr="arg5" ve="3"/>
  969. <Str sr="arg6" ve="3"/>
  970. <Str sr="arg7" ve="3"/>
  971. <Str sr="arg8" ve="3"/>
  972. <Str sr="arg9" ve="3"/>
  973. </Action>
  974. <Action sr="act6" ve="7">
  975. <code>37</code>
  976. <ConditionList sr="if">
  977. <Condition sr="c0" ve="3">
  978. <lhs>%state</lhs>
  979. <op>1</op>
  980. <rhs>10</rhs>
  981. </Condition>
  982. </ConditionList>
  983. </Action>
  984. <Action sr="act7" ve="7">
  985. <code>30</code>
  986. <Int sr="arg0" val="0"/>
  987. <Int sr="arg1" val="1"/>
  988. <Int sr="arg2" val="0"/>
  989. <Int sr="arg3" val="0"/>
  990. <Int sr="arg4" val="0"/>
  991. </Action>
  992. <Action sr="act8" ve="7">
  993. <code>523</code>
  994. <Str sr="arg0" ve="3">%BTRestartNotification</Str>
  995. <Str sr="arg1" ve="3">Waiting for BT shutdown - %loopcount</Str>
  996. <Img sr="arg2" ve="2">
  997. <nme>mw_action_settings_bluetooth</nme>
  998. </Img>
  999. <Int sr="arg3" val="0"/>
  1000. <Int sr="arg4" val="0"/>
  1001. <Int sr="arg5" val="3"/>
  1002. </Action>
  1003. <Action sr="act9" ve="7">
  1004. <code>137</code>
  1005. <Int sr="arg0" val="0"/>
  1006. <Str sr="arg1" ve="3"/>
  1007. <ConditionList sr="if">
  1008. <Condition sr="c0" ve="3">
  1009. <lhs>%loopcount</lhs>
  1010. <op>7</op>
  1011. <rhs>15</rhs>
  1012. </Condition>
  1013. </ConditionList>
  1014. </Action>
  1015. </Task>
  1016. <Task sr="task9">
  1017. <cdate>1503837624731</cdate>
  1018. <edate>1506246381849</edate>
  1019. <id>9</id>
  1020. <nme>Stop Looper</nme>
  1021. <pri>100</pri>
  1022. <Action sr="act0" ve="7">
  1023. <code>779</code>
  1024. <Str sr="arg0" ve="3">%NotificationTitle</Str>
  1025. <Int sr="arg1" val="0"/>
  1026. </Action>
  1027. <Action sr="act1" ve="7">
  1028. <code>137</code>
  1029. <Int sr="arg0" val="0"/>
  1030. <Str sr="arg1" ve="3">Auto Looper</Str>
  1031. </Action>
  1032. </Task>
  1033. </TaskerData>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement