ScriptTap
SetCoordinates

Command video guide

SetCoordinates

SetCoordinates stores a literal screen position in Integer variables for later commands. It does not tap or read the screen during play. Unlike ordinary numeric assignments, these coordinates can adapt during supported imports.

Point writes X and Y to two distinct Integer variables. Area writes left, top, right, and bottom to four distinct Integer variables. The selectors choose the geometry; the output fields name the destinations. Switching modes clears the outgoing mode’s settings. Use In selects This Script Only or Script Thread scope.

This guide first explores Area around the ScriptTap icon, then uses Point for Play Store. SetCoordinates writes x1 and y1, Tap uses those variables, and Standard PromptMe shows an Opened header with a Done button through b1. All three commands are manually dragged into the new script.

Manual and Public Cloud imports adapt coordinates when Transpose Coordinates is selected. Personal Cloud imports adapt automatically; Bridge imports keep the exact values. Ordinary SetVariable numbers do not gain this coordinate-import behavior. If Android asks, allow screen capture when opening a selector.

Watch the walkthrough

Step-by-step guide

  1. Step 01

    Set Coordinates stores a screen point or rectangle in Integer variables for later commands. Unlike ordinary number assignments, these coordinates can adapt when a script is imported for another device. In this example, a Tap will use the saved point to open Play Store.

    SetCoordinates step 1: Set Coordinates stores a screen point or rectangle in Integer variables for later commands. Unlike ordinary number assignments, these coordinates can adapt when a script is imported for another device. In this example, a Tap will use the saved point to open Play Store.
  2. Step 02

    Create a new blank script in the Script Library.

    SetCoordinates step 2: Create a new blank script in the Script Library.
  3. Step 03

    Open the new script's menu, choose Rename, and give it a clear name.

    SetCoordinates step 3: Open the new script's menu, choose Rename, and give it a clear name.
  4. Step 04

    Select the new script, close the library, and open its editor. Collapse the extra overlay controls to make room.

    SetCoordinates step 4: Select the new script, close the library, and open its editor. Collapse the extra overlay controls to make room.
  5. Step 05

    Under Variables, drag Set Coordinates into the live script, then open its new row.

    SetCoordinates step 5: Under Variables, drag Set Coordinates into the live script, then open its new row.
  6. Step 06

    There are Point and Area modes. Point stores X and Y. Area stores left, top, right, and bottom edges in four distinct Integer outputs. Let us look at Area first.

    SetCoordinates step 6: There are Point and Area modes. Point stores X and Y. Area stores left, top, right, and bottom edges in four distinct Integer outputs. Let us look at Area first.
  7. Step 07

    Use the Area selector to choose a rectangle. If Android asks, allow screen capture. Drag the corners around the region you want, then confirm with the checkmark.

    SetCoordinates step 7: Use the Area selector to choose a rectangle. If Android asks, allow screen capture. Drag the corners around the region you want, then confirm with the checkmark.
  8. Step 08

    These four fields choose where each edge will be saved. For example, a one through a four can hold left, top, right, and bottom. All four outputs must be different Integer variables.

    SetCoordinates step 8: These four fields choose where each edge will be saved. For example, a one through a four can hold left, top, right, and bottom. All four outputs must be different Integer variables.
  9. Step 09

    Switching modes clears the outgoing mode's settings. These are alternatives, not two saved profiles. We will use Point for the running example.

    SetCoordinates step 9: Switching modes clears the outgoing mode's settings. These are alternatives, not two saved profiles. We will use Point for the running example.
  10. Step 10

    Use In controls the outputs' scope. This Script Only keeps them local; Script Thread makes them available in the calling script thread. Keep This Script Only here.

    SetCoordinates step 10: Use In controls the outputs' scope. This Script Only keeps them local; Script Thread makes them available in the calling script thread. Keep This Script Only here.
  11. Step 11

    Open the Point selector and drag its square until the center is over Play Store. The checkmark saves that position back into the same command draft.

    SetCoordinates step 11: Open the Point selector and drag its square until the center is over Play Store. The checkmark saves that position back into the same command draft.
  12. Step 12

    Enter x one and y one as the two Integer outputs. Set Coordinates stores the selected literal position in these variables when the script reaches this command. It does not perform a tap itself.

    SetCoordinates step 12: Enter x one and y one as the two Integer outputs. Set Coordinates stores the selected literal position in these variables when the script reaches this command. It does not perform a tap itself.
  13. Step 13

    During Manual or Public Cloud import, coordinates adapt when Transpose Coordinates is selected. Personal Cloud adapts them automatically. Bridge imports keep the exact coordinates. Save the command when setup is complete.

    SetCoordinates step 13: During Manual or Public Cloud import, coordinates adapt when Transpose Coordinates is selected. Personal Cloud adapts them automatically. Bridge imports keep the exact coordinates. Save the command when setup is complete.
  14. Step 14

    Now drag Tap after Set Coordinates and open it. This supporting command will use the stored point, so we can see a useful result.

    SetCoordinates step 14: Now drag Tap after Set Coordinates and open it. This supporting command will use the stored point, so we can see a useful result.
  15. Step 15

    Use x one for X and y one for Y, then save. These are the variables created by Set Coordinates, not new fixed numbers.

    SetCoordinates step 15: Use x one for X and y one for Y, then save. These are the variables created by Set Coordinates, not new fixed numbers.
  16. Step 16

    For a clear confirmation, open Advanced and scroll to PromptMe.

    SetCoordinates step 16: For a clear confirmation, open Advanced and scroll to PromptMe.
  17. Step 17

    Drag PromptMe after the Tap and open its settings.

    SetCoordinates step 17: Drag PromptMe after the Tap and open its settings.
  18. Step 18

    Keep Standard mode and enter Opened as the header.

    SetCoordinates step 18: Keep Standard mode and enter Opened as the header.
  19. Step 19

    Add a button and enter Done for its caption.

    SetCoordinates step 19: Add a button and enter Done for its caption.
  20. Step 20

    Use Boolean b one for the button's output, then save the command.

    SetCoordinates step 20: Use Boolean b one for the button's output, then save the command.
  21. Step 21

    The finished script stores a point, taps that point using its two variables, and shows a confirmation. Set Coordinates is useful when later actions need a reusable position that can adapt during supported imports.

    SetCoordinates step 21: The finished script stores a point, taps that point using its two variables, and shows a confirmation. Set Coordinates is useful when later actions need a reusable position that can adapt during supported imports.
  22. Step 22

    Close the editor and expand the main overlay.

    SetCoordinates step 22: Close the editor and expand the main overlay.
  23. Step 23

    When the script is complete, simply use the Play button in the main overlay.

    SetCoordinates step 23: When the script is complete, simply use the Play button in the main overlay.
  24. Step 24

    Play Store opens at the selected point, and the confirmation appears. Choose Done to finish.

    SetCoordinates step 24: Play Store opens at the selected point, and the confirmation appears. Choose Done to finish.
  25. Step 25

    The script stops automatically. Use Point for two coordinate outputs, or Area when later commands need all four edges of a rectangle.

    SetCoordinates step 25: The script stops automatically. Use Point for two coordinate outputs, or Area when later commands need all four edges of a rectangle.