TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Start netflix app

    Windows
    14
    24
    5.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RussR
      Russ @Anthony Gustavo
      last edited by Russ

      @Anthony-Gustavo, here's a similar script for Netflix:

      ShellExecute ( "netflix:" )
      
      Sleep(2000)  ; wait 2 seconds for Prime Video to start
      
      WinActivate ( "Netflix" )
      $pos = WinGetPos("Netflix")
      
      $x = 1797
      $y = 63
      MouseClick("left", $pos[0] + $x, $pos[1] + $y)  ; click the Search box
      
      ;suits
      Send("^a") ; Select all text, in case something was typed in the Search box already.
      
      Sleep(2000)  ; wait 2 seconds
      
      ;;; For testing:     ;; Send("suits{ENTER}")
      
      Send($CmdLine[1] & "{ENTER}")   ; type the first parameter of the .exe, and press enter
      
      Sleep(2000)  ; wait 2 seconds
      
      $x = 194
      $y = 248
      MouseClick("left", $pos[0] + $x, $pos[1] + $y)  ; click the show icon
      
      Sleep(1500) ; wait 1 seconds
      
      $x = 961
      $y = 220
      MouseClick("left", $pos[0] + $x, $pos[1] + $y)   ; click Watch now
      

      Here's a link to the two compiled .exe files:
      Prime
      Netflix

      Russell VanderMey

      1 Reply Last reply Reply Quote 0
      • Anthony GustavoA
        Anthony Gustavo
        last edited by Anthony Gustavo

        @Russ For me is happening this error

        ShellExecute ( "netflix:" )

        Sleep(2000) ; wait 2 seconds for Prime Video to start

        WinActivate ( "Netflix" )
        $pos = WinGetPos("Netflix")

        $x = 1764
        $y = 72
        MouseClick("left", $pos[0] + $x, $pos[1] + $y) ; click the Search box

        ;suits
        Send("^a") ; Select all text, in case something was typed in the Search box already.

        Sleep(2000) ; wait 2 seconds

        ;;; For testing: ;; Send("suits{ENTER}")

        Send($CmdLine[1] & "{ENTER}") ; type the first parameter of the .exe, and press enter

        Sleep(2000) ; wait 2 seconds

        $x = 231
        $y = 289
        MouseClick("left", $pos[0] + $x, $pos[1] + $y) ; click the show icon

        Sleep(1500) ; wait 1 seconds

        $x = 962
        $y = 268
        MouseClick("left", $pos[0] + $x, $pos[1] + $y) ; click Watch now

        I changed my coordinates, can you create an .exe for me or tell me which program you use? And also how do I configure the command in Triggercmd?

        c3a30e35-24be-45d7-b20a-1403f36867c2-image.png

        RussR 1 Reply Last reply Reply Quote 0
        • RussR
          Russ @Anthony Gustavo
          last edited by Russ

          @Anthony-Gustavo, it's getting that error because this line is expecting a parameter:

          Send($CmdLine[1] & "{ENTER}") 
          

          You can compile that script to an .exe with AutoIT.

          The command in the TRIGGERcmd GUI editor would either be:

          C:\Users(your user)\netflix.exe suits

          ... if you want your command to always search for suits, or:

            C:\\Users\\(your user)\\netflix.exe
          

          If you want to pass suits or something else as a parameter. For that, don't forget to flip Allow parameters to true.

          Russell VanderMey

          1 Reply Last reply Reply Quote 0
          • Rodolfo LincangoR
            Rodolfo Lincango @Russ
            last edited by

            @Russ , es mi mismo caso, si esta instalado pero me sale el anuncio, me podrias ayudar por favor.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post