BaSs_HaXoR

How to automate KIK Messaging

Oct 26th, 2015
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.16 KB | None | 0 0
  1. [How To] Voice controlled Kik messaging!How To (self.tasker)
  2. submitted 9 months ago * by zensunset
  3. I was sick of only being able to send only text messages using voice control on my moto x. I wrote up a task which I can trigger in a number of ways which let's me send messages on kik without having to have my phone in my hand.
  4. Anyone interested in this? (Also, what's the best way to share this? Export as xml?)
  5. Requires: autovoice, autoinput, and secure settings. NO ROOT REQUIRED. :)
  6. Edit: Here's the description. Anyone know how best to share this? Cause I'm pretty clueless, since this is my first post on this sub.
  7. Kik Over Voice (96)
  8. A1: Secure Settings [ Configuration:Keyguard Disabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
  9.  
  10. A2: Say [ Text:To whom do you wish to send this message? Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]
  11.  
  12. A3: AutoVoice Recognize [ Configuration:
  13. Prompt Text: To whom do you wish to send a message? Language Model: Free Form Voice command without headset Command: "all" Package:com.joaomgcd.autovoice Name:AutoVoice Recognize Timeout (Seconds):120 ]
  14. A4: Launch App [ App:Kik Data: Exclude From Recent Apps:Off ]
  15. A5: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
  16.  
  17. A6: AutoInput UI Query [ Configuration:Variables: handle Package:com.joaomgcd.autoinput Name:AutoInput UI Query Timeout (Seconds):20 ]
  18.  
  19. A7: AutoInput Global Action [ Configuration:Action: Back Package:com.joaomgcd.autoinput Name:AutoInput Global Action Timeout (Seconds):20 ] If [ %aitext() !~ *CELL* ]
  20.  
  21. A8: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
  22.  
  23. A9: AutoInput UI Query [ Configuration:Variables: handle Package:com.joaomgcd.autoinput Name:AutoInput UI Query Timeout (Seconds):20 ]
  24. A10: AutoInput Global Action [ Configuration:Action: Back Package:com.joaomgcd.autoinput Name:AutoInput Global Action Timeout (Seconds):20 ] If [ %aitext() !~ CELL ] <Kik person stored in %Name>
  25. A11: Variable Set [ Name:%Name To:%avword() Do Maths:Off Append:Off ]
  26. A12: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
  27.  
  28. A13: AutoInput Action [ Configuration:Type: Text
  29. Value: %Name Action : Click Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 ] <GoTo>
  30. A14: Say [ Text:What's the message? Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]
  31.  
  32. A15: AutoVoice Recognize [ Configuration:
  33. Prompt Text: What's the message? Language Model: Free Form Voice command without headset Command: "all" Package:com.joaomgcd.autovoice Name:AutoVoice Recognize Timeout (Seconds):120 ]
  34. A16: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
  35. A17: Variable Set [ Name:%KikMessage To:%avcomm Do Maths:Off Append:Off ] <Message sent will be %KikMessage>
  36. A18: Set Clipboard [ Text:%KikMessage Add:Off ]
  37.  
  38. A19: AutoInput Action [ Configuration:Type: Id
  39. Value: kik.android:id/txt_new_message Action : Select Text Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 ]
  40. A20: AutoInput Action [ Configuration:Type: Id
  41. Value: kik.android:id/txt_new_message Action : Paste Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 ]
  42. A21: Say [ Text:%avcomm. Is this correct? Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off ]
  43.  
  44. A22: AutoVoice Recognize [ Configuration:
  45. Prompt Text: %avcomm Is this correct? Voice command without headset Command: "all" Package:com.joaomgcd.autovoice Name:AutoVoice Recognize Timeout (Seconds):120 ]
  46. A23: If [ %avcomm ~ yes ]
  47. A24: AutoInput Action [ Configuration:Type: Id
  48. Value: kik.android:id/button_send_message Action : Click Package:com.joaomgcd.autoinput Name:AutoInput Action Timeout (Seconds):20 ]
  49. A25: Else If [ %avcomm ~ *no* ]
  50.  
  51. A26: Goto [ Type:Action Label Number:13 Label:GoTo ]
  52.  
  53. A27: End If
  54.  
  55. A28: Secure Settings [ Configuration:Keyguard Enabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings Timeout (Seconds):0 ]
  56.  
  57. // BaSs_HaXoR
  58. // https://www.reddit.com/r/tasker/comments/2rtxjb/how_to_voice_controlled_kik_messaging/
Add Comment
Please, Sign In to add comment