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

Autohotkey script for Play, Pause, Volume Up/Down, Next/Previous

Windows
10
34
24.8k
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.
  • R
    Russ @Chabetico
    last edited by May 8, 2021, 4:36 PM

    @Chabetico, please show me the command you're having TRIGGERcmd run.

    You might need to specify the full path of the AutoHotkey.exe and your script, so your command would look like this:

    "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\autohotkeyscripts\yourscript.ahk"

    Russell VanderMey

    C L 2 Replies Last reply May 8, 2021, 5:24 PM Reply Quote 0
    • C
      Chabetico @Russ
      last edited by May 8, 2021, 5:24 PM

      This post is deleted!
      C 1 Reply Last reply May 8, 2021, 5:31 PM Reply Quote 0
      • C
        Chabetico @Chabetico
        last edited by May 8, 2021, 5:31 PM

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • L
          Laaderlappen @Russ
          last edited by May 10, 2021, 7:58 PM

          @Russ Hey, awesome skill to use with Alexa, I set it up with routines and it works like a charm!

          I can manage to pause and play YouTube and Netflix without any issues but I run Plex Media Player from my PC as well and it can't pause or play Plex at all, do you know how can I achieve that? It's the only thing that I'm missing.

          It's like it is not recognizing the play and pause command.

          I wanted to try with space but don't know how to set it up.

          R 1 Reply Last reply May 11, 2021, 10:47 PM Reply Quote 0
          • R
            Russ @Laaderlappen
            last edited by Russ May 11, 2021, 10:47 PM May 11, 2021, 10:47 PM

            @Laaderlappen, I use Plex alot myself. I just tested space and it was able to play/pause on my PC. There are a few ways, but this is how I did it.

            This is my command:

            wscript d:\tools\space.vbs
            

            These are the contents of my d:\tools\space.vbs file:

            Dim Wsh
            Set Wsh = Wscript.CreateObject("Wscript.Shell")
            Wsh.SendKeys "{ }"
            

            Russell VanderMey

            L 1 Reply Last reply May 12, 2021, 5:15 PM Reply Quote 0
            • L
              Laaderlappen @Russ
              last edited by May 12, 2021, 5:15 PM

              @Russ Thanks for the quick reply!

              Unfortunately it doesn't work.

              It doesn't even pauses YouTube or Netflix.

              I use the Plex Media Player app.

              The regular pause command is working with YouTube and Netflix in the browser but the Plex Media Player app that has its own .exe doesn't recognize anything.

              R 1 Reply Last reply May 13, 2021, 9:45 PM Reply Quote 0
              • R
                Russ @Laaderlappen
                last edited by May 13, 2021, 9:45 PM

                @Laaderlappen, I see. I was using Plex in the browser yesterday, but I tried Plex for Windows today and it worked for me in that too.

                I tried Plex for Windows version 1.11.0.1215-1d8c460c and the latest from this page which is currently 1.31.1.2262-74fdc6b7:

                https://www.plex.tv/media-server-downloads/#plex-app

                Both worked for me.

                Please confirm the Ground field is set to foreground.

                bdfcc56c-61b9-479b-9538-5cfa6fd4565c-image.png

                Russell VanderMey

                L 1 Reply Last reply May 30, 2021, 4:36 AM Reply Quote 0
                • L
                  Laaderlappen @Russ
                  last edited by May 30, 2021, 4:36 AM

                  @Russ Sorry for the delay replying! Though week!

                  I ended up installing my Mi Box in my bedroom, I needed the remote control haha.

                  It didn't work, tried everything and nothing.

                  Thanks for the quick replies tho!

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sori _
                    last edited by Sori _ Jul 6, 2021, 12:48 AM Jul 6, 2021, 12:38 AM

                    @Russ I really liked your skill, but I wanted to know how I can, go back and continue videos on youtube/netflix with alexa's voice command, because when I use the command a message appears on my PC "windows cannot find C://autohotkeyscripts//media.ahh. make sure the name was typed correctly and try again.
                    PS: I'm very beginner so could you explain to me how to use the codes that are at the top of the page?

                    R 1 Reply Last reply Jul 7, 2021, 12:23 PM Reply Quote 0
                    • R
                      Russ @Sori _
                      last edited by Jul 7, 2021, 12:23 PM

                      @Sori-_, you'll need to:

                      • Install AutoHotkey
                      • Create a autohotkeyscripts folder on your 😄 drive
                      • Create the media.ahk script in that folder.
                      • Create commands like these:
                      "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\autohotkeyscripts\media.ahk" mute
                      
                      "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\autohotkeyscripts\media.ahk" play
                      

                      Russell VanderMey

                      S W 3 Replies Last reply Jul 8, 2021, 1:56 AM Reply Quote 0
                      • S
                        Sori _ @Russ
                        last edited by Sori _ Jul 8, 2021, 2:28 AM Jul 8, 2021, 1:56 AM

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • S
                          Sori _ @Russ
                          last edited by Jul 8, 2021, 2:41 AM

                          @Russ Thanks man, you made a great explanation and program kkkkkk,
                          thanks for help.

                          1 Reply Last reply Reply Quote 1
                          • W
                            William Santiago Ortiz Trejos @Russ
                            last edited by Oct 14, 2021, 3:07 AM

                            @Russ Hi, I have been trying to trigger the media commands the same way that you explain. But I have an issue when I run "media.ahk". My computer always asks me how do I want to open that file. This is a screenshot of TriggerCMD. 0a8d3e11-891b-4205-8216-608947fbd845-image.png As you see in the previous image that's how I have the "next song" command.

                            And in the following screenshot, you will find the message that I receive.

                            02507a58-43e4-4dd8-8341-9992f201bfa0-image.png

                            Thanks for your help

                            R 1 Reply Last reply Oct 15, 2021, 8:43 PM Reply Quote 0
                            • R
                              Russ @William Santiago Ortiz Trejos
                              last edited by Oct 15, 2021, 8:43 PM

                              @William-Santiago-Ortiz-Trejos, for some reason your files with a .ahk extension aren't associated with AutoHotkey. That's supposed to happen when you install it, but maybe an antivirus program blocked it?

                              To fix it you could try running the batch file in this article from your C:\Program Files\AutoHotkey folder:
                              https://www.autohotkey.com/board/topic/13627-no-ahk-file-association/

                              Russell VanderMey

                              1 Reply Last reply Reply Quote 0
                              • R Russ referenced this topic on Feb 20, 2022, 5:15 PM
                              • R Russ referenced this topic on Mar 19, 2022, 6:14 PM
                              • R Russ referenced this topic on Apr 23, 2022, 11:37 PM
                              • First post
                                Last post