new version 1.2.0.5 attached to first post in this thread. The following functions have been added to be able to enable/disable and set volume level of a speaker from a script.
name is the name of the Airplay Speaker as it appears in the config page, and the second parameter of SetSpeakerVolume must be an integer in [-30;0] range.
example of vb script using these functions:
Code:
public void SetSpeakerVolume(string name, int volume) public void SetSpeakerEnabled(string name, bool enabled)
example of vb script using these functions:
Code:
Sub Main(parm as object) hs.Plugin("AirplaySpeak").SetSpeakerVolume("Airport Express 1", -12) hs.Plugin("AirplaySpeak").SetSpeakerEnabled("Airport Express 1", true) End Sub
Comment