Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Task: AutoInput Auto Click Sequence ↩️
- <✔ DEFAULT WAIT TIME IN MS>
- A1: Variable Set [
- Name: %wait_time
- To: 500 ]
- If [ %par2 !Set ]
- <✔ SHOW FLASH AS EACH ITEM CLICKED>
- A2: Variable Set [
- Name: %flash_item
- To: no ]
- <<h3>↘ <b><font color="#000000"> BEGIN>
- A3: Anchor
- <<b> SEND ITEM LIST IN %par1</b> - NEWLINE SEPARATED - ACCEPTS TEXT, ELEMENT IDs, AND COORDINATES>
- A4: Variable Set [
- Name: %item_list
- To: %par1 ]
- <SEND WAIT TIME IN MS BETWEEN CLICK ACTIONS IN %par2 (OPTIONAL)>
- A5: Variable Set [
- Name: %wait_time
- To: %par2 ]
- If [ %par2 Set ]
- <AUTOINPUT ACTION TIMEOUT>
- A6: Variable Set [
- Name: %timeout
- To: 7 ]
- <TEST LIST>
- A7: [X] Variable Set [
- Name: %item_list
- To: Configuration
- Timeout (Seconds)
- Switch
- android:id/action_bar_title
- android:id/action_bar_subtitle ]
- A8: Variable Set [
- Name: %ret
- To:
- ]
- A9: Variable Split [
- Name: %item_list
- Splitter: %ret ]
- A10: For [
- Variable: %clickon
- Items: %item_list() ]
- A11: Flash [
- Text: CLICKING ON: %clickon
- Continue Task Immediately: On
- Dismiss On Click: On ]
- If [ %flash_item ~ yes ]
- <<b>SPECIFY EXTRA WAIT TIME>
- A12: If [ %clickon ~R ^(--)?wait(--|:)[0-9]+$ ]
- A13: Variable Search Replace [
- Variable: %clickon
- Search: (--|:|wait)
- Replace Matches: On ]
- A14: Wait [
- MS: %wait_secs
- Seconds: 0
- Minutes: 0
- Hours: 0
- Days: 0 ]
- A15: Goto [
- Type: Top of Loop ]
- A16: End If
- <<B>ELEMENT ID>
- A17: If [ %clickon ~R /id: | %clickon ~R ^index:[0-9]+ | %clickon ~R ^ID: ]
- A18: Variable Search Replace [
- Variable: %clickon
- Search: ^ID:
- Replace Matches: On ]
- <ELEMENT ID>
- A19: AutoInput Action [
- Configuration: Type: Id
- Value: %clickon
- Action : Click
- Is Tasker Action: false
- Check Screen State: false
- Timeout (Seconds): %timeout
- Continue Task After Error:On ]
- <<b>COORDINATES>
- A20: Else
- If [ %clickon ~R ^([cC]oords:)?[0-9]+,[0-9]+$ ]
- A21: Variable Search Replace [
- Variable: %clickon
- Search: ^coords:
- Replace Matches: On ]
- <POINT>
- A22: AutoInput Action [
- Configuration: Type: Point
- Value: %clickon
- Action : Click
- Is Tasker Action: false
- Check Screen State: false
- Timeout (Seconds): %timeout
- Continue Task After Error:On ]
- <<b>SCROLL DOWN>
- A23: Else
- If [ %clickon ~R ^ScrollDown(:|--) ]
- A24: Variable Search Replace [
- Variable: %clickon
- Search: ^ScrollDown(:|--)
- Replace Matches: On ]
- <SCROLL DOWN>
- A25: AutoInput Action [
- Configuration: Type: Text
- Value: %clickon
- Action : Scroll Forward
- Timeout (Seconds): 20 ]
- <<b>SCROLL UP>
- A26: Else
- If [ %clickon ~R ^ScrollUp(:|--) ]
- A27: Variable Search Replace [
- Variable: %clickon
- Search: ^ScrollUp(:|--)
- Replace Matches: On ]
- <SCROLL UP>
- A28: AutoInput Action [
- Configuration: Type: Text
- Value: %clickon
- Action : Scroll Backward
- Timeout (Seconds): 20 ]
- <KEYBOARD ACTION>
- A29: Else
- If [ %clickon ~R ^Keyboard: ]
- A30: Variable Search Replace [
- Variable: %clickon
- Search: Keyboard:
- Replace Matches: On ]
- <KEYBOARD>
- A31: Keyboard [
- Input: %clickon
- Time Between Inputs: 1000 ]
- <<b>SWIPE ACTION>
- A32: Else
- If [ %clickon ~R ^Swipe:[0-9]+,[0-9]+(-)[0-9]+,[0-9]+ ]
- A33: Variable Search Replace [
- Variable: %clickon
- Search: Swipe:
- Replace Matches: On ]
- A34: Simple Match/Regex [
- Type: Regex
- Text: %clickon
- Regex: (?<coords_begin>[0-9]+,[0-9]+)(-)(?<coords_end>[0-9]+,[0-9]+) ]
- A35: AutoInput Gestures [
- Configuration: Gesture Type: Swipe
- Start Point: %coords_begin
- End Point: %coords_end
- Duration: 250
- Timeout (Seconds): 60 ]
- <<b>PLAIN TEXT>
- A36: Else
- A37: Variable Search Replace [
- Variable: %clickon
- Search: ^text:
- Replace Matches: On ]
- <TEXT>
- A38: AutoInput Action [
- Configuration: Type: Text
- Value: %clickon
- Action : Click
- Is Tasker Action: false
- Check Screen State: false
- Timeout (Seconds): %timeout
- Continue Task After Error:On ]
- A39: End If
- <<b>DEFAULT WAIT TIME BETWEEN ACTIONS>
- A40: Wait [
- MS: %wait_time
- Seconds: 0
- Minutes: 0
- Hours: 0
- Days: 0 ]
- A41: End For
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement