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

    Set Windows volume to X

    Windows
    4
    9
    911
    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.
    • Diogo MenegonD
      Diogo Menegon
      last edited by

      Hi, i used the high volume command that has in the examples with the smarthome alexa skill, but i'd like to say a specific volume, something like "Alexa, set the volume of computer to X".

      I read the sending params topic, but i dont want to have to say "ask triggercmd to set te volume with the parameter 80".

      Is there a way? Thanks a lot.

      1 Reply Last reply Reply Quote 0
      • XanderX
        Xander
        last edited by

        Create a command using Nirsoft.net's NIRCMD. (Instructions on its page or search these forums). It supports a ton of little commands like that.

        Diogo MenegonD 1 Reply Last reply Reply Quote 0
        • Diogo MenegonD
          Diogo Menegon
          last edited by Diogo Menegon

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • Diogo MenegonD
            Diogo Menegon @Xander
            last edited by

            @Xander The problem isn't about how to do the command to change the volume, but if there's a way to pass the parameter someway so I don't have to say "Alexa, ask TriggerCMD to set computer's volume with parameter 80" but just "Alexa, set computer's volume to 80"

            I setted up the command with the NirCMD, and using the command line in windows i can change the volume with the %1 and putting the param after the command, but i tried with alexa, saying "Alexa, turn computer's volume with parameter 80" and she reply something like "Computer's volume isn't compatible with this"

            PS: computer's volume is the voice option in the triggercmd command
            PS2: i'm using alexa in pt-br, maybe the params with alexa in portuguese isnt avaible?

            1 Reply Last reply Reply Quote 0
            • XanderX
              Xander
              last edited by

              @Russ is the author and knows how parameters work.

              As a backup plan, you could set up multiple Triggercmd/nircmd commands for Vol 20, Vol 40, etc.

              Diogo MenegonD 1 Reply Last reply Reply Quote 0
              • Diogo MenegonD
                Diogo Menegon @Xander
                last edited by

                @Xander ok, so, after doing some more research and trying other things, this was what I was doing wrong:

                I discovered that the SmartHome skill isn't capable of parsing params like numbers, only on and off. So I have to use the Execute Command skill, right?

                And probably, when parsing numbers to Alexa, she sends it written (maybe?!) to the triggercmd, so I added in my batch script, some lines to transform the written numbers into numerical ones.

                And now it's working, but it is still a lot of work having to say "Alexa, ask Execute Command to open computer's volume with parameter X" or in pt-br that is my native language "Alexa, abra execute comando e execute volume do computador com parâmetro X"

                Is there a plan to implement others params in SmartHome skill? Or is there a way to use IFTTT to make this sentece shorter?

                Thanks.

                RussR 1 Reply Last reply Reply Quote 0
                • RussR
                  Russ @Diogo Menegon
                  last edited by

                  @Diogo-Menegon, I'm glad you figured that out.

                  The non-Smart Home skills like "Execute Command", "TRIGGERcmd", and "TRIGGER command" skills allow other parameters besides on and off, but there are two problems with them:

                  1. The sentence structure, "Alexa, abra execute comando e execute volume do computador com parâmetro X" is alot to say.
                  2. Alexa doesn't recognize your words as well as it does when you use the Smart Home skills.

                  So I think @Xander's suggestion to make commands for volume 20, 40 etc, and use the Smart Home skill makes sense.

                  Russell VanderMey

                  Diogo MenegonD 1 Reply Last reply Reply Quote 0
                  • Diogo MenegonD
                    Diogo Menegon @Russ
                    last edited by

                    @Russ yeah, I think it is what I'm going to do.
                    Thanks for all the support both of you.
                    @Xander

                    1 Reply Last reply Reply Quote 1
                    • HS Tattoo ContatoH
                      HS Tattoo Contato
                      last edited by

                      Olá a todos, Eu sou novo e estava tentando definir o volume do computador para um valor específico, como 30%, 40%, 50%......
                      Não sou da área e foi difícil para mim entender como usar o NIRCMD do Nirsoft.net. Resolvi explorar as opções de uma forma lógica (para mim) e que fosse simples, mesmo que isso gere vários comandos., Eu consegui fazer com sucesso. Criei linhas de comando novas, baixando o volume a zero e aumentando ao número desejado, com base no script do Russ ♥. (A propósito, que trabalho incrível amigo)

                      (Hello everyone, I am new and I was trying to set the computer volume to a specific value like 30%, 40%, 50%......
                      I'm not from the area and it was difficult for me to understand how to use NIRCMD from Nirsoft.net. I decided to explore the options in a logical way (for me) and in a simple way, even if it generates several commands., I managed to do it successfully. I created new command lines, lowering the volume to zero and increasing it to the desired number, based on Russ ♥'s script. (By the way, what an amazing job my friend))

                      -Script do media.ahk:

                      ........voldown:
                      Send {Volume_Down 50}
                      return

                      mute:
                      Send {Volume_Mute}
                      return

                      20:
                      Send {Volume_Down 50}
                      Send {Volume_Up 10}
                      return

                      30:
                      Send {Volume_Down 50}
                      Send {Volume_Up 15}
                      return

                      40:
                      Send {Volume_Down 50}
                      Send {Volume_Up 20}
                      return

                      50:
                      Send {Volume_Down 50}
                      Send {Volume_Up 25}
                      return

                      60:
                      Send {Volume_Down 50}
                      Send {Volume_Up 30}
                      return

                      70:
                      Send {Volume_Down 50}
                      Send {Volume_Up 35}
                      return

                      80:
                      Send {Volume_Down 50}
                      Send {Volume_Up 40}
                      return

                      90:
                      Send {Volume_Down 50}
                      Send {Volume_Up 45}
                      return

                      100:
                      Send {Volume_Up 50}
                      return

                      18dd40c6-69b3-4d33-a1f2-46f3235d5e43-image.png
                      f087ebcc-72d7-4c75-93d8-cdb221c03fae-image.png

                      Fiquem em paz

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