AutoInput Search: Click on n-th appearance of text

Discussion in 'AutoApps' started by mbefore305, Jun 17, 2019.

  1. mbefore305

    mbefore305 New Member

    Joined:
    Aug 26, 2016
    Messages:
    6
    Likes Received:
    0
    With AutoInput I search for Text on an app screen (concret: in Spotify search) and want to trigger
    a click on a specific text. The text is written (with AutoInput) in the search field.
    Thus it appears at least twice on the screen: In the search field and as search result.
    How to perform a click on the result? Normal AutoInput click on text would click on the text
    in the search field and not do anything.

    Related question:
    The result list could be longer than one page and the wanted result hidden, so scrolling is needed.
    Is it possible to let AutoInput do this automatically; e.g. it notices, that text is not on screen and
    thus scrolls one or more times until text appears?
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Maybe you can press the Enter key with the Keyboard action in Tasker to accept the search? :)
     
    mbefore305 likes this.
  3. mbefore305

    mbefore305 New Member

    Joined:
    Aug 26, 2016
    Messages:
    6
    Likes Received:
    0
    I tried the proposed Enter key Keyboard action but it does not do anything.
    My current workaround: In the Spotify Library I filter a search and in the results I click on the text 'Songs'.
    Background: I use Tasker to start a specific playlist (selected in a Scene) in Spotify. Maybe there is an easier way than AutoInput?
    Note: Spotify is in offline mode.
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Yes actually :) There's an easier way!
    • Go to the web player
    • Open a playlist
    • Right-click it and copy link
    • Use the Browse URL action in Tasker with the link
    That's it! :D
     
    mbefore305 likes this.
  5. mbefore305

    mbefore305 New Member

    Joined:
    Aug 26, 2016
    Messages:
    6
    Likes Received:
    0
    Thanks!
    I thought this does not work in offline mode.
    Still one problem: If I use Browse URL it wants to open my default browser (Firefox) and I need to click on "Open Tab". Then it starts Spotify. Guess, this can be prevented? When using browse URL it asks for an App to use, but Spotify is none of them.
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Sorry, my mistake! :) You should use a Browse URL action with a URL like this:

    Code (Text):
    spotify:playlist:PLAYLIST_ID:play
    You can get this special URL by right clicking the playlist > Copy link and then check the ID on that link.

    For example, a link like https://open.spotify.com/playlist/1F7a43UVuw4SpQpTHtrspa would have a Browse URL like this

    Code (Text):
    spotify:playlist:1F7a43UVuw4SpQpTHtrspa:play
    Hope this helps! :)
     
    mbefore305 likes this.
  7. mbefore305

    mbefore305 New Member

    Joined:
    Aug 26, 2016
    Messages:
    6
    Likes Received:
    0
    Excellent! Thanks a lot. How can one live without Tasker?

    Final question: Is this documented somewhere with probably more options? (e.g. using Shuffle or not, using Sleep timer, etc.)?
     
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
  9. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
: AutoInput

Share This Page