Announcement

Collapse
No announcement yet.

Adjust Volume

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Adjust Volume

    How do you adjust volume by a percentage in an action?

    I see you can set to a certain percentage, but I want to say increase by 10% or decrease by 10%.

    Thanks
    -Tim

    HSPro - 3.XXX - Dell mini W7 x32
    Way2 Call
    Elk M1 Gold
    UPB HAI switches
    HAI RC2000 Thermostat

    #2
    You can use this script

    Sub Main(parm as object)
    Dim pi As Object
    pi = hs.Plugin("Media Player")
    Dim MusicApi As object
    MusicApi = pi.GetMusicAPI(1)
    MusicApi.VolumeUp()
    End Sub

    and change the VolumeUp to VolumeDown to turn down the volume by 10%
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Thanks Rupp

      I see you have Media Player as the hs.plugin.

      Since I'm using iTunes, do I simply replace the Media Player with iTunes?
      -Tim

      HSPro - 3.XXX - Dell mini W7 x32
      Way2 Call
      Elk M1 Gold
      UPB HAI switches
      HAI RC2000 Thermostat

      Comment

      Working...
      X